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)
commitc34a06c56df7c513cd19f591b26fe7d814c778cc
tree0919bfb20f7dcd361e1ed79171adabd845da8733
parentb0659d8a950d424e57cc0a67afc4740ee561224e
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