dumpstate: Enable print out of thismeal.txt am: cc1831b66a am: 6497f603e9 am: 1a3c3a5232

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

Change-Id: I44ffd4813f1e9ade0aa74b51f8d65ad65c8b2ed8
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
George Lee 2022-07-11 19:44:07 +00:00 committed by Automerger Merge Worker
commit c9efca2110

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