.\" Man page generated from reStructuredText.
.
.
.nr rst2man-indent-level 0
.
.de1 rstReportMargin
\\$1 \\n[an-margin]
level \\n[rst2man-indent-level]
level margin: \\n[rst2man-indent\\n[rst2man-indent-level]]
-
\\n[rst2man-indent0]
\\n[rst2man-indent1]
\\n[rst2man-indent2]
..
.de1 INDENT
.\" .rstReportMargin pre:
. RS \\$1
. nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin]
. nr rst2man-indent-level +1
.\" .rstReportMargin post:
..
.de UNINDENT
. RE
.\" indent \\n[an-margin]
.\" old: \\n[rst2man-indent\\n[rst2man-indent-level]]
.nr rst2man-indent-level -1
.\" new: \\n[rst2man-indent\\n[rst2man-indent-level]]
.in \\n[rst2man-indent\\n[rst2man-indent-level]]u
..
.TH "BPFTOOL" 8 "" ""
.SH NAME
BPFTOOL \- tool for inspection and simple manipulation of eBPF programs and maps
.SH SYNOPSIS
.sp
\fBbpftool\fP [\fIOPTIONS\fP] \fIOBJECT\fP { \fICOMMAND\fP | \fBhelp\fP }
.sp
\fBbpftool\fP \fBbatch file\fP \fIFILE\fP
.sp
\fBbpftool\fP \fBversion\fP
.sp
\fIOBJECT\fP := { \fBmap\fP | \fBprog\fP | \fBlink\fP | \fBcgroup\fP | \fBperf\fP | \fBnet\fP | \fBfeature\fP |
\fBbtf\fP | \fBgen\fP | \fBstruct_ops\fP | \fBiter\fP }
.sp
\fIOPTIONS\fP := { { \fB\-V\fP | \fB\-\-version\fP } | { \fB\-j\fP | \fB\-\-json\fP } [{ \fB\-p\fP | \fB\-\-pretty\fP }] | { \fB\-d\fP | \fB\-\-debug\fP } }
.sp
\fIMAP\-COMMANDS\fP :=
{ \fBshow\fP | \fBlist\fP | \fBcreate\fP | \fBdump\fP | \fBupdate\fP | \fBlookup\fP | \fBgetnext\fP |
\fBdelete\fP | \fBpin\fP | \fBevent_pipe\fP | \fBhelp\fP }
.sp
\fIPROG\-COMMANDS\fP := { \fBshow\fP | \fBlist\fP | \fBdump jited\fP | \fBdump xlated\fP | \fBpin\fP |
\fBload\fP | \fBattach\fP | \fBdetach\fP | \fBhelp\fP }
.sp
\fILINK\-COMMANDS\fP := { \fBshow\fP | \fBlist\fP | \fBpin\fP | \fBdetach\fP | \fBhelp\fP }
.sp
\fICGROUP\-COMMANDS\fP := { \fBshow\fP | \fBlist\fP | \fBattach\fP | \fBdetach\fP | \fBhelp\fP }
.sp
\fIPERF\-COMMANDS\fP := { \fBshow\fP | \fBlist\fP | \fBhelp\fP }
.sp
\fINET\-COMMANDS\fP := { \fBshow\fP | \fBlist\fP | \fBhelp\fP }
.sp
\fIFEATURE\-COMMANDS\fP := { \fBprobe\fP | \fBhelp\fP }
.sp
\fIBTF\-COMMANDS\fP := { \fBshow\fP | \fBlist\fP | \fBdump\fP | \fBhelp\fP }
.sp
\fIGEN\-COMMANDS\fP := { \fBobject\fP | \fBskeleton\fP | \fBmin_core_btf\fP | \fBhelp\fP }
.sp
\fISTRUCT\-OPS\-COMMANDS\fP := { \fBshow\fP | \fBlist\fP | \fBdump\fP | \fBregister\fP | \fBunregister\fP | \fBhelp\fP }
.sp
\fIITER\-COMMANDS\fP := { \fBpin\fP | \fBhelp\fP }
.SH DESCRIPTION
.sp
\fIbpftool\fP allows for inspection and simple modification of BPF objects on the
system.
.sp
Note that format of the output of all tools is not guaranteed to be stable and
should not be depended upon.
.SH OPTIONS
.INDENT 0.0
.TP
.B  \-h\fP,\fB  \-\-help
Print short help message (similar to \fBbpftool help\fP).
.TP
.B  \-V\fP,\fB  \-\-version
Print bpftool\(aqs version number (similar to \fBbpftool version\fP), the number
of the libbpf version in use, and optional features that were included when
bpftool was compiled. Optional features include linking against LLVM or
libbfd to provide the disassembler for JIT\-ted programs (\fBbpftool prog
dump jited\fP) and usage of BPF skeletons (some features like \fBbpftool prog
profile\fP or showing pids associated to BPF objects may rely on it).
.TP
.B  \-j\fP,\fB  \-\-json
Generate JSON output. For commands that cannot produce JSON, this option
has no effect.
.TP
.B  \-p\fP,\fB  \-\-pretty
Generate human\-readable JSON output. Implies \fB\-j\fP\&.
.TP
.B  \-d\fP,\fB  \-\-debug
Print all logs available, even debug\-level information. This includes logs
from libbpf as well as from the verifier, when attempting to load programs.
.UNINDENT
.INDENT 0.0
.TP
.B  \-m\fP,\fB  \-\-mapcompat
Allow loading maps with unknown map definitions.
.TP
.B  \-n\fP,\fB  \-\-nomount
Do not automatically attempt to mount any virtual file system (such as
tracefs or BPF virtual file system) when necessary.
.UNINDENT
.SH SEE ALSO
.sp
\fBbpf\fP(2),
\fBbpf\-helpers\fP(7),
\fBbpftool\-btf\fP(8),
\fBbpftool\-cgroup\fP(8),
\fBbpftool\-feature\fP(8),
\fBbpftool\-gen\fP(8),
\fBbpftool\-iter\fP(8),
\fBbpftool\-link\fP(8),
\fBbpftool\-map\fP(8),
\fBbpftool\-net\fP(8),
\fBbpftool\-perf\fP(8),
\fBbpftool\-prog\fP(8),
\fBbpftool\-struct_ops\fP(8)
.\" Generated by docutils manpage writer.
.