dump cma debugfs into dumpstate_board.txt
CMA debugfs provides how many CMA pages were allocated. It's useful to detect CMA memory leak. E.g) --- /sys/kernel/debug/cma/cma-faceauth_tp Bug: 276901078 Test: dumpstate_board.txt on adb bugreport includes the info Change-Id: Ic050c78ff6455a2960be239732ab6214c3789106 Signed-off-by: Minchan Kim <minchan@google.com>
This commit is contained in:
parent
9df2606139
commit
6c81eeca82
4 changed files with 12 additions and 2 deletions
|
@ -20,3 +20,11 @@ cat "/d/dma_buf/bufinfo"
|
|||
echo "------ Page Pinner - longterm pin ------"
|
||||
cat "/sys/kernel/debug/page_pinner/buffer"
|
||||
|
||||
echo "------ CMA info ------"
|
||||
for d in $(ls -d /sys/kernel/debug/cma/*)
|
||||
do
|
||||
echo --- $d
|
||||
echo --- count; cat $d/count;
|
||||
echo --- used; cat $d/used;
|
||||
echo --- bitmap; cat $d/bitmap;
|
||||
done
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue