diff options
author | Sharvil Nanavati <sharvil@google.com> | 2015-07-24 02:01:13 -0700 |
---|---|---|
committer | Sharvil Nanavati <sharvil@google.com> | 2015-07-24 02:01:13 -0700 |
commit | 8d4cb7ffc11050eebb4d06684e0eb14d9aadacb5 (patch) | |
tree | dac99f0e483e915589a21afea12b5c65598e513f /cmds | |
parent | 9202e49dc9adb03e0b2541011b511bd17c29c0cb (diff) | |
download | frameworks_native-8d4cb7ffc11050eebb4d06684e0eb14d9aadacb5.zip frameworks_native-8d4cb7ffc11050eebb4d06684e0eb14d9aadacb5.tar.gz frameworks_native-8d4cb7ffc11050eebb4d06684e0eb14d9aadacb5.tar.bz2 |
Dump raft logs in bugreports if they exist.
Change-Id: I7773b8b86675d9ebf3f6d158eaaa11e47619800e
Diffstat (limited to 'cmds')
-rw-r--r-- | cmds/dumpstate/dumpstate.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c index 1d9e6b8..58e2dc6 100644 --- a/cmds/dumpstate/dumpstate.c +++ b/cmds/dumpstate/dumpstate.c @@ -47,6 +47,7 @@ static char screenshot_path[PATH_MAX] = ""; #define PSTORE_LAST_KMSG "/sys/fs/pstore/console-ramoops" +#define RAFT_DIR "/data/misc/raft/" #define TOMBSTONE_DIR "/data/tombstones" #define TOMBSTONE_FILE_PREFIX TOMBSTONE_DIR "/tombstone_" /* Can accomodate a tombstone number up to 9999. */ @@ -348,6 +349,8 @@ static void dumpstate() { } run_command("RADIO LOG", timeout / 1000, "logcat", "-b", "radio", "-v", "threadtime", "-d", "*:v", NULL); + run_command("RAFT LOGS", 300, SU_PATH, "root", "logcompressor", "-r", RAFT_DIR, NULL); + /* show the traces we collected in main(), if that was done */ if (dump_traces_path != NULL) { dump_file("VM TRACES JUST NOW", dump_traces_path); |