summaryrefslogtreecommitdiff
path: root/dumpstate
diff options
context:
space:
mode:
Diffstat (limited to 'dumpstate')
-rw-r--r--dumpstate/Dumpstate.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/dumpstate/Dumpstate.cpp b/dumpstate/Dumpstate.cpp
index 445c40a..939e3e0 100644
--- a/dumpstate/Dumpstate.cpp
+++ b/dumpstate/Dumpstate.cpp
@@ -891,6 +891,13 @@ void Dumpstate::dumpMemorySection(int fd) {
"done"});
DumpFileToFd(fd, "dmabuf info", "/d/dma_buf/bufinfo");
DumpFileToFd(fd, "Page Pinner - longterm pin", "/sys/kernel/debug/page_pinner/buffer");
+ RunCommandToFd(fd, "CMA info", {"/vendor/bin/sh", "-c",
+ "for d in $(ls -d /d/cma/*); do "
+ "echo --- $d;"
+ "echo --- count; cat $d/count; "
+ "echo --- used; cat $d/used; "
+ "echo --- bitmap; cat $d/bitmap; "
+ "done"});
}
static void DumpF2FS(int fd) {