dumpstate: Enable print out of thismeal.txt am: cc1831b66a

Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/19225814

Change-Id: I8edd99fc9e90b335be24f6aa7f0a1a36efdd7a7d
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
George Lee 2022-07-11 18:30:13 +00:00 committed by Automerger Merge Worker
commit 6497f603e9

View file

@ -450,6 +450,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`; "