common_options.rst (1289B)
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 8 number of the libbpf version in use, and optional features that were 9 included when bpftool was compiled. Optional features include linking 10 against libbfd to provide the disassembler for JIT-ted programs 11 (**bpftool prog dump jited**) and usage of BPF skeletons (some 12 features like **bpftool prog profile** or showing pids associated to 13 BPF objects may rely on it). 14 15-j, --json 16 Generate JSON output. For commands that cannot produce JSON, this 17 option has no effect. 18 19-p, --pretty 20 Generate human-readable JSON output. Implies **-j**. 21 22-d, --debug 23 Print all logs available, even debug-level information. This includes 24 logs from libbpf as well as from the verifier, when attempting to 25 load programs. 26 27-l, --legacy 28 Use legacy libbpf mode which has more relaxed BPF program 29 requirements. By default, bpftool has more strict requirements 30 about section names, changes pinning logic and doesn't support 31 some of the older non-BTF map declarations. 32 33 See https://github.com/libbpf/libbpf/wiki/Libbpf:-the-road-to-v1.0 34 for details.