dumpstate: Mitigation logger readout am: fb6e5cf647
am: 9664423244
am: b161d30677
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs201/+/18605334 Change-Id: Ica5e8d76db550af907d3144aaf4a4e51b8e6e2ab Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
commit
4f8b5e05e2
1 changed files with 1 additions and 0 deletions
|
@ -453,6 +453,7 @@ void Dumpstate::dumpPowerSection(int fd) {
|
||||||
if (!PropertiesHelper::IsUserBuild()) {
|
if (!PropertiesHelper::IsUserBuild()) {
|
||||||
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");
|
||||||
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