summaryrefslogtreecommitdiff
path: root/dumpstate
diff options
context:
space:
mode:
authorThierry Strudel <tstrudel@google.com>2015-09-01 09:16:03 -0700
committerThierry Strudel <tstrudel@google.com>2015-09-01 09:16:03 -0700
commit10f97950a342103bfc2cbb3d9af33cb916afcaca (patch)
tree40414e5da796cb56cce1a1eb70f6ef517aa29453 /dumpstate
parent416ef09f28661885737e3e290a2caae76e256825 (diff)
downloadbullhead-10f97950a342103bfc2cbb3d9af33cb916afcaca.tar.gz
dumpstate: dump all reported platform temperatures
Change-Id: I23692904d6c09f8d8d457fdd474797518a7a6d64 Signed-off-by: Thierry Strudel <tstrudel@google.com>
Diffstat (limited to 'dumpstate')
-rw-r--r--dumpstate/dumpstate.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/dumpstate/dumpstate.c b/dumpstate/dumpstate.c
index c695648..4d702c9 100644
--- a/dumpstate/dumpstate.c
+++ b/dumpstate/dumpstate.c
@@ -27,4 +27,5 @@ void dumpstate_board()
dump_file("IPC Router Log", "/d/ipc_logging/ipc_router/log");
run_command("ION HEAPS", 5, SU_PATH, "root", "/system/bin/sh", "-c", "for f in $(ls /d/ion/*); do echo $f; cat $f; done", NULL);
dump_file("Battery Type", "/sys/class/power_supply/bms/battery_type");
+ run_command("Temperatures", 5, SU_PATH, "root", "/system/bin/sh", "-c", "for f in emmc_therm msm_therm pa_therm0 xo_therm ; do echo -n \"$f : \" ; cat /sys/class/hwmon/hwmon2/device/$f ; done ; for f in `ls /sys/class/thermal` ; do type=`cat /sys/class/thermal/$f/type` ; temp=`cat /sys/class/thermal/$f/temp` ; echo \"$type: $temp\" ; done", NULL);
};