dumpstate: dump state2power table

Dump state2power table in cooling_device

Bug: 189488358
Test: local test and state2power table can be dumped.
Change-Id: Ifb9a8e41158c5452b2f6e856d30ac97011460298
Signed-off-by: David Chao <davidchao@google.com>
This commit is contained in:
David Chao 2021-06-30 17:57:05 +08:00 committed by TreeHugger Robot
parent e05964f062
commit e00e552787

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