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>
diff --git a/soc/dump_memory.sh b/soc/dump_memory.sh
index 5f4bde7..873cdc9 100644
--- a/soc/dump_memory.sh
+++ b/soc/dump_memory.sh
@@ -20,3 +20,11 @@
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