From 5965ba30d3ac8f9504681ac2e7ea8ac84aa0c5a7 Mon Sep 17 00:00:00 2001 From: Colin Cross Date: Tue, 20 Sep 2011 15:49:14 -0700 Subject: [PATCH] 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 --- cmds/dumpstate/dumpstate.c | 1 + 1 file changed, 1 insertion(+) diff --git a/cmds/dumpstate/dumpstate.c b/cmds/dumpstate/dumpstate.c index 7460b48ad8949..30aed33173073 100644 --- a/cmds/dumpstate/dumpstate.c +++ b/cmds/dumpstate/dumpstate.c @@ -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);