.\" 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-PERF" 8 "" "" .SH NAME bpftool-perf \- tool for inspection of perf related bpf prog attachments .SH SYNOPSIS .INDENT 0.0 .INDENT 3.5 \fBbpftool\fP [\fIOPTIONS\fP] \fBperf\fP \fICOMMAND\fP .sp \fIOPTIONS\fP := { { \fB\-j\fP | \fB\-\-json\fP } [{ \fB\-p\fP | \fB\-\-pretty\fP }] | { \fB\-d\fP | \fB\-\-debug\fP } } .sp \fICOMMANDS\fP := { \fBshow\fP | \fBlist\fP | \fBhelp\fP } .UNINDENT .UNINDENT .SH PERF COMMANDS .nf \fBbpftool\fP \fBperf\fP { \fBshow\fP | \fBlist\fP } \fBbpftool\fP \fBperf help\fP .fi .sp .SH DESCRIPTION .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .TP .B \fBbpftool perf { show | list }\fP List all raw_tracepoint, tracepoint, kprobe attachment in the system. .sp Output will start with process id and file descriptor in that process, followed by bpf program id, attachment information, and attachment point. The attachment point for raw_tracepoint/tracepoint is the trace probe name. The attachment point for k[ret]probe is either symbol name and offset, or a kernel virtual address. The attachment point for u[ret]probe is the file name and the file offset. .TP .B \fBbpftool perf help\fP Print short help message. .UNINDENT .UNINDENT .UNINDENT .SH OPTIONS .INDENT 0.0 .INDENT 3.5 .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 .UNINDENT .UNINDENT .SH EXAMPLES .nf \fB# bpftool perf\fP .fi .sp .INDENT 0.0 .INDENT 3.5 .sp .EX pid 21711 fd 5: prog_id 5 kprobe func __x64_sys_write offset 0 pid 21765 fd 5: prog_id 7 kretprobe func __x64_sys_nanosleep offset 0 pid 21767 fd 5: prog_id 8 tracepoint sys_enter_nanosleep pid 21800 fd 5: prog_id 9 uprobe filename /home/yhs/a.out offset 1159 .EE .UNINDENT .UNINDENT .nf \fB# bpftool \-j perf\fP .fi .sp .INDENT 0.0 .INDENT 3.5 .sp .EX [{\(dqpid\(dq:21711,\(dqfd\(dq:5,\(dqprog_id\(dq:5,\(dqfd_type\(dq:\(dqkprobe\(dq,\(dqfunc\(dq:\(dq__x64_sys_write\(dq,\(dqoffset\(dq:0}, \e {\(dqpid\(dq:21765,\(dqfd\(dq:5,\(dqprog_id\(dq:7,\(dqfd_type\(dq:\(dqkretprobe\(dq,\(dqfunc\(dq:\(dq__x64_sys_nanosleep\(dq,\(dqoffset\(dq:0}, \e {\(dqpid\(dq:21767,\(dqfd\(dq:5,\(dqprog_id\(dq:8,\(dqfd_type\(dq:\(dqtracepoint\(dq,\(dqtracepoint\(dq:\(dqsys_enter_nanosleep\(dq}, \e {\(dqpid\(dq:21800,\(dqfd\(dq:5,\(dqprog_id\(dq:9,\(dqfd_type\(dq:\(dquprobe\(dq,\(dqfilename\(dq:\(dq/home/yhs/a.out\(dq,\(dqoffset\(dq:1159}] .EE .UNINDENT .UNINDENT .SH SEE ALSO .INDENT 0.0 .INDENT 3.5 \fBbpf\fP(2), \fBbpf\-helpers\fP(7), \fBbpftool\fP(8), \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\-prog\fP(8), \fBbpftool\-struct_ops\fP(8) .UNINDENT .UNINDENT .\" Generated by docutils manpage writer. .