4 -------------------------------------------------------------------------------
5 tool for inspection and simple manipulation of eBPF programs and maps
6 -------------------------------------------------------------------------------
13 **bpftool** [*OPTIONS*] *OBJECT* { *COMMAND* | **help** }
15 **bpftool** **batch file** *FILE*
17 **bpftool** **version**
19 *OBJECT* := { **map** | **program** | **cgroup** }
21 *OPTIONS* := { { **-V** | **--version** } | { **-h** | **--help** }
22 | { **-j** | **--json** } [{ **-p** | **--pretty** }] }
25 { **show** | **list** | **dump** | **update** | **lookup** | **getnext** | **delete**
26 | **pin** | **help** }
28 *PROG-COMMANDS* := { **show** | **list** | **dump jited** | **dump xlated** | **pin**
29 | **load** | **help** }
31 *CGROUP-COMMANDS* := { **show** | **list** | **attach** | **detach** | **help** }
35 *bpftool* allows for inspection and simple modification of BPF objects
38 Note that format of the output of all tools is not guaranteed to be
39 stable and should not be depended upon.
44 Print short help message (similar to **bpftool help**).
47 Print version number (similar to **bpftool version**).
50 Generate JSON output. For commands that cannot produce JSON, this
54 Generate human-readable JSON output. Implies **-j**.
58 **bpftool-map**\ (8), **bpftool-prog**\ (8), **bpftool-cgroup**\ (8)