diff options
| author | Quentin Monnet <[email protected]> | 2022-02-10 10:42:36 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2022-02-11 05:09:47 +0000 |
| commit | 61fce9693f0311949c59cc62a8fdee6e36243553 (patch) | |
| tree | 0d88ba70c42f95bfb2715ad78fe7360e56e26fdb /tools/lib/bpf/netlink.c | |
| parent | bpf: Fix bpf_prog_pack build for ppc64_defconfig (diff) | |
| download | kernel-61fce9693f0311949c59cc62a8fdee6e36243553.tar.gz kernel-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 <[email protected]>
Signed-off-by: Andrii Nakryiko <[email protected]>
Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'tools/lib/bpf/netlink.c')
0 files changed, 0 insertions, 0 deletions
