From d5f24c5bb9f2a88af1ee45b6eab308e1346976de Mon Sep 17 00:00:00 2001 From: Howie Chang Date: Mon, 30 Aug 2021 17:27:01 +0800 Subject: [PATCH] bootstat: add more bootreasons add more bootreasons for new projects Bug: 184012295 Test: trigger apc watchdog then "adb shell bootstat -p" Change-Id: I7166969dde3675cdbe8433dbfba634a192f6be33 --- bootstat/bootstat.cpp | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/bootstat/bootstat.cpp b/bootstat/bootstat.cpp index d6ebb0d54..2c878f024 100644 --- a/bootstat/bootstat.cpp +++ b/bootstat/bootstat.cpp @@ -439,6 +439,30 @@ const std::map kBootReasonMap = { {"reboot,forcedsilent", 191}, {"reboot,forcednonsilent", 192}, {"reboot,thermal,tj", 193}, + {"reboot,emergency", 194}, + {"reboot,factory", 195}, + {"reboot,fastboot", 196}, + {"reboot,gsa,hard", 197}, + {"reboot,gsa,soft", 198}, + {"reboot,master_dc,fault_n", 199}, + {"reboot,master_dc,reset", 200}, + {"reboot,ocp", 201}, + {"reboot,pin", 202}, + {"reboot,rom_recovery", 203}, + {"reboot,uvlo", 204}, + {"reboot,uvlo,pmic,if", 205}, + {"reboot,uvlo,pmic,main", 206}, + {"reboot,uvlo,pmic,sub", 207}, + {"reboot,warm", 208}, + {"watchdog,aoc", 209}, + {"watchdog,apc", 210}, + {"watchdog,apc,bl,debug,early", 211}, + {"watchdog,apc,bl,early", 212}, + {"watchdog,apc,early", 213}, + {"watchdog,apm", 214}, + {"watchdog,gsa,hard", 215}, + {"watchdog,gsa,soft", 216}, + {"watchdog,pmucal", 217}, }; // Converts a string value representing the reason the system booted to an