summaryrefslogtreecommitdiff
path: root/tools/bpf/bpftool/main.c
diff options
context:
space:
mode:
authorAndrii Nakryiko <andriin@fb.com>2020-06-20 02:16:58 +0300
committerAlexei Starovoitov <ast@kernel.org>2020-06-23 03:01:48 +0300
commita479b8ce4ed1457f814be6f67a8447a9af38f235 (patch)
tree97b32b3d93bb6b56b76a5ec1846bafcf887efaf6 /tools/bpf/bpftool/main.c
parentb7ddfab20a6af3a0e366000eada63adf6a7683e7 (diff)
downloadlinux-a479b8ce4ed1457f814be6f67a8447a9af38f235.tar.xz
tools/bpftool: Move map/prog parsing logic into common
Move functions that parse map and prog by id/tag/name/etc outside of map.c/prog.c, respectively. These functions are used outside of those files and are generic enough to be in common. This also makes heavy-weight map.c and prog.c more decoupled from the rest of bpftool files and facilitates more lightweight bootstrap bpftool variant. Signed-off-by: Andrii Nakryiko <andriin@fb.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Reviewed-by: Quentin Monnet <quentin@isovalent.com> Link: https://lore.kernel.org/bpf/20200619231703.738941-5-andriin@fb.com
Diffstat (limited to 'tools/bpf/bpftool/main.c')
0 files changed, 0 insertions, 0 deletions