ajor / bpftrace

High-level tracing language for Linux eBPF - development moved to https://github.com/iovisor/bpftrace
https://github.com/iovisor/bpftrace
Apache License 2.0
250 stars 15 forks source link

PMC support #27

Open brendangregg opened 6 years ago

brendangregg commented 6 years ago

This is for performance monitoring counter events. bcc has an example tool: llcstat. An interface might look like this:

bpftrace -e 'perf:cpu-cycles:10000000 { @[tid] = count(); }'

That would fire once for every 10000000 cpu-cycles.