Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 871 Bytes

pt_usage.md

File metadata and controls

39 lines (29 loc) · 871 Bytes

PT Tracing

Collect PT traces without metadata (memory information)

  1. Define the program to monitor:
sudo su
echo -n wget > /sys/kernel/debug/pt_monitor
wget www.google.com
  1. Collect PT trace
cp /var/log/pt.log pt.log
  1. Stop PT tracing
echo -e "\x00" | tee /sys/kernel/debug/pt_monitor

Collect PT traces with metadata (e.g., memory information).

Our PT tracing is built atop ARCUS. Also, note that the following commands need the sudo privilege, in which case python is the root user's python3 environment.

  1. Start PT tracing
cd runtime-monitoring/trace
sudo python tracer.py trace_output wget www.google.com
  1. Stop PT tracing and collect PT traces
cd runtime-monitoring/trace
sudo python tracer.py --collect trace_output wget www.google.com