blob: 6732a5a617e49cddc6c59483e6d51d38389e1f7d [file] [log] [blame]
Jakub Kicinskiff69c212017-10-04 20:10:05 -07001================
2BPFTOOL
3================
4-------------------------------------------------------------------------------
5tool for inspection and simple manipulation of eBPF programs and maps
6-------------------------------------------------------------------------------
7
8:Manual section: 8
9
10SYNOPSIS
11========
12
Quentin Monnet0641c3c2017-10-23 09:24:16 -070013 **bpftool** [*OPTIONS*] *OBJECT* { *COMMAND* | **help** }
Jakub Kicinskiff69c212017-10-04 20:10:05 -070014
Quentin Monnet47ff7ac2017-10-23 09:24:15 -070015 **bpftool** **batch file** *FILE*
Jakub Kicinskiff69c212017-10-04 20:10:05 -070016
Quentin Monnet47ff7ac2017-10-23 09:24:15 -070017 **bpftool** **version**
Quentin Monnet821cfbb2017-10-19 15:46:26 -070018
Roman Gushchin5ccda642017-12-13 15:18:54 +000019 *OBJECT* := { **map** | **program** | **cgroup** }
Jakub Kicinskiff69c212017-10-04 20:10:05 -070020
Quentin Monnet0641c3c2017-10-23 09:24:16 -070021 *OPTIONS* := { { **-V** | **--version** } | { **-h** | **--help** }
22 | { **-j** | **--json** } [{ **-p** | **--pretty** }] }
23
Jakub Kicinskiff69c212017-10-04 20:10:05 -070024 *MAP-COMMANDS* :=
Quentin Monnet47ff7ac2017-10-23 09:24:15 -070025 { **show** | **dump** | **update** | **lookup** | **getnext** | **delete**
26 | **pin** | **help** }
Jakub Kicinskiff69c212017-10-04 20:10:05 -070027
Quentin Monnet47ff7ac2017-10-23 09:24:15 -070028 *PROG-COMMANDS* := { **show** | **dump jited** | **dump xlated** | **pin**
Roman Gushchin49a086c2017-12-13 15:18:53 +000029 | **load** | **help** }
Jakub Kicinskiff69c212017-10-04 20:10:05 -070030
Roman Gushchin5ccda642017-12-13 15:18:54 +000031 *CGROUP-COMMANDS* := { **list** | **attach** | **detach** | **help** }
32
Jakub Kicinskiff69c212017-10-04 20:10:05 -070033DESCRIPTION
34===========
35 *bpftool* allows for inspection and simple modification of BPF objects
36 on the system.
37
38 Note that format of the output of all tools is not guaranteed to be
39 stable and should not be depended upon.
40
Quentin Monneta2bc2e52017-10-23 09:24:06 -070041OPTIONS
42=======
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
Quentin Monnet0641c3c2017-10-23 09:24:16 -070049 -j, --json
50 Generate JSON output. For commands that cannot produce JSON, this
51 option has no effect.
52
53 -p, --pretty
54 Generate human-readable JSON output. Implies **-j**.
55
Jakub Kicinskiff69c212017-10-04 20:10:05 -070056SEE ALSO
57========
Roman Gushchin5ccda642017-12-13 15:18:54 +000058 **bpftool-map**\ (8), **bpftool-prog**\ (8), **bpftool-cgroup**\ (8)