Loading bootstat/bootstat.cpp +24 −0 Original line number Diff line number Diff line Loading @@ -439,6 +439,30 @@ const std::map<std::string, int32_t> 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 Loading Loading
bootstat/bootstat.cpp +24 −0 Original line number Diff line number Diff line Loading @@ -439,6 +439,30 @@ const std::map<std::string, int32_t> 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 Loading