use gs-common thermal dump
Bug: 257880034 Test: adb bugreport Change-Id: Ie4855d54999266b4a33b80b2e44f5f956438b99c
This commit is contained in:
parent
76ce23c5d2
commit
4b1a772fa3
3 changed files with 1 additions and 34 deletions
|
@ -228,7 +228,6 @@ Dumpstate::Dumpstate()
|
|||
{ "Devfreq", [this](int fd) { dumpDevfreqSection(fd); } },
|
||||
{ "cpu", [this](int fd) { dumpCpuSection(fd); } },
|
||||
{ "power", [this](int fd) { dumpPowerSection(fd); } },
|
||||
{ "thermal", [this](int fd) { dumpThermalSection(fd); } },
|
||||
{ "touch", [this](int fd) { dumpTouchSection(fd); } },
|
||||
{ "display", [this](int fd) { dumpDisplaySection(fd); } },
|
||||
{ "misc", [this](int fd) { dumpMiscSection(fd); } },
|
||||
|
@ -508,38 +507,6 @@ void Dumpstate::dumpPowerSection(int fd) {
|
|||
|
||||
}
|
||||
|
||||
// Dump items related to thermal
|
||||
void Dumpstate::dumpThermalSection(int fd) {
|
||||
RunCommandToFd(fd, "Temperatures", {"/vendor/bin/sh", "-c",
|
||||
"for f in /sys/class/thermal/thermal* ; do "
|
||||
"type=`cat $f/type` ; temp=`cat $f/temp` ; echo \"$type: $temp\" ; "
|
||||
"done"});
|
||||
RunCommandToFd(fd, "Cooling Device Current State", {"/vendor/bin/sh", "-c",
|
||||
"for f in /sys/class/thermal/cooling* ; do "
|
||||
"type=`cat $f/type` ; temp=`cat $f/cur_state` ; echo \"$type: $temp\" ; "
|
||||
"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* ; "
|
||||
"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* ; "
|
||||
"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",
|
||||
"for f in /sys/class/thermal/cooling* ; do "
|
||||
"if [ ! -f $f/state2power_table ]; then continue; fi; "
|
||||
"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 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 fall thresholds:", "/sys/module/gs_thermal/parameters/tmu_top_reg_dump_fall_thres");
|
||||
DumpFileToFd(fd, "TMU_SUB rise thresholds:", "/sys/module/gs_thermal/parameters/tmu_sub_reg_dump_rise_thres");
|
||||
DumpFileToFd(fd, "TMU_SUB fall thresholds:", "/sys/module/gs_thermal/parameters/tmu_sub_reg_dump_fall_thres");
|
||||
}
|
||||
|
||||
// Dump items related to touch
|
||||
void Dumpstate::dumpTouchSection(int fd) {
|
||||
const char stm_cmd_path[4][50] = {"/sys/class/spi_master/spi11/spi11.0",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue