OSDN Git Service
(root)
/
android-x86
/
frameworks-native.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
56f8c6c
)
dumpstate: add pstore read
author
Mark Salyzyn
<salyzyn@google.com>
Tue, 16 Dec 2014 17:09:26 +0000
(09:09 -0800)
committer
Mark Salyzyn
<salyzyn@google.com>
Thu, 26 Feb 2015 15:41:41 +0000
(07:41 -0800)
Call logcat -L to pull any LAST Android logs. If the kernel is not
configured for PSTORE and PSTORE_PMSG, the hopes are the empty
content will pressure vendors to slice up and configure support.
Change-Id: I5fddfa1e0f59f24fccc30b257ba68af8a8cf8640
cmds/dumpstate/dumpstate.c
patch
|
blob
|
history
diff --git
a/cmds/dumpstate/dumpstate.c
b/cmds/dumpstate/dumpstate.c
index
1d33d71
..
2d8ac74
100644
(file)
--- a/
cmds/dumpstate/dumpstate.c
+++ b/
cmds/dumpstate/dumpstate.c
@@
-214,6
+214,10
@@
static void dumpstate() {
dump_file("LAST PANIC CONSOLE", "/data/dontpanic/apanic_console");
dump_file("LAST PANIC THREADS", "/data/dontpanic/apanic_threads");
+ /* kernels must set CONFIG_PSTORE_PMSG, slice up pstore with device tree */
+ run_command("LAST LOGCAT", 10, "logcat", "-L", "-v", "threadtime",
+ "-b", "all", "-d", "*:v", NULL);
+
for_each_userid(do_dump_settings, NULL);
/* The following have a tendency to get wedged when wifi drivers/fw goes belly-up. */