dumpstate: dump state2power table am: bac5bc98ae

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

Change-Id: I70dcd09ff5fe062a674e99ea706c558aeec66bd7
This commit is contained in:
David Chao 2021-07-29 07:40:25 +00:00 committed by Automerger Merge Worker
commit 3e6c40cd69

View file

@ -470,6 +470,10 @@ void DumpstateDevice::dumpThermalSection(int fd) {
"for f in /sys/class/thermal/cooling* ; do " "for f in /sys/class/thermal/cooling* ; do "
"type=`cat $f/type` ; temp=`cat $f/cur_state` ; echo \"$type: $temp\" ; " "type=`cat $f/type` ; temp=`cat $f/cur_state` ; echo \"$type: $temp\" ; "
"done"}); "done"});
RunCommandToFd(fd, "Cooling Device State2Power Table", {"/vendor/bin/sh", "-c",
"for f in /sys/class/thermal/cooling* ; do "
"type=`cat $f/type` ; state2power_table=`cat $f/state2power_table` ; echo \"$type: $state2power_table\" ; "
"done"});
} }
// Dump items related to touch // Dump items related to touch