List programs

Use bpftool to list BPF programs

Listing tracing programs

Like with cgroups, bpftool can list all tracing eBPF programs currently attached on the system (to tracepoints, rawstracepoints, k[ret]probes, u[ret]probes). As simple as:

# bpftool perf show

Listing networking programs

There is also a mode for listing programs related to network packets processing.

# bpftool net show

This lists programs attached to TC or XDP hooks. It is possible to filter on a given interface:

# bpftool net show dev <iface>