]> git.baikalelectronics.ru Git - kernel.git/commit
tools: bpftool: add a command to display bpftool version
authorQuentin Monnet <quentin.monnet@netronome.com>
Thu, 19 Oct 2017 22:46:26 +0000 (15:46 -0700)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 Oct 2017 01:11:32 +0000 (02:11 +0100)
commitd8122a26a58dd7b2377c3da715e8a920a95f81bb
tree3c15e3ad7cc63f5a05994983138b36e1ad4a3c1e
parent7a3e58cba9cb2fd311fd7e0f785f4cb574243227
tools: bpftool: add a command to display bpftool version

This command can be used to print the version of the tool, which is in
fact the version from Linux taken from usr/include/linux/version.h.

Example usage:

    $ bpftool version
    bpftool v4.14.0

Signed-off-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/bpf/bpftool/Documentation/bpftool.rst
tools/bpf/bpftool/main.c