aboutsummaryrefslogtreecommitdiffstats
path: root/tools/bpf/bpftool/Documentation/common_options.rst
blob: 908487b9c2adfd2f9c8470ffbfb3c3a76c29a3b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
.. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)

-h, --help
	  Print short help message (similar to **bpftool help**).

-V, --version
	  Print version number (similar to **bpftool version**), and optional
	  features that were included when bpftool was compiled. Optional
	  features include linking against libbfd to provide the disassembler
	  for JIT-ted programs (**bpftool prog dump jited**) and usage of BPF
	  skeletons (some features like **bpftool prog profile** or showing
	  pids associated to BPF objects may rely on it).

-j, --json
	  Generate JSON output. For commands that cannot produce JSON, this
	  option has no effect.

-p, --pretty
	  Generate human-readable JSON output. Implies **-j**.

-d, --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.

-l, --legacy
	  Use legacy libbpf mode which has more relaxed BPF program
	  requirements. By default, bpftool has more strict requirements
	  about section names, changes pinning logic and doesn't support
	  some of the older non-BTF map declarations.

	  See https://github.com/libbpf/libbpf/wiki/Libbpf:-the-road-to-v1.0
	  for details.