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

Commit 17251023 authored by Jason Chiu's avatar Jason Chiu
Browse files

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: default avatarJason Chiu <jasoncschiu@google.com>
Change-Id: I7e19c4d48fb3d5b1c49dc8688936cf1d6eea6e9c
parent 5c008536
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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