Add cooling device stat dump in BR
Test: Verified dumpstate_board.txt (cherry picked from commit 3a3004d07a1db8d23a71a6481bbeb5d31a03d173) Signed-off-by: TeYuan Wang <kamewang@google.com> (cherry picked from commit 7e13e5a845ff3ce1337ce95174b6a1519e5e74e1) Change-Id: Ifebd9b07672a53ad1322ca9aff8c9f862d67ba51
This commit is contained in:
@@ -459,6 +459,8 @@ Return<void> DumpstateDevice::dumpstateBoard(const hidl_handle& handle) {
|
||||
DumpFileToFd(fd, "dmabuf process info", "/d/dma_buf/dmaprocs");
|
||||
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 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, "LMH info",
|
||||
{"/vendor/bin/sh", "-c",
|
||||
|
||||
Reference in New Issue
Block a user