1 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
6 -------------------------------------------------------------------------------
7 tool for inspection and simple manipulation of eBPF programs and maps
8 -------------------------------------------------------------------------------
12 .. include:: substitutions.rst
17 **bpftool** [*OPTIONS*] *OBJECT* { *COMMAND* | **help** }
19 **bpftool** **batch file** *FILE*
21 **bpftool** **version**
23 *OBJECT* := { **map** | **prog** | **link** | **cgroup** | **perf** | **net** | **feature** |
24 **btf** | **gen** | **struct_ops** | **iter** }
26 *OPTIONS* := { { **-V** | **--version** } | |COMMON_OPTIONS| }
29 { **show** | **list** | **create** | **dump** | **update** | **lookup** | **getnext** |
30 **delete** | **pin** | **event_pipe** | **help** }
32 *PROG-COMMANDS* := { **show** | **list** | **dump jited** | **dump xlated** | **pin** |
33 **load** | **attach** | **detach** | **help** }
35 *LINK-COMMANDS* := { **show** | **list** | **pin** | **detach** | **help** }
37 *CGROUP-COMMANDS* := { **show** | **list** | **attach** | **detach** | **help** }
39 *PERF-COMMANDS* := { **show** | **list** | **help** }
41 *NET-COMMANDS* := { **show** | **list** | **help** }
43 *FEATURE-COMMANDS* := { **probe** | **help** }
45 *BTF-COMMANDS* := { **show** | **list** | **dump** | **help** }
47 *GEN-COMMANDS* := { **object** | **skeleton** | **min_core_btf** | **help** }
49 *STRUCT-OPS-COMMANDS* := { **show** | **list** | **dump** | **register** | **unregister** | **help** }
51 *ITER-COMMANDS* := { **pin** | **help** }
55 *bpftool* allows for inspection and simple modification of BPF objects
58 Note that format of the output of all tools is not guaranteed to be
59 stable and should not be depended upon.
63 .. include:: common_options.rst
66 Allow loading maps with unknown map definitions.
69 Do not automatically attempt to mount any virtual file system
70 (such as tracefs or BPF virtual file system) when necessary.