diff options
| author | Quentin Monnet <[email protected]> | 2022-02-10 10:42:36 +0000 |
|---|---|---|
| committer | Andrii Nakryiko <[email protected]> | 2022-02-10 21:09:47 -0800 |
| commit | 61fce9693f0311949c59cc62a8fdee6e36243553 (patch) | |
| tree | 0d88ba70c42f95bfb2715ad78fe7360e56e26fdb /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 4cc0991abd3954609a6929234bbb8c0fe7a0298d (diff) | |
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/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions