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:
Colin Cross
2011-09-20 15:49:14 -07:00
parent 01ad2a3fa7
commit 5965ba30d3

View File

@@ -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);