dump vendor cma stat

Bug: 276901078
Test: dumpstate_board.txt on adb bugreport includes the info
Change-Id: Iaef36594a8ef48b0c85039f348618f021f93e8c2
Signed-off-by: Minchan Kim <minchan@google.com>
This commit is contained in:
Minchan Kim 2023-04-06 11:00:09 -07:00
parent 2a651114fe
commit caf0f59fab
2 changed files with 15 additions and 0 deletions

View File

@ -29,5 +29,18 @@ do
echo --- bitmap; cat $d/bitmap;
done
echo "------ Pixel CMA stat ------"
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
echo "------ Pixel Trace ------"
cat "/sys/kernel/tracing/instances/pixel/trace"

View File

@ -8,5 +8,7 @@ userdebug_or_eng(`
allow dump_memory vendor_cma_debugfs:file r_file_perms;
allow dump_memory debugfs_tracing_instances:dir search;
allow dump_memory debugfs_tracing_instances:file r_file_perms;
allow dump_memory sysfs_pixel_stat:dir r_dir_perms;
allow dump_memory sysfs_pixel_stat:file r_file_perms;
')