diff options
author | Dianne Hackborn <hackbod@google.com> | 2011-11-03 19:19:28 -0700 |
---|---|---|
committer | Dianne Hackborn <hackbod@google.com> | 2011-11-03 19:19:28 -0700 |
commit | 5123468934e4c8debf2f0dd07d8b9e56eb005697 (patch) | |
tree | 9b1cc43b373366085308e4f4058f79b48cf608b8 /cmds/dumpstate/utils.c | |
parent | e0ad47465ededb16c6cd60524acd6941a8ce0bd8 (diff) | |
download | frameworks_base-5123468934e4c8debf2f0dd07d8b9e56eb005697.zip frameworks_base-5123468934e4c8debf2f0dd07d8b9e56eb005697.tar.gz frameworks_base-5123468934e4c8debf2f0dd07d8b9e56eb005697.tar.bz2 |
Include showmap output in bug report.
Change-Id: I02d246defc73ea45c469ab7cb899f45d5663a301
Diffstat (limited to 'cmds/dumpstate/utils.c')
-rw-r--r-- | cmds/dumpstate/utils.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/cmds/dumpstate/utils.c b/cmds/dumpstate/utils.c index b2f9e80..14984ec 100644 --- a/cmds/dumpstate/utils.c +++ b/cmds/dumpstate/utils.c @@ -96,6 +96,15 @@ out_close: return; } +void do_showmap(int pid, const char *name) { + char title[255]; + char arg[255]; + + sprintf(title, "SHOW MAP %d (%s)", pid, name); + sprintf(arg, "%d", pid); + run_command(title, 10, "su", "root", "showmap", arg, NULL); +} + /* prints the contents of a file */ int dump_file(const char *title, const char* path) { char buffer[32768]; |