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 } | { -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

DESCRIPTION

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

OPTIONS

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

SEE ALSO

75          bpf(2),     bpf-helpers(7),    bpftool-btf(8),    bpftool-cgroup(8),
76          bpftool-feature(8),         bpftool-gen(8),         bpftool-iter(8),
77          bpftool-link(8),  bpftool-map(8),  bpftool-net(8),  bpftool-perf(8),
78          bpftool-prog(8), bpftool-struct_ops(8)
79
80
81
82
83                                                                    BPFTOOL(8)
Impressum