diff options
| author | Jaegeuk Kim <jaegeuk@google.com> | 2017-12-14 10:20:29 -0800 |
|---|---|---|
| committer | Jaegeuk Kim <jaegeuk@google.com> | 2017-12-19 01:10:08 +0000 |
| commit | 5e0fdfac96596ea973773d1305500d2135ea66d0 (patch) | |
| tree | 4052502bf5f853ab13e5ed04defd74ff33c2c224 /dumpstate | |
| parent | 9328c0ab759027db108fa9a054266241888b517a (diff) | |
dumpstate: show f2fs status
This adds f2fs status info in dumpstate.
Change-Id: I9a977a3e431c1c3b3a20fb5dcbe530a1bd3ca39e
Signed-off-by: Jaegeuk Kim <jaegeuk@google.com>
Diffstat (limited to 'dumpstate')
| -rwxr-xr-x | dumpstate/DumpstateDevice.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/dumpstate/DumpstateDevice.cpp b/dumpstate/DumpstateDevice.cpp index 5d7e715..77261ce 100755 --- a/dumpstate/DumpstateDevice.cpp +++ b/dumpstate/DumpstateDevice.cpp @@ -240,6 +240,7 @@ Return<void> DumpstateDevice::dumpstateBoard(const hidl_handle& handle) { 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()}); } + DumpFileToFd(fd, "F2FS", "/sys/kernel/debug/f2fs/status"); DumpFileToFd(fd, "INTERRUPTS", "/proc/interrupts"); DumpFileToFd(fd, "Sleep Stats", "/sys/power/system_sleep/stats"); DumpFileToFd(fd, "Power Management Stats", "/d/rpm_master_stats"); |
