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:
parent
d559670cb2
commit
cc1831b66a
1 changed files with 1 additions and 0 deletions
|
@ -439,6 +439,7 @@ void Dumpstate::dumpPowerSection(int fd) {
|
||||||
RunCommandToFd(fd, "gvotables", {"/vendor/bin/sh", "-c", "cat /sys/kernel/debug/gvotables/*/status"});
|
RunCommandToFd(fd, "gvotables", {"/vendor/bin/sh", "-c", "cat /sys/kernel/debug/gvotables/*/status"});
|
||||||
}
|
}
|
||||||
DumpFileToFd(fd, "Lastmeal", "/data/vendor/mitigation/lastmeal.txt");
|
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\"; "
|
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/*` ; "
|
"for f in `ls /sys/devices/virtual/pmic/mitigation/last_triggered_count/*` ; "
|
||||||
"do count=`cat $f`; "
|
"do count=`cat $f`; "
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue