blob: 4f2188845dd8338f435db3c7ac07e742e9b3ecbd [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
Prashant Bholeebbed0f2019-02-12 10:25:12 +090019 *OBJECT* := { **map** | **program** | **cgroup** | **perf** | **net** | **feature** }
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* :=
Jakub Kicinski0b592b5a2018-10-15 16:30:36 -070025 { **show** | **list** | **create** | **dump** | **update** | **lookup** | **getnext**
26 | **delete** | **pin** | **event_pipe** | **help** }
Jakub Kicinskiff69c212017-10-04 20:10:05 -070027
Jakub Kicinski6ebe6db2018-01-02 14:48:36 -080028 *PROG-COMMANDS* := { **show** | **list** | **dump jited** | **dump xlated** | **pin**
John Fastabendb7d38262018-10-15 11:19:50 -070029 | **load** | **attach** | **detach** | **help** }
Jakub Kicinskiff69c212017-10-04 20:10:05 -070030
Jakub Kicinski6ebe6db2018-01-02 14:48:36 -080031 *CGROUP-COMMANDS* := { **show** | **list** | **attach** | **detach** | **help** }
Roman Gushchin5ccda642017-12-13 15:18:54 +000032
Yonghong Songb04df402018-05-24 11:21:58 -070033 *PERF-COMMANDS* := { **show** | **list** | **help** }
34
Yonghong Songf6f3bac2018-09-05 16:58:06 -070035 *NET-COMMANDS* := { **show** | **list** | **help** }
36
Prashant Bholeebbed0f2019-02-12 10:25:12 +090037 *FEATURE-COMMANDS* := { **probe** | **help** }
38
Jakub Kicinskiff69c212017-10-04 20:10:05 -070039DESCRIPTION
40===========
41 *bpftool* allows for inspection and simple modification of BPF objects
42 on the system.
43
44 Note that format of the output of all tools is not guaranteed to be
45 stable and should not be depended upon.
46
Quentin Monneta2bc2e52017-10-23 09:24:06 -070047OPTIONS
48=======
49 -h, --help
50 Print short help message (similar to **bpftool help**).
51
52 -v, --version
53 Print version number (similar to **bpftool version**).
54
Quentin Monnet0641c3c2017-10-23 09:24:16 -070055 -j, --json
56 Generate JSON output. For commands that cannot produce JSON, this
57 option has no effect.
58
59 -p, --pretty
60 Generate human-readable JSON output. Implies **-j**.
61
John Fastabendc034a172018-10-15 11:19:55 -070062 -m, --mapcompat
63 Allow loading maps with unknown map definitions.
64
Quentin Monnet33221302018-12-18 10:13:19 +000065 -n, --nomount
66 Do not automatically attempt to mount any virtual file system
67 (such as tracefs or BPF virtual file system) when necessary.
68
John Fastabendc034a172018-10-15 11:19:55 -070069
Jakub Kicinskiff69c212017-10-04 20:10:05 -070070SEE ALSO
71========
Quentin Monnetf98e46a2018-11-08 11:52:28 +000072 **bpf**\ (2),
73 **bpf-helpers**\ (7),
74 **bpftool-prog**\ (8),
75 **bpftool-map**\ (8),
76 **bpftool-cgroup**\ (8),
Quentin Monnet49eb7ab2019-01-17 15:27:50 +000077 **bpftool-feature**\ (8),
Quentin Monnetf98e46a2018-11-08 11:52:28 +000078 **bpftool-net**\ (8),
79 **bpftool-perf**\ (8)