bpftop is a terminal UI that shows the average runtime, events per second, and estimated CPU utilization of every eBPF program on a Linux host. Kernel statistics are enabled only while it's running.
Pre-built x86_64 binary or your distro's package. Dynamically links to
libz and libelf.
$sudo apt install bpftop
Per-program metrics, updated every second, with a detail view for any row you select.
procfs on older kernels.BPF runtime statistics are off by default — always-on counters add per-program overhead. bpftop enables them only while the session is open.
On startup, bpftop issues a BPF_ENABLE_STATS syscall and keeps the returned file descriptor open.
A BPF iterator walks every loaded program, reading run_time_ns and run_cnt.
Deltas between samples give period average runtime, events/s, and estimated CPU %.
Closing the descriptor drops the kernel reference count and stats collection turns back off.
No mouse, no menus. Built for people whose hands never leave the home row.