mirror of
https://gitee.com/bianbu-linux/linux-6.6
synced 2025-04-24 14:07:52 -04:00
Similarly to "libbfd", add a "llvm" feature to the output of command "bpftool version" to indicate that LLVM is used for disassembling JIT-ed programs. This feature is mutually exclusive (from Makefile definitions) with "libbfd". Signed-off-by: Quentin Monnet <quentin@isovalent.com> Tested-by: Niklas Söderlund <niklas.soderlund@corigine.com> Acked-by: Yonghong Song <yhs@fb.com> Link: https://lore.kernel.org/r/20221025150329.97371-9-quentin@isovalent.com Signed-off-by: Alexei Starovoitov <ast@kernel.org>
34 lines
1.3 KiB
ReStructuredText
34 lines
1.3 KiB
ReStructuredText
.. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
|
|
|
|
-h, --help
|
|
Print short help message (similar to **bpftool help**).
|
|
|
|
-V, --version
|
|
Print bpftool's version number (similar to **bpftool version**), the
|
|
number of the libbpf version in use, and optional features that were
|
|
included when bpftool was compiled. Optional features include linking
|
|
against LLVM or 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.
|