From d07ec304232865eef16f79d2f829c48386aa2f46 Mon Sep 17 00:00:00 2001 From: Jason Chiu Date: Thu, 12 Oct 2023 17:11:27 +0800 Subject: [PATCH] bootstat: add more bootreasons add more bootreasons for new design. Bug: 296637681 Test: trigger apc watchdog then "adb root; adb shell bootstat -p" Change-Id: Ia78146ba9299eea45e7d89376179e01cbd37cca8 Signed-off-by: Jason Chiu --- bootstat/bootstat.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/bootstat/bootstat.cpp b/bootstat/bootstat.cpp index 3b8866e51..2d55e5a55 100644 --- a/bootstat/bootstat.cpp +++ b/bootstat/bootstat.cpp @@ -461,6 +461,14 @@ const std::map kBootReasonMap = { {"reboot,smpl_timeout,pmic,main", 229}, {"reboot,ota,.*", 230}, {"reboot,periodic,.*", 231}, + {"reboot,early,abl", 232}, + {"reboot,early,bl2", 233}, + {"reboot,longkey,pmic_cold", 234}, + {"reboot,longkey,master_dc", 235}, + {"reboot,ocp2,pmic,if", 236}, + {"reboot,ocp,pmic,if", 237}, + {"reboot,fship", 238}, + {"reboot,ocp,.*", 239}, }; // Converts a string value representing the reason the system booted to an