mirror of
https://github.com/Evolution-X-Devices/device_google_gs201
synced 2026-01-27 19:18:35 +00:00
dumpstate: dump cma information
At bugreport, dump cma information, which is useful for CMA memory leak. Bug: 233535442 Test: adb bugreport contains cma information in dumpstate_board.txt Signed-off-by: Minchan Kim <minchan@google.com> Change-Id: I37aa901b0376d5187c18c73422e9fa56bfd0d6bc
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user