Skip to content

Commit c34a06c

Browse files
anakryikoborkmann
authored andcommitted
tools/bpftool: Add ringbuf map to a list of known map types
Add symbolic name "ringbuf" to map to BPF_MAP_TYPE_RINGBUF. Without this, users will see "type 27" instead of "ringbuf" in `map show` output. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Daniel Borkmann <daniel@iogearbox.net> Link: https://lore.kernel.org/bpf/20200615225355.366256-1-andriin@fb.com
1 parent b0659d8 commit c34a06c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎tools/bpf/bpftool/map.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ const char * const map_type_name[] = {
4949
[BPF_MAP_TYPE_STACK] = "stack",
5050
[BPF_MAP_TYPE_SK_STORAGE] = "sk_storage",
5151
[BPF_MAP_TYPE_STRUCT_OPS] = "struct_ops",
52+
[BPF_MAP_TYPE_RINGBUF] = "ringbuf",
5253
};
5354

5455
const size_t map_type_name_size = ARRAY_SIZE(map_type_name);

0 commit comments

Comments
 (0)