Forrest logo
back to the bpftool tool

bpftool:tldr:18dd8

bpftool: List all `raw_tracepoint`, `tracepoint`, `kprobe` attachments in the system.
$ bpftool perf list
try on your machine

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.

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