commands.sh

bpftool

linux

Inspect and manipulate eBPF programs and maps in a simple way. Some subcommands such as `prog` have their own usage documentation.

More info →

Examples (8)

List information about loaded `eBPF` programs

bpftool prog list

List `eBPF` program attachments in the kernel networking subsystem

bpftool net list

List all active links

List all `raw_tracepoint`, `tracepoint`, `kprobe` attachments in the system

List `BPF Type Format (BTF)` data

bpftool btf list

List information about loaded maps

bpftool map list

Probe a network device "eth0" for supported `eBPF` features

bpftool feature probe dev eth0

Run commands in batch mode from a file

made by @shridhargupta | data from tldr-pages