On Fri, Feb 2, 2024, at 2:10 PM, Andrii Nakryiko wrote: > But yes, you'd have to specify both vmlinux and all the module > BTFs at the same time (which bpftool allows you to do easily with its > CLI interface, so not really a problem) I didn't see a way to specify a directory for vmlinux and all the modules BTFs. Are you suggesting I specify the path to each individually? I didn't see a way to do that with the current CLI api. It assumes that the input is only a single path. On Mon, Feb 5, 2024 at 10:21 AM Andrii Nakryiko <andrii.nakryiko@xxxxxxxxx> wrote: > 2) append each module BTF to that instance (we have btf__add_btf() API > already for that). This will rewrite type IDs for each module > (shifting them by some constant number) It looks like btf__add_btf() doesn't support split BTF, which the module BTF has to be in order for it to parse correctly. Any suggestions for how to proceed? Do I need to add support for split BTF to btf__add_btf() to libbpf? If so, any thoughts on how that should work would be appreciated.