Skip to content
Snippets Groups Projects
Commit 75358771 authored by Aniket Puri's avatar Aniket Puri Committed by Gerrit - the friendly Code Review server
Browse files

Init: Edited postboot scripts for scuba.


Added soc_id = 471 for scuba in init.qcom.debug.sh and
reduced etr size to 16 MB for 32 bit scuba in 
init.qti.debug-scuba.sh .

Change-Id: If729b39df704e8b154811ec20f003a18217d4bca
Signed-off-by: default avatarAniket Puri <puri@codeaurora.org>
parent 7fdd4531
No related branches found
No related tags found
No related merge requests found
......@@ -2587,7 +2587,7 @@ case "$coresight_config" in
;;
"bengal")
soc_id=`cat /sys/devices/soc0/soc_id`
if [ "$soc_id" == "441" ]; then
if [[ "$soc_id" == "441" || "$soc_id" == "471" ]]; then
echo "Enabling DCC/STM/Debug events for scuba"
enable_scuba_debug
setprop ro.dbg.coresight.stm_cfg_done 1
......
......@@ -127,6 +127,9 @@ enable_scuba_stm_events()
fi
echo $etr_size > /sys/bus/coresight/devices/coresight-tmc-etr/buffer_size
if uname -m | grep "armv7l"; then
echo 0x1000000 > /sys/bus/coresight/devices/coresight-tmc-etr/buffer_size
fi
echo 1 > /sys/bus/coresight/devices/coresight-tmc-etr/$sinkenable
echo 1 > /sys/bus/coresight/devices/coresight-stm/$srcenable
echo 1 > /sys/kernel/debug/tracing/tracing_on
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment