From 17251023bd3c3b3012e3559e68be94519af692c0 Mon Sep 17 00:00:00 2001 From: Jason Chiu Date: Tue, 28 Jun 2022 21:17:49 +0800 Subject: [PATCH] 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 Change-Id: I7e19c4d48fb3d5b1c49dc8688936cf1d6eea6e9c --- bootstat/bootstat.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/bootstat/bootstat.cpp b/bootstat/bootstat.cpp index 2c878f024..af0c89e9f 100644 --- a/bootstat/bootstat.cpp +++ b/bootstat/bootstat.cpp @@ -463,6 +463,11 @@ const std::map 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