projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0659d8
)
tools/bpftool: Add ringbuf map to a list of known map types
author
Andrii Nakryiko
<andriin@fb.com>
Mon, 15 Jun 2020 22:53:55 +0000
(15:53 -0700)
committer
Daniel Borkmann
<daniel@iogearbox.net>
Tue, 16 Jun 2020 00:18:30 +0000
(
02:18
+0200)
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
tools/bpf/bpftool/map.c
patch
|
blob
|
history
diff --git
a/tools/bpf/bpftool/map.c
b/tools/bpf/bpftool/map.c
index
c5fac80
..
99109a6
100644
(file)
--- a/
tools/bpf/bpftool/map.c
+++ b/
tools/bpf/bpftool/map.c
@@
-49,6
+49,7
@@
const char * const map_type_name[] = {
[BPF_MAP_TYPE_STACK] = "stack",
[BPF_MAP_TYPE_SK_STORAGE] = "sk_storage",
[BPF_MAP_TYPE_STRUCT_OPS] = "struct_ops",
+ [BPF_MAP_TYPE_RINGBUF] = "ringbuf",
};
const size_t map_type_name_size = ARRAY_SIZE(map_type_name);