]> git.baikalelectronics.ru Git - kernel.git/commit
tools/bpftool: Add ringbuf map to a list of known map types
authorAndrii Nakryiko <andriin@fb.com>
Mon, 15 Jun 2020 22:53:55 +0000 (15:53 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Tue, 16 Jun 2020 00:18:30 +0000 (02:18 +0200)
commit7929266bfb0978d87ca25b270be8cebe1ad352e7
tree0919bfb20f7dcd361e1ed79171adabd845da8733
parentaa8400a1645faea32cc1af26790a620c4dc066df
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
tools/bpf/bpftool/map.c