Add ability to generate split BTF (for kernel modules), as well as load split BTF. --btf_base argument is added to specify base BTF for split BTF. This works for both btf_loader and btf_encoder. Andrii Nakryiko (4): btf_encoder: fix array index type numbering libbtf: improve variable naming and error reporting when writing out BTF libbpf: update libbpf submodlue reference to latest master btf: add support for split BTF loading and encoding btf_encoder.c | 15 ++++++++------- btf_loader.c | 2 +- lib/bpf | 2 +- libbtf.c | 43 +++++++++++++++++++++++++++---------------- libbtf.h | 4 +++- pahole.c | 23 +++++++++++++++++++++++ 6 files changed, 63 insertions(+), 26 deletions(-) -- 2.24.1