1BPFTOOL(8)                                                          BPFTOOL(8)
2
3
4

NAME

6       BPFTOOL  - tool for inspection and simple manipulation of eBPF programs
7       and maps
8

SYNOPSIS

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 } |
19                 { -j | --json } [{ -p | --pretty }] | { -d | --debug } }
20
21          MAP-COMMANDS := { show | list | create | dump | update  |  lookup  |
22          getnext |
23
24          System Message: ERROR/3 (<stdin>:, line 26)
25                 Unexpected indentation.
26              delete | pin | event_pipe | help }
27
28          PROG-COMMANDS := { show | list | dump jited | dump xlated | pin |
29                 load | attach | detach | help }
30
31          CGROUP-COMMANDS := { show | list | attach | detach | help }
32
33          PERF-COMMANDS := { show | list | help }
34
35          NET-COMMANDS := { show | list | help }
36
37          FEATURE-COMMANDS := { probe | help }
38

DESCRIPTION

40          bpftool allows for inspection and simple modification of BPF objects
41          on the system.
42
43          Note that format of the output of all tools is not guaranteed to  be
44          stable and should not be depended upon.
45

OPTIONS

47          -h, --help
48                 Print short help message (similar to bpftool help).
49
50          -V, --version
51                 Print  version  number  (similar to bpftool version), and op‐
52                 tional features that were included when bpftool was compiled.
53                 Optional  features  include linking against libbfd to provide
54                 the disassembler for  JIT-ted  programs  (bpftool  prog  dump
55                 jited) and usage of BPF skeletons (some features like bpftool
56                 prog profile or showing pids associated to  BPF  objects  may
57                 rely on it).
58
59          -j, --json
60                 Generate  JSON output. For commands that cannot produce JSON,
61                 this option has no effect.
62
63          -p, --pretty
64                 Generate human-readable JSON output. Implies -j.
65
66          -d, --debug
67                 Print all logs available, even debug-level information.  This
68                 includes  logs from libbpf as well as from the verifier, when
69                 attempting to load programs.
70
71          -m, --mapcompat
72                 Allow loading maps with unknown map definitions.
73
74          -n, --nomount
75                 Do not automatically attempt to mount any virtual file system
76                 (such as tracefs or BPF virtual file system) when necessary.
77

SEE ALSO

79          bpf(2),     bpf-helpers(7),    bpftool-btf(8),    bpftool-cgroup(8),
80          bpftool-feature(8),         bpftool-gen(8),         bpftool-iter(8),
81          bpftool-link(8),  bpftool-map(8),  bpftool-net(8),  bpftool-perf(8),
82          bpftool-prog(8), bpftool-struct_ops(8)
83
84
85
86
87                                                                    BPFTOOL(8)
Impressum