diff options
author | TreeHugger Robot <treehugger-gerrit@google.com> | 2020-06-04 12:20:00 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2020-06-04 12:20:00 +0000 |
commit | 6779fb654df8020fd14713b76910280e98aacc3b (patch) | |
tree | 9126a40cd9cd37958fe0d627db17c7b066881e6b /dumpstate | |
parent | 9c8dd3b66161b90b2c6427d5903173f075d9683b (diff) | |
parent | ce9f1cfee15a1bf5f3f5ed8690a120e4b003d94f (diff) | |
download | bramble-6779fb654df8020fd14713b76910280e98aacc3b.tar.gz |
Merge "bramble: dumpstate: add UFS err_stats dump" into rvc-d1-dev
Diffstat (limited to 'dumpstate')
-rwxr-xr-x | dumpstate/DumpstateDevice.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index 5871f07..6e882a9 100755 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -527,6 +527,11 @@ static void DumpUFS(int fd) { DumpFileToFd(fd, "UFS Slow IO Unmap", "/sys/devices/platform/soc/" + bootdev + "/slowio_unmap_cnt"); DumpFileToFd(fd, "UFS Slow IO Sync", "/sys/devices/platform/soc/" + bootdev + "/slowio_sync_cnt"); + RunCommandToFd(fd, "UFS err_stats", {"/vendor/bin/sh", "-c", + "path=\"/sys/devices/platform/soc/" + bootdev + "/err_stats\"; " + "for node in `ls $path/err_*`; do " + "printf \"%s:%d\\n\" $(basename $node) $(cat $node); done;"}); + RunCommandToFd(fd, "UFS io_stats", {"/vendor/bin/sh", "-c", "path=\"/sys/devices/platform/soc/" + bootdev + "/io_stats\"; " "printf \"\\t\\t%-10s %-10s %-10s %-10s %-10s %-10s\\n\" " |