diff options
author | Quentin Monnet <quentin.monnet@netronome.com> | 2017-10-20 00:46:26 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-10-22 03:11:32 +0200 |
commit | 821cfbb0dcfbb24506dc6958361ca2b80b928049 (patch) | |
tree | 3c15e3ad7cc63f5a05994983138b36e1ad4a3c1e /tools/bpf/bpftool/Documentation | |
parent | tools: bpftool: show that `opcodes` or `file FILE` should be exclusive (diff) | |
download | linux-821cfbb0dcfbb24506dc6958361ca2b80b928049.tar.xz linux-821cfbb0dcfbb24506dc6958361ca2b80b928049.zip |
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>
Diffstat (limited to 'tools/bpf/bpftool/Documentation')
-rw-r--r-- | tools/bpf/bpftool/Documentation/bpftool.rst | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/bpf/bpftool/Documentation/bpftool.rst b/tools/bpf/bpftool/Documentation/bpftool.rst index f1df1893fb54..45ad8baf1915 100644 --- a/tools/bpf/bpftool/Documentation/bpftool.rst +++ b/tools/bpf/bpftool/Documentation/bpftool.rst @@ -14,6 +14,8 @@ SYNOPSIS **bpftool** batch file *FILE* + **bpftool** version + *OBJECT* := { **map** | **program** } *MAP-COMMANDS* := |