aboutsummaryrefslogtreecommitdiffstats
path: root/tools/lib/bpf/netlink.c
diff options
context:
space:
mode:
authorQuentin Monnet <quentin@isovalent.com>2022-02-10 10:42:36 +0000
committerAndrii Nakryiko <andrii@kernel.org>2022-02-10 21:09:47 -0800
commit61fce9693f0311949c59cc62a8fdee6e36243553 (patch)
tree0d88ba70c42f95bfb2715ad78fe7360e56e26fdb /tools/lib/bpf/netlink.c
parentbpf: Fix bpf_prog_pack build for ppc64_defconfig (diff)
downloadlinux-61fce9693f0311949c59cc62a8fdee6e36243553.tar.gz
linux-61fce9693f0311949c59cc62a8fdee6e36243553.zip
bpftool: Add libbpf's version number to "bpftool version" output
To help users check what version of libbpf is being used with bpftool, print the number along with bpftool's own version number. Output: $ ./bpftool version ./bpftool v5.16.0 using libbpf v0.7 features: libbfd, libbpf_strict, skeletons $ ./bpftool version --json --pretty { "version": "5.16.0", "libbpf_version": "0.7", "features": { "libbfd": true, "libbpf_strict": true, "skeletons": true } } Note that libbpf does not expose its patch number. Signed-off-by: Quentin Monnet <quentin@isovalent.com> Signed-off-by: Andrii Nakryiko <andrii@kernel.org> Link: https://lore.kernel.org/bpf/20220210104237.11649-2-quentin@isovalent.com
Diffstat (limited to 'tools/lib/bpf/netlink.c')
0 files changed, 0 insertions, 0 deletions