Back to home page

OSCL-LXR

 
 

    


0001 .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
0002 
0003 -h, --help
0004           Print short help message (similar to **bpftool help**).
0005 
0006 -V, --version
0007           Print bpftool's version number (similar to **bpftool version**), the
0008           number of the libbpf version in use, and optional features that were
0009           included when bpftool was compiled. Optional features include linking
0010           against libbfd to provide the disassembler for JIT-ted programs
0011           (**bpftool prog dump jited**) and usage of BPF skeletons (some
0012           features like **bpftool prog profile** or showing pids associated to
0013           BPF objects may rely on it).
0014 
0015 -j, --json
0016           Generate JSON output. For commands that cannot produce JSON, this
0017           option has no effect.
0018 
0019 -p, --pretty
0020           Generate human-readable JSON output. Implies **-j**.
0021 
0022 -d, --debug
0023           Print all logs available, even debug-level information. This includes
0024           logs from libbpf as well as from the verifier, when attempting to
0025           load programs.
0026 
0027 -l, --legacy
0028           Use legacy libbpf mode which has more relaxed BPF program
0029           requirements. By default, bpftool has more strict requirements
0030           about section names, changes pinning logic and doesn't support
0031           some of the older non-BTF map declarations.
0032 
0033           See https://github.com/libbpf/libbpf/wiki/Libbpf:-the-road-to-v1.0
0034           for details.