1BPFTOOL(8) BPFTOOL(8)
2
3
4
6 BPFTOOL - tool for inspection and simple manipulation of eBPF programs
7 and maps
8
10 bpftool [OPTIONS] OBJECT { COMMAND | help }
11
12 bpftool batch file FILE
13
14 bpftool version
15
16 OBJECT := { map | program | cgroup | perf | net | feature }
17
18 OPTIONS := { { -V | --version } | { -h | --help } | { -j | --json }
19 [{ -p | --pretty }] }
20
21 MAP-COMMANDS := { show | list | create | dump | update | lookup |
22 getnext | delete | pin | event_pipe | help }
23
24 PROG-COMMANDS := { show | list | dump jited | dump xlated | pin |
25 load | attach | detach | help }
26
27 CGROUP-COMMANDS := { show | list | attach | detach | help }
28
29 PERF-COMMANDS := { show | list | help }
30
31 NET-COMMANDS := { show | list | help }
32
33 FEATURE-COMMANDS := { probe | help }
34
36 bpftool allows for inspection and simple modification of BPF objects
37 on the system.
38
39 Note that format of the output of all tools is not guaranteed to be
40 stable and should not be depended upon.
41
43 -h, --help
44 Print short help message (similar to bpftool help).
45
46 -V, --version
47 Print version number (similar to bpftool version).
48
49 -j, --json
50 Generate JSON output. For commands that cannot produce JSON,
51 this option has no effect.
52
53 -p, --pretty
54 Generate human-readable JSON output. Implies -j.
55
56 -m, --mapcompat
57 Allow loading maps with unknown map definitions.
58
59 -n, --nomount
60 Do not automatically attempt to mount any virtual file system
61 (such as tracefs or BPF virtual file system) when necessary.
62
63 -d, --debug
64 Print all logs available, even debug-level information. This
65 includes logs from libbpf as well as from the verifier, when
66 attempting to load programs.
67
69 bpf(2), bpf-helpers(7), bpftool-prog(8), bpftool-map(8),
70 bpftool-cgroup(8), bpftool-feature(8), bpftool-net(8),
71 bpftool-perf(8), bpftool-btf(8)
72
73
74
75
76 BPFTOOL(8)