move dump pixel vendor cma stat into gs-common

Bug: 276901078
Test: dumpstate_board.txt on adb bugreport includes the info
Change-Id: Ifaaeb635a62bfa189ee5440778f72087658a4614
Signed-off-by: Minchan Kim <minchan@google.com>
This commit is contained in:
Minchan Kim 2023-04-06 10:31:49 -07:00
parent 76b5478d57
commit 07ee6dcf53

View file

@ -1,18 +1,3 @@
#!/vendor/bin/sh
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 "------ Camera HAL Graph State Dump ------" echo "------ Camera HAL Graph State Dump ------"
for f in $(ls -t /data/vendor/camera/hal_graph_state*.txt |head -1); do for f in $(ls -t /data/vendor/camera/hal_graph_state*.txt |head -1); do
echo $f echo $f