-
"bpftool prog show" is used to list all BPF programs currently loaded on the system (loaded != attached)
-
load a BPF program from ELF file “foo.o” to the system and pin it under the BPF virtual file system as “bar”:
# bpftool prog load foo.o /sys/fs/bpf/bar
pinning the program makes it persistent (and offers a handle for later management, e.g. to attach that program to a hook).