summaryrefslogtreecommitdiff
path: root/dumpstate
diff options
context:
space:
mode:
authorTim Murray <timmurray@google.com>2015-11-19 11:19:47 -0800
committerTim Murray <timmurray@google.com>2015-11-19 11:19:47 -0800
commitc2a0db966467560e0b8802c62c6a24a28e6625ab (patch)
tree61799897588f8e08c172fabf62c1014269e1ea3b /dumpstate
parent6448e205c9fd3175bf9a9645b5d8f14e33e27fa9 (diff)
downloadbullhead-c2a0db966467560e0b8802c62c6a24a28e6625ab.tar.gz
Dump /d/dma_buf/bufinfo in bugreports.
Useful for tracking down where things are allocated. bug 25392275 Change-Id: I45853324d4a4b630f6d1464c7cd5d014cb7bfda2
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 410311f..82ac468 100644
--- a/dumpstate/dumpstate.c
+++ b/dumpstate/dumpstate.c
@@ -26,6 +26,7 @@ void dumpstate_board()
dump_file("SMD PKT Log", "/d/ipc_logging/smd_pkt/log");
dump_file("IPC Router Log", "/d/ipc_logging/ipc_router/log");
run_command("ION HEAPS", 5, SU_PATH, "root", "/system/bin/sh", "-c", "for d in $(ls -d /d/ion/*); do for f in $(ls $d); do echo --- $d/$f; cat $d/$f; done; done", NULL);
+ dump_file("dmabuf info", "/d/dma_buf/bufinfo");
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);
dump_file("dmesg-ramoops-0", "/sys/fs/pstore/dmesg-ramoops-0");