diff options
author | Andrii Nakryiko <andriin@fb.com> | 2020-06-19 16:16:58 -0700 |
---|---|---|
committer | Alexei Starovoitov <ast@kernel.org> | 2020-06-22 17:01:48 -0700 |
commit | a479b8ce4ed1457f814be6f67a8447a9af38f235 (patch) | |
tree | 97b32b3d93bb6b56b76a5ec1846bafcf887efaf6 /tools/bpf/bpftool/json_writer.h | |
parent | b7ddfab20a6af3a0e366000eada63adf6a7683e7 (diff) |
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/json_writer.h')
0 files changed, 0 insertions, 0 deletions