dumpstate: dump cooling device user_vote
Bug: 221180075 Test: check dumpstate from bugreport Change-Id: I68e1d5d3561770714f13ab2560a0533d2cbec243
This commit is contained in:
parent
058774bc73
commit
e138cd41be
1 changed files with 8 additions and 2 deletions
|
@ -499,14 +499,20 @@ 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 User Vote State", {"/vendor/bin/sh", "-c",
|
||||||
|
"for f in /sys/class/thermal/cooling* ; do "
|
||||||
|
"if [ ! -f $f/user_vote ]; then continue; fi; "
|
||||||
|
"type=`cat $f/type` ; temp=`cat $f/user_vote` ; echo \"$type: $temp\" ; "
|
||||||
|
"done"});
|
||||||
RunCommandToFd(fd, "Cooling Device Time in State", {"/vendor/bin/sh", "-c", "for f in /sys/class/thermal/cooling* ; "
|
RunCommandToFd(fd, "Cooling Device Time in State", {"/vendor/bin/sh", "-c", "for f in /sys/class/thermal/cooling* ; "
|
||||||
"do type=`cat $f/type` ; temp=`cat $f/stats/time_in_state_ms` ; echo \"$type:\n$temp\" ; done"});
|
"do type=`cat $f/type` ; temp=`cat $f/stats/time_in_state_ms` ; echo \"$type:\n$temp\" ; done"});
|
||||||
RunCommandToFd(fd, "Cooling Device Trans Table", {"/vendor/bin/sh", "-c", "for f in /sys/class/thermal/cooling* ; "
|
RunCommandToFd(fd, "Cooling Device Trans Table", {"/vendor/bin/sh", "-c", "for f in /sys/class/thermal/cooling* ; "
|
||||||
"do type=`cat $f/type` ; temp=`cat $f/stats/trans_table` ; echo \"$type:\n$temp\" ; done"});
|
"do type=`cat $f/type` ; temp=`cat $f/stats/trans_table` ; echo \"$type:\n$temp\" ; done"});
|
||||||
RunCommandToFd(fd, "Cooling Device State2Power Table", {"/vendor/bin/sh", "-c",
|
RunCommandToFd(fd, "Cooling Device State2Power Table", {"/vendor/bin/sh", "-c",
|
||||||
"for f in /sys/class/thermal/cooling* ; do "
|
"for f in /sys/class/thermal/cooling* ; do "
|
||||||
"type=`cat $f/type` ; state2power_table=`cat $f/state2power_table` ; echo \"$type: $state2power_table\" ; "
|
"if [ ! -f $f/state2power_table ]; then continue; fi; "
|
||||||
"done"});
|
"type=`cat $f/type` ; state2power_table=`cat $f/state2power_table` ; echo \"$type: $state2power_table\" ; "
|
||||||
|
"done"});
|
||||||
DumpFileToFd(fd, "TMU state:", "/sys/module/gs_thermal/parameters/tmu_reg_dump_state");
|
DumpFileToFd(fd, "TMU state:", "/sys/module/gs_thermal/parameters/tmu_reg_dump_state");
|
||||||
DumpFileToFd(fd, "TMU current temperature:", "/sys/module/gs_thermal/parameters/tmu_reg_dump_current_temp");
|
DumpFileToFd(fd, "TMU current temperature:", "/sys/module/gs_thermal/parameters/tmu_reg_dump_current_temp");
|
||||||
DumpFileToFd(fd, "TMU_TOP rise thresholds:", "/sys/module/gs_thermal/parameters/tmu_top_reg_dump_rise_thres");
|
DumpFileToFd(fd, "TMU_TOP rise thresholds:", "/sys/module/gs_thermal/parameters/tmu_top_reg_dump_rise_thres");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue