mirror of
https://github.com/sunnypilot/sunnypilot.git
synced 2026-02-20 01:13:55 +08:00
* rt debug scripts
* bigger buffer
* cleanup
* move to internal
Co-authored-by: Comma Device <device@comma.ai>
old-commit-hash: ebab660622
26 lines
395 B
Bash
Executable File
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
|