dumpstate: dump cma information into bugreport am: 6ea9513a0d am: d2c391e98b
Original change: https://googleplex-android-review.googlesource.com/c/device/google/gs101/+/15083602 Change-Id: Iec072d1c00ab1428128e1a4d0d1e95d459122a2b
This commit is contained in:
commit
ff2868cf02
1 changed files with 10 additions and 0 deletions
|
@ -760,6 +760,16 @@ void DumpstateDevice::dumpMemorySection(int fd) {
|
|||
DumpFileToFd(fd, "dmabuf info", "/d/dma_buf/bufinfo");
|
||||
DumpFileToFd(fd, "Page Pinner - longterm pin", "/sys/kernel/debug/page_pinner/longterm_pinner");
|
||||
DumpFileToFd(fd, "Page Pinner - alloc_contig_failed", "/sys/kernel/debug/page_pinner/alloc_contig_failed");
|
||||
RunCommandToFd(fd, "Pixel CMA stat", {"/vendor/bin/sh", "-c",
|
||||
"for d in $(ls -d /sys/kernel/pixel_stat/mm/cma/*); do "
|
||||
"if [ -f $d ]; then "
|
||||
"echo --- $d; cat $d; "
|
||||
"else "
|
||||
"for f in $(ls $d); do "
|
||||
"echo --- $d/$f; cat $d/$f; "
|
||||
"done; "
|
||||
"fi; "
|
||||
"done"});
|
||||
}
|
||||
|
||||
static void DumpF2FS(int fd) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue