From cc1831b66a163827bef9ac5d2326eb22551d8e5c Mon Sep 17 00:00:00 2001 From: George Lee Date: Fri, 8 Jul 2022 19:09:20 -0700 Subject: [PATCH] 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 Change-Id: I5dcfbaae9832b4e0c50293d0cc45d4b40ac9da7f --- dumpstate/Dumpstate.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dumpstate/Dumpstate.cpp b/dumpstate/Dumpstate.cpp index 1227778e..040ed446 100644 --- a/dumpstate/Dumpstate.cpp +++ b/dumpstate/Dumpstate.cpp @@ -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`; "