Forrest logo
back to the bpftool tool

bpftool:tldr:d480d

bpftool: List `BPF Type Format (BTF)` data.
$ bpftool btf list
try on your machine

The command "bpftool btf list" is used to list the available BTF (BPF Type Format) programs and maps in the Linux kernel's BPF (Berkeley Packet Filter) subsystem.

BTF is a feature introduced in recent versions of the Linux kernel to provide improved debugging and introspection capabilities for BPF programs. It allows users to retrieve information about BPF objects, such as the types and structures used in BPF programs and maps.

When you run the "bpftool btf list" command, it displays a list of available BPF Type Format programs and maps in the kernel. This list includes information such as the ID, name, and size of each BTF object.

This command is helpful for developers and system administrators who are working with BPF programs and maps and need to gather information about them for debugging or monitoring purposes.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the bpftool tool