bcl: Enable Instruction print in bugreport

MPMM/PPM readings, OFFSRC and PWRONSRC will be printed out.

Bug: 195455000
Test: Local Test and confirm its printed.
------ Instruction ... ------
enable_mitigation=1
mpmm_settings=0x1a
offsrc=0x0
ppm_settings=0x0
pwronsrc=0x4
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I1f3e10edc416966f0eba18e0ba94fb56a487eaee
This commit is contained in:
George Lee 2021-08-04 11:19:23 -07:00
parent fe6dbce8df
commit 2107135c90

View file

@ -458,6 +458,11 @@ void DumpstateDevice::dumpPowerSection(int fd) {
"do lvl=`cat $f`; " "do lvl=`cat $f`; "
"a=${f/\\/sys\\/devices\\/virtual\\/pmic\\/mitigation\\/triggered_lvl\\//}; " "a=${f/\\/sys\\/devices\\/virtual\\/pmic\\/mitigation\\/triggered_lvl\\//}; "
"echo \"${a/_lvl/} \\t$lvl\" ; done"}); "echo \"${a/_lvl/} \\t$lvl\" ; done"});
RunCommandToFd(fd, "Instruction", {"/vendor/bin/sh", "-c",
"for f in `ls /sys/devices/virtual/pmic/mitigation/instruction/*` ; "
"do val=`cat $f` ; "
"a=${f/\\/sys\\/devices\\/virtual\\/pmic\\/mitigation\\/instruction\\//}; "
"echo \"$a=$val\" ; done"});
} }