Back to home page

OSCL-LXR

 
 

    


0001 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 
0003 ================
0004 BPFTOOL
0005 ================
0006 -------------------------------------------------------------------------------
0007 tool for inspection and simple manipulation of eBPF programs and maps
0008 -------------------------------------------------------------------------------
0009 
0010 :Manual section: 8
0011 
0012 .. include:: substitutions.rst
0013 
0014 SYNOPSIS
0015 ========
0016 
0017         **bpftool** [*OPTIONS*] *OBJECT* { *COMMAND* | **help** }
0018 
0019         **bpftool** **batch file** *FILE*
0020 
0021         **bpftool** **version**
0022 
0023         *OBJECT* := { **map** | **program** | **link** | **cgroup** | **perf** | **net** | **feature** |
0024         **btf** | **gen** | **struct_ops** | **iter** }
0025 
0026         *OPTIONS* := { { **-V** | **--version** } | |COMMON_OPTIONS| }
0027 
0028         *MAP-COMMANDS* :=
0029         { **show** | **list** | **create** | **dump** | **update** | **lookup** | **getnext** |
0030         **delete** | **pin** | **event_pipe** | **help** }
0031 
0032         *PROG-COMMANDS* := { **show** | **list** | **dump jited** | **dump xlated** | **pin** |
0033         **load** | **attach** | **detach** | **help** }
0034 
0035         *LINK-COMMANDS* := { **show** | **list** | **pin** | **detach** | **help** }
0036 
0037         *CGROUP-COMMANDS* := { **show** | **list** | **attach** | **detach** | **help** }
0038 
0039         *PERF-COMMANDS* := { **show** | **list** | **help** }
0040 
0041         *NET-COMMANDS* := { **show** | **list** | **help** }
0042 
0043         *FEATURE-COMMANDS* := { **probe** | **help** }
0044 
0045         *BTF-COMMANDS* := { **show** | **list** | **dump** | **help** }
0046 
0047         *GEN-COMMANDS* := { **object** | **skeleton** | **min_core_btf** | **help** }
0048 
0049         *STRUCT-OPS-COMMANDS* := { **show** | **list** | **dump** | **register** | **unregister** | **help** }
0050 
0051         *ITER-COMMANDS* := { **pin** | **help** }
0052 
0053 DESCRIPTION
0054 ===========
0055         *bpftool* allows for inspection and simple modification of BPF objects
0056         on the system.
0057 
0058         Note that format of the output of all tools is not guaranteed to be
0059         stable and should not be depended upon.
0060 
0061 OPTIONS
0062 =======
0063         .. include:: common_options.rst
0064 
0065         -m, --mapcompat
0066                   Allow loading maps with unknown map definitions.
0067 
0068         -n, --nomount
0069                   Do not automatically attempt to mount any virtual file system
0070                   (such as tracefs or BPF virtual file system) when necessary.