diff options
author | Jakub Kicinski <jakub.kicinski@netronome.com> | 2018-10-16 01:30:36 +0200 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2018-10-16 01:39:21 +0200 |
commit | 0b592b5a01bef5416472ec610d3191e019c144a5 (patch) | |
tree | d823270ded921a40ce37d54b4bdfbf607c8f402b /tools/bpf/bpftool/Documentation/bpftool.rst | |
parent | Merge branch 'bpftool_sockmap' (diff) | |
download | linux-0b592b5a01bef5416472ec610d3191e019c144a5.tar.xz linux-0b592b5a01bef5416472ec610d3191e019c144a5.zip |
tools: bpftool: add map create command
Add a way of creating maps from user space. The command takes
as parameters most of the attributes of the map creation system
call command. After map is created its pinned to bpffs. This makes
it possible to easily and dynamically (without rebuilding programs)
test various corner cases related to map creation.
Map type names are taken from bpftool's array used for printing.
In general these days we try to make use of libbpf type names, but
there are no map type names in libbpf as of today.
As with most features I add the motivation is testing (offloads) :)
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
Reviewed-by: Quentin Monnet <quentin.monnet@netronome.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/bpf/bpftool/Documentation/bpftool.rst')
-rw-r--r-- | tools/bpf/bpftool/Documentation/bpftool.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/bpf/bpftool/Documentation/bpftool.rst b/tools/bpf/bpftool/Documentation/bpftool.rst index 65488317fefa..04cd4f92ab89 100644 --- a/tools/bpf/bpftool/Documentation/bpftool.rst +++ b/tools/bpf/bpftool/Documentation/bpftool.rst @@ -22,8 +22,8 @@ SYNOPSIS | { **-j** | **--json** } [{ **-p** | **--pretty** }] } *MAP-COMMANDS* := - { **show** | **list** | **dump** | **update** | **lookup** | **getnext** | **delete** - | **pin** | **event_pipe** | **help** } + { **show** | **list** | **create** | **dump** | **update** | **lookup** | **getnext** + | **delete** | **pin** | **event_pipe** | **help** } *PROG-COMMANDS* := { **show** | **list** | **dump jited** | **dump xlated** | **pin** | **load** | **attach** | **detach** | **help** } |