Forrest logo
back to the bpftrace tool

bpftrace:tldr:1c2ea

bpftrace: List all available probes.
$ sudo bpftrace -l
try on your machine

The command "sudo bpftrace -l" is used to list the available BPF (Berkeley Packet Filter) programs or scripts that can be run using bpftrace.

Here's a breakdown of the command:

  • "sudo" is a command used in Unix-like systems to run a command with administrative privileges. It allows the user to execute a command as the superuser or another user.
  • "bpftrace" is a tool developed by the Linux community for tracing and profiling software. It uses BPF programs attached to various kernel events to collect data and provide insights into system behavior.
  • "-l" is a command-line option for bpftrace that instructs it to list the available BPF programs that can be executed.

In summary, when you run "sudo bpftrace -l," you will get a list of BPF programs/scripts that are available for use with bpftrace. This can be helpful to identify available tracing and profiling options.

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 bpftrace tool