blob: b6f5d560460d5554d99df1f979faf6d5e49c7200 [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
Yonghong Songb04df402018-05-24 11:21:58 -070019 *OBJECT* := { **map** | **program** | **cgroup** | **perf** }
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 Kicinski6ebe6db2018-01-02 14:48:36 -080025 { **show** | **list** | **dump** | **update** | **lookup** | **getnext** | **delete**
Jakub Kicinskif412eed2018-05-03 18:37:16 -070026 | **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**
Roman Gushchin49a086c2017-12-13 15:18:53 +000029 | **load** | **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
Jakub Kicinskiff69c212017-10-04 20:10:05 -070035DESCRIPTION
36===========
37 *bpftool* allows for inspection and simple modification of BPF objects
38 on the system.
39
40 Note that format of the output of all tools is not guaranteed to be
41 stable and should not be depended upon.
42
Quentin Monneta2bc2e52017-10-23 09:24:06 -070043OPTIONS
44=======
45 -h, --help
46 Print short help message (similar to **bpftool help**).
47
48 -v, --version
49 Print version number (similar to **bpftool version**).
50
Quentin Monnet0641c3c2017-10-23 09:24:16 -070051 -j, --json
52 Generate JSON output. For commands that cannot produce JSON, this
53 option has no effect.
54
55 -p, --pretty
56 Generate human-readable JSON output. Implies **-j**.
57
Jakub Kicinskiff69c212017-10-04 20:10:05 -070058SEE ALSO
59========
Roman Gushchin5ccda642017-12-13 15:18:54 +000060 **bpftool-map**\ (8), **bpftool-prog**\ (8), **bpftool-cgroup**\ (8)
Yonghong Songb04df402018-05-24 11:21:58 -070061 **bpftool-perf**\ (8)