Files
sunnypilot/selfdrive/debug/internal/rt/record_trace.sh
Adeeb Shihadeh ebab660622 rt debug scripts (#2165)
* rt debug scripts

* bigger buffer

* cleanup

* move to internal

Co-authored-by: Comma Device <device@comma.ai>
2020-09-16 17:42:37 -07:00

26 lines
395 B
Bash
Executable File

#!/usr/bin/bash
cd /d/tracing
# setup tracer
echo "function" > current_tracer
echo "start tracing"
echo 1 > tracing_on
# do stuff
sleep 2
#/data/openpilot/scripts/restart_modem.sh
#sleep 3
#/data/openpilot/scripts/restart_modem.sh
sleep 5
# disable tracing
echo "done tracing"
echo 0 > tracing_on
# copy
echo "copy traces"
cp trace /tmp/trace.txt
cp per_cpu/cpu3/trace /tmp/trace_cpu3.txt