libbpf: Refactor BTF-defined map definition parsing logic
authorAndrii Nakryiko <andriin@fb.com>
Wed, 29 Apr 2020 00:27:37 +0000 (17:27 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Wed, 29 Apr 2020 00:35:03 +0000 (17:35 -0700)
commit41017e56af6cf99122c86655f60fe4e1b75ecf48
treeea82bb5ec2386221ab5ce4e40f895a8739b323dd
parent1f427a8077996f8aaefbc99e40ff3068ee627d8d
libbpf: Refactor BTF-defined map definition parsing logic

Factor out BTF map definition logic into stand-alone routine for easier reuse
for map-in-map case.

Signed-off-by: Andrii Nakryiko <andriin@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://lore.kernel.org/bpf/20200429002739.48006-2-andriin@fb.com
tools/lib/bpf/libbpf.c