libbpf: Make use of BTF field iterator in BTF handling code
authorAndrii Nakryiko <andrii@kernel.org>
Wed, 5 Jun 2024 00:16:27 +0000 (17:16 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 5 Jun 2024 14:54:37 +0000 (16:54 +0200)
commitc2641123696b572a3b059e1b45777317ba9f9086
treecb5c3b3155a1e4553d66c1860cca69bd548c4807
parent2bce2c1cb2f0acbf619737a10575f99df0c43984
libbpf: Make use of BTF field iterator in BTF handling code

Use new BTF field iterator logic to replace all the callback-based
visitor calls. There is still a .BTF.ext callback-based visitor APIs
that should be converted, which will happens as a follow up.

Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Tested-by: Alan Maguire <alan.maguire@oracle.com>
Acked-by: Eduard Zingerman <eddyz87@gmail.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Link: https://lore.kernel.org/bpf/20240605001629.4061937-4-andrii@kernel.org
tools/lib/bpf/btf.c