Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

tools, bpftool: Add ringbuf map type to map command docs

Commit c34a06c56df7 ("tools/bpftool: Add ringbuf map to a list of known
map types") added the symbolic "ringbuf" name. Document it in the bpftool
map command docs and usage as well.

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20200616113303.8123-1-tklauser@distanz.ch

authored by

Tobias Klauser and committed by
Daniel Borkmann
1c7fb20d 02553b91

+2 -2
+1 -1
tools/bpf/bpftool/Documentation/bpftool-map.rst
··· 49 49 | | **lru_percpu_hash** | **lpm_trie** | **array_of_maps** | **hash_of_maps** 50 50 | | **devmap** | **devmap_hash** | **sockmap** | **cpumap** | **xskmap** | **sockhash** 51 51 | | **cgroup_storage** | **reuseport_sockarray** | **percpu_cgroup_storage** 52 - | | **queue** | **stack** | **sk_storage** | **struct_ops** } 52 + | | **queue** | **stack** | **sk_storage** | **struct_ops** | **ringbuf** } 53 53 54 54 DESCRIPTION 55 55 ===========
+1 -1
tools/bpf/bpftool/map.c
··· 1591 1591 " lru_percpu_hash | lpm_trie | array_of_maps | hash_of_maps |\n" 1592 1592 " devmap | devmap_hash | sockmap | cpumap | xskmap | sockhash |\n" 1593 1593 " cgroup_storage | reuseport_sockarray | percpu_cgroup_storage |\n" 1594 - " queue | stack | sk_storage | struct_ops }\n" 1594 + " queue | stack | sk_storage | struct_ops | ringbuf }\n" 1595 1595 " " HELP_SPEC_OPTIONS "\n" 1596 1596 "", 1597 1597 bin_name, argv[-2]);