![Forrest logo](/images/logo.png)
bpftool:tldr:18dd8
The command "bpftool perf list" is used to list the available BPF (Berkeley Packet Filter) programs that can be attached to a perf event to analyze and trace kernel events or system calls.
BPF is a powerful technology in the Linux kernel that enables users to write and execute custom programs within the kernel space. These programs can be used for various purposes, such as monitoring and filtering network packets, tracing system events, and analyzing performance.
By using "bpftool perf list", you can retrieve a list of BPF programs that can be attached to a perf event. Perf events are a mechanism for sampling and tracing various kernel events, such as system calls, context switches, and other performance-related activities.
The output of the command will typically include information about the available BPF programs, such as their ID, name, and type. It allows you to select and attach a suitable BPF program to capture specific events or perform custom analysis using the perf tool.
Overall, "bpftool perf list" provides an overview of the BPF programs that can be used in conjunction with perf events for advanced performance analysis and tracing in the Linux kernel.