From 45ead352227cb4996e73bb3fd07086a3ff19b5c8 Mon Sep 17 00:00:00 2001 From: James Hawkins Date: Tue, 8 Mar 2016 16:42:07 -0800 Subject: [PATCH] bootstat: Add more strings to the bootreason mapping. Bug: 27555866 Change-Id: Ieebacaa9369a744d0968b3483c4302ed47bdf9f6 --- bootstat/bootstat.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/bootstat/bootstat.cpp b/bootstat/bootstat.cpp index bcc8abdf5..b39925cae 100644 --- a/bootstat/bootstat.cpp +++ b/bootstat/bootstat.cpp @@ -134,6 +134,30 @@ const std::map kBootReasonMap = { {"Reboot", 18}, {"rtc", 19}, {"edl", 20}, + {"oem_pon1", 21}, + {"oem_powerkey", 22}, + {"oem_unknown_reset", 23}, + {"srto: HWWDT reset SC", 24}, + {"srto: HWWDT reset platform", 25}, + {"srto: bootloader", 26}, + {"srto: kernel panic", 27}, + {"srto: kernel watchdog reset", 28}, + {"srto: normal", 29}, + {"srto: reboot", 30}, + {"srto: reboot-bootloader", 31}, + {"srto: security watchdog reset", 32}, + {"srto: wakesrc", 33}, + {"srto: watchdog", 34}, + {"srto:1-1", 35}, + {"srto:omap_hsmm", 36}, + {"srto:phy0", 37}, + {"srto:rtc0", 38}, + {"srto:touchpad", 39}, + {"watchdog", 40}, + {"watchdogr", 41}, + {"wdog_bark", 42}, + {"wdog_bite", 43}, + {"wdog_reset", 44}, }; // Converts a string value representing the reason the system booted to an