From 11160ed297b22cce510f9988521642243f94c7ce Mon Sep 17 00:00:00 2001 From: Jone Chou Date: Thu, 14 Jul 2022 00:24:52 +0800 Subject: [PATCH] bootstat: add more bootreasons add more bootreasons for new platform Bug: 236191641 Test: trigger apc watchdog then "adb root; adb shell bootstat -p" Change-Id: I8bbbe57e6c70959a4ec848b59065d0ee9fca50db --- bootstat/bootstat.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/bootstat/bootstat.cpp b/bootstat/bootstat.cpp index 44b04c3fe..589b99a12 100644 --- a/bootstat/bootstat.cpp +++ b/bootstat/bootstat.cpp @@ -468,6 +468,13 @@ const std::map kBootReasonMap = { {"watchdog,apc,bl31,crashed", 220}, {"watchdog,apc,pbl,crashed", 221}, {"reboot,memory_protect,hyp", 222}, + {"reboot,tsd,pmic,main", 223}, + {"reboot,tsd,pmic,sub", 224}, + {"reboot,ocp,pmic,main", 225}, + {"reboot,ocp,pmic,sub", 226}, + {"reboot,sys_ldo_ok,pmic,main", 227}, + {"reboot,sys_ldo_ok,pmic,sub", 228}, + {"reboot,smpl_timeout,pmic,main", 229}, }; // Converts a string value representing the reason the system booted to an