xref: /linux/tools/bpf/bpftool/Documentation/common_options.rst (revision c532de5a67a70f8533d495f8f2aaa9a0491c3ad0)
1.. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
2
3-h, --help
4    Print short help message (similar to **bpftool help**).
5
6-V, --version
7    Print bpftool's version number (similar to **bpftool version**), the number
8    of the libbpf version in use, and optional features that were included when
9    bpftool was compiled. Optional features include linking against LLVM or
10    libbfd to provide the disassembler for JIT-ted programs (**bpftool prog
11    dump jited**) and usage of BPF skeletons (some features like **bpftool prog
12    profile** or showing pids associated to BPF objects may rely on it).
13
14-j, --json
15    Generate JSON output. For commands that cannot produce JSON, this option
16    has no effect.
17
18-p, --pretty
19    Generate human-readable JSON output. Implies **-j**.
20
21-d, --debug
22    Print all logs available, even debug-level information. This includes logs
23    from libbpf as well as from the verifier, when attempting to load programs.
24