bpftool: Use libbpf_bpf_map_type_str
authorDaniel Müller <deso@posteo.net>
Mon, 23 May 2022 23:04:22 +0000 (23:04 +0000)
committerAndrii Nakryiko <andrii@kernel.org>
Thu, 2 Jun 2022 23:26:24 +0000 (16:26 -0700)
commit2e98964bd6e283568730b1a4da3b1e4da3306a8e
tree531451f06709f20a67f53ca60ed133390db72c35
parentc3a2574011a313707570d35b7e6e6536eda69dbb
bpftool: Use libbpf_bpf_map_type_str

This change switches bpftool over to using the recently introduced
libbpf_bpf_map_type_str function instead of maintaining its own string
representation for the bpf_map_type enum.

Signed-off-by: Daniel Müller <deso@posteo.net>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Quentin Monnet <quentin@isovalent.com>
Link: https://lore.kernel.org/bpf/20220523230428.3077108-7-deso@posteo.net
tools/bpf/bpftool/feature.c
tools/bpf/bpftool/main.h
tools/bpf/bpftool/map.c
tools/testing/selftests/bpf/test_bpftool_synctypes.py