67.2. bpftool-7.7.0
Inspect and manage BPF programs and maps, and generate BPF skeletons
7.7.0-1 · GPL-2.0-only OR BSD-2-Clause · 0.8 SBU · 974.7 KiB, 18 files · 40_lang, 10 of 186 · ports/core/devtools/bpftool
Homepage: https://github.com/libbpf/bpftool
Depends on: make, pkgconf, llvm, clang, libcap, elfutils, zlib, zstd, openssl, python3-docutils.
Required by (2): bcc, networkmanager.
Sources: bpftool-7.7.0.tar.gz (1.5 MiB). Every step kpkg takes applies to this port.
Install: script/chroot/exec.sh bash -c 'source script/phases/40_lang/phase.env && kpkg install bpftool'
build.sh:
cd src
_mk=(
prefix=/usr
VMLINUX_BTF=/sys/kernel/btf/vmlinux
feature-llvm=1
feature-libcap=1
feature-clang-bpf-co-re=1
feature-libelf-zstd=1
feature-libbfd=0
feature-libbfd-liberty=0
feature-libbfd-liberty-z=0
feature-disassembler-four-args=0
feature-disassembler-init-styled=0
)
make "${_mk[@]}"
make "${_mk[@]}" DESTDIR=$PKG install
make -C ../docs prefix=/usr mandir=/usr/share/man DESTDIR=$PKG install
Programs: bpftool.
Directories: /usr/share/licenses/bpftool.