dumpstate: Enable print out of thismeal.txt

thismeal.txt captures the ODPM breakdown when mitigation interrupt
occurs.  This can help understand the power breakdown when interrupt
happens.

Bug: 238435115
Test: Bugreport contains the thismeal.txt once mitigation interrupt
triggers.
Signed-off-by: George Lee <geolee@google.com>
Change-Id: I5dcfbaae9832b4e0c50293d0cc45d4b40ac9da7f
This commit is contained in:
George Lee 2022-07-08 19:09:20 -07:00
parent d559670cb2
commit cc1831b66a

View file

@ -439,6 +439,7 @@ void Dumpstate::dumpPowerSection(int fd) {
RunCommandToFd(fd, "gvotables", {"/vendor/bin/sh", "-c", "cat /sys/kernel/debug/gvotables/*/status"});
}
DumpFileToFd(fd, "Lastmeal", "/data/vendor/mitigation/lastmeal.txt");
DumpFileToFd(fd, "Thismeal", "/data/vendor/mitigation/thismeal.txt");
RunCommandToFd(fd, "Mitigation Stats", {"/vendor/bin/sh", "-c", "echo \"Source\\t\\tCount\\tSOC\\tTime\\tVoltage\"; "
"for f in `ls /sys/devices/virtual/pmic/mitigation/last_triggered_count/*` ; "
"do count=`cat $f`; "