Dump raft logs in bugreports if they exist.
Change-Id: I7773b8b86675d9ebf3f6d158eaaa11e47619800e
This commit is contained in:
parent
9202e49dc9
commit
8d4cb7ffc1
@ -47,6 +47,7 @@ static char screenshot_path[PATH_MAX] = "";
|
|||||||
|
|
||||||
#define PSTORE_LAST_KMSG "/sys/fs/pstore/console-ramoops"
|
#define PSTORE_LAST_KMSG "/sys/fs/pstore/console-ramoops"
|
||||||
|
|
||||||
|
#define RAFT_DIR "/data/misc/raft/"
|
||||||
#define TOMBSTONE_DIR "/data/tombstones"
|
#define TOMBSTONE_DIR "/data/tombstones"
|
||||||
#define TOMBSTONE_FILE_PREFIX TOMBSTONE_DIR "/tombstone_"
|
#define TOMBSTONE_FILE_PREFIX TOMBSTONE_DIR "/tombstone_"
|
||||||
/* Can accomodate a tombstone number up to 9999. */
|
/* 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("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 */
|
/* show the traces we collected in main(), if that was done */
|
||||||
if (dump_traces_path != NULL) {
|
if (dump_traces_path != NULL) {
|
||||||
dump_file("VM TRACES JUST NOW", dump_traces_path);
|
dump_file("VM TRACES JUST NOW", dump_traces_path);
|
||||||
|
Loading…
Reference in New Issue
Block a user