common_options.rst 1.3 KB

12345678910111213141516171819202122232425262728293031323334
  1. .. SPDX-License-Identifier: (GPL-2.0-only OR BSD-2-Clause)
  2. -h, --help
  3. Print short help message (similar to **bpftool help**).
  4. -V, --version
  5. Print bpftool's version number (similar to **bpftool version**), the
  6. number of the libbpf version in use, and optional features that were
  7. included when bpftool was compiled. Optional features include linking
  8. against libbfd to provide the disassembler for JIT-ted programs
  9. (**bpftool prog dump jited**) and usage of BPF skeletons (some
  10. features like **bpftool prog profile** or showing pids associated to
  11. BPF objects may rely on it).
  12. -j, --json
  13. Generate JSON output. For commands that cannot produce JSON, this
  14. option has no effect.
  15. -p, --pretty
  16. Generate human-readable JSON output. Implies **-j**.
  17. -d, --debug
  18. Print all logs available, even debug-level information. This includes
  19. logs from libbpf as well as from the verifier, when attempting to
  20. load programs.
  21. -l, --legacy
  22. Use legacy libbpf mode which has more relaxed BPF program
  23. requirements. By default, bpftool has more strict requirements
  24. about section names, changes pinning logic and doesn't support
  25. some of the older non-BTF map declarations.
  26. See https://github.com/libbpf/libbpf/wiki/Libbpf:-the-road-to-v1.0
  27. for details.