dump f2fs in gs-common
Bug: 248143736 Test: adb bugreport Change-Id: Ife974bc4e246f9a85475cf78bc6867a29f5423c7
This commit is contained in:
parent
af1ebfd741
commit
c20b957299
2 changed files with 3 additions and 8 deletions
|
@ -566,6 +566,9 @@ PRODUCT_PACKAGES_DEBUG += \
|
||||||
f2fs.fibmap \
|
f2fs.fibmap \
|
||||||
dump.f2fs
|
dump.f2fs
|
||||||
|
|
||||||
|
# Storage dump
|
||||||
|
include device/google/gs-common/storage/storage.mk
|
||||||
|
|
||||||
# Storage health HAL
|
# Storage health HAL
|
||||||
PRODUCT_PACKAGES += \
|
PRODUCT_PACKAGES += \
|
||||||
android.hardware.health.storage-service.default
|
android.hardware.health.storage-service.default
|
||||||
|
|
|
@ -900,13 +900,6 @@ void DumpstateDevice::dumpMemorySection(int fd) {
|
||||||
"done"});
|
"done"});
|
||||||
}
|
}
|
||||||
|
|
||||||
static void DumpF2FS(int fd) {
|
|
||||||
DumpFileToFd(fd, "F2FS", "/sys/kernel/debug/f2fs/status");
|
|
||||||
DumpFileToFd(fd, "F2FS", "/dev/fscklogs/fsck");
|
|
||||||
RunCommandToFd(fd, "F2FS - fsck time (ms)", {"/vendor/bin/sh", "-c", "getprop ro.boottime.init.fsck.data"});
|
|
||||||
RunCommandToFd(fd, "F2FS - checkpoint=disable time (ms)", {"/vendor/bin/sh", "-c", "getprop ro.boottime.init.mount.data"});
|
|
||||||
}
|
|
||||||
|
|
||||||
static void DumpUFS(int fd) {
|
static void DumpUFS(int fd) {
|
||||||
DumpFileToFd(fd, "UFS model", "/sys/block/sda/device/model");
|
DumpFileToFd(fd, "UFS model", "/sys/block/sda/device/model");
|
||||||
DumpFileToFd(fd, "UFS rev", "/sys/block/sda/device/rev");
|
DumpFileToFd(fd, "UFS rev", "/sys/block/sda/device/rev");
|
||||||
|
@ -960,7 +953,6 @@ static void DumpUFS(int fd) {
|
||||||
|
|
||||||
// Dump items related to storage
|
// Dump items related to storage
|
||||||
void DumpstateDevice::dumpStorageSection(int fd) {
|
void DumpstateDevice::dumpStorageSection(int fd) {
|
||||||
DumpF2FS(fd);
|
|
||||||
DumpUFS(fd);
|
DumpUFS(fd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue