bootstat: add more bootreasons

add more bootreasons for new projects

Bug: 219902794
Test: trigger apc watchdog then "adb root; adb shell bootstat -p"
Signed-off-by: Jason Chiu <jasoncschiu@google.com>
Change-Id: I7e19c4d48fb3d5b1c49dc8688936cf1d6eea6e9c
This commit is contained in:
Jason Chiu 2022-06-28 21:17:49 +08:00
parent 5c00853601
commit 17251023bd

View file

@ -463,6 +463,11 @@ const std::map<std::string, int32_t> kBootReasonMap = {
{"watchdog,gsa,hard", 215},
{"watchdog,gsa,soft", 216},
{"watchdog,pmucal", 217},
{"reboot,early,bl", 218},
{"watchdog,apc,gsa,crashed", 219},
{"watchdog,apc,bl31,crashed", 220},
{"watchdog,apc,pbl,crashed", 221},
{"reboot,memory_protect,hyp", 222},
};
// Converts a string value representing the reason the system booted to an