dumpstate: add uptime to top of bugreports
uptime is a good indicator to determine whether a restart was a kernel reboot or a runtime restart, put it at the top of bugreports. Change-Id: Ie4f4ef2f319a7216495ead3891bbfdc474146916
This commit is contained in:
@@ -72,6 +72,7 @@ static void dumpstate() {
|
||||
printf("Command line: %s\n", strtok(cmdline_buf, "\n"));
|
||||
printf("\n");
|
||||
|
||||
run_command("UPTIME", 10, "uptime", NULL);
|
||||
dump_file("MEMORY INFO", "/proc/meminfo");
|
||||
run_command("CPU INFO", 10, "top", "-n", "1", "-d", "1", "-m", "30", "-t", NULL);
|
||||
run_command("PROCRANK", 20, "procrank", NULL);
|
||||
|
||||
Reference in New Issue
Block a user