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