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

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

Change-Id: I8d3e7752b8170ad87040444cd86fd95ad1e9e49a
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:16 +00:00 committed by Automerger Merge Worker
commit 965efb5a53

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`; "