summaryrefslogtreecommitdiff
path: root/dumpstate
diff options
context:
space:
mode:
authorJaegeuk Kim <jaegeuk@google.com>2018-06-06 21:29:21 -0700
committerJaegeuk Kim <jaegeuk@google.com>2018-06-06 21:42:29 -0700
commit3b2a77c0872bf4ccb666d8b630a42936c40d5521 (patch)
tree5b592ef1857fd8a8f64d8932d46516d862c7028d /dumpstate
parent3ae5d29fd7cccfb62f79071006095ee060daffa7 (diff)
dumpstate: update slowio split
This patch adjusts recent slowio changes. Bug: 79996489 Change-Id: I444fbad5937d2261e6a1ae9b5f5b9be50cff8d33 Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Diffstat (limited to 'dumpstate')
-rwxr-xr-xdumpstate/DumpstateDevice.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp
index 916c7b0..2e00ef9 100755
--- a/dumpstate/DumpstateDevice.cpp
+++ b/dumpstate/DumpstateDevice.cpp
@@ -244,7 +244,10 @@ static void DumpUFS(int fd) {
std::string bootdev = android::base::GetProperty(UFS_BOOTDEVICE, "");
if (!bootdev.empty()) {
- DumpFileToFd(fd, "UFS Slow IO", "/sys/devices/platform/soc/" + bootdev + "/slowio_cnt");
+ DumpFileToFd(fd, "UFS Slow IO Read", "/sys/devices/platform/soc/" + bootdev + "/slowio_read_cnt");
+ DumpFileToFd(fd, "UFS Slow IO Write", "/sys/devices/platform/soc/" + bootdev + "/slowio_write_cnt");
+ 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");
std::string ufs_health = "for f in $(find /sys/devices/platform/soc/" + bootdev + "/health -type f); do if [[ -r $f && -f $f ]]; then echo --- $f; cat $f; echo ''; fi; done";
RunCommandToFd(fd, "UFS health", {"/vendor/bin/sh", "-c", ufs_health.c_str()});