eBPF/bpftrace scripts for low-overhead kernel-level tracing of the Dynamo frontend. These scripts attach to kernel tracepoints and kprobes to measure scheduling, syscall, TCP, and context-switch behavior without modifying the application.
## Setup
```bash
# Full setup: install bpftrace, configure kernel, grant capabilities
sudo bash setup.sh
# Or step by step:
sudo bash setup.sh --install# install bpftrace
sudo bash setup.sh --kernel# set perf_event_paranoid=-1, kptr_restrict=0
sudo bash setup.sh --caps# grant capabilities (run bpftrace without sudo)
# Check current state
sudo bash setup.sh --check
# Undo everything
sudo bash setup.sh --reset
```
After granting capabilities, bpftrace runs **without sudo**.