diff options
author | Quentin Monnet <quentin@isovalent.com> | 2021-11-10 12:46:31 +0100 |
---|---|---|
committer | Andrii Nakryiko <andrii@kernel.org> | 2021-11-15 03:35:02 +0100 |
commit | 3811e2753a39efb8aa5b8c133dc24f6d26f6cd96 (patch) | |
tree | d74cd2b37a0eb22c6b408d03b7256ee73f5bd344 /tools/bpf/bpftool/map.c | |
parent | bpftool: Fix indent in option lists in the documentation (diff) | |
download | linux-3811e2753a39efb8aa5b8c133dc24f6d26f6cd96.tar.xz linux-3811e2753a39efb8aa5b8c133dc24f6d26f6cd96.zip |
bpftool: Update the lists of names for maps and prog-attach types
To support the different BPF map or attach types, bpftool must remain
up-to-date with the types supported by the kernel. Let's update the
lists, by adding the missing Bloom filter map type and the perf_event
attach type.
Both missing items were found with test_bpftool_synctypes.py.
Signed-off-by: Quentin Monnet <quentin@isovalent.com>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/bpf/20211110114632.24537-6-quentin@isovalent.com
Diffstat (limited to '')
-rw-r--r-- | tools/bpf/bpftool/map.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/bpf/bpftool/map.c b/tools/bpf/bpftool/map.c index cae1f1119296..68cb121e65c4 100644 --- a/tools/bpf/bpftool/map.c +++ b/tools/bpf/bpftool/map.c @@ -53,6 +53,7 @@ const char * const map_type_name[] = { [BPF_MAP_TYPE_RINGBUF] = "ringbuf", [BPF_MAP_TYPE_INODE_STORAGE] = "inode_storage", [BPF_MAP_TYPE_TASK_STORAGE] = "task_storage", + [BPF_MAP_TYPE_BLOOM_FILTER] = "bloom_filter", }; const size_t map_type_name_size = ARRAY_SIZE(map_type_name); @@ -1477,7 +1478,7 @@ static int do_help(int argc, char **argv) " devmap | devmap_hash | sockmap | cpumap | xskmap | sockhash |\n" " cgroup_storage | reuseport_sockarray | percpu_cgroup_storage |\n" " queue | stack | sk_storage | struct_ops | ringbuf | inode_storage |\n" - " task_storage }\n" + " task_storage | bloom_filter }\n" " " HELP_SPEC_OPTIONS " |\n" " {-f|--bpffs} | {-n|--nomount} }\n" "", |