Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5965ba30 authored by Colin Cross's avatar Colin Cross
Browse files

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
parent 01ad2a3f
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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);