On Mon, Jun 20, 2022 at 11:17:10PM +0000, Daniel Müller wrote: > +int bpf_core_types_match(const struct btf *local_btf, __u32 local_id, > + const struct btf *targ_btf, __u32 targ_id) > +{ The libbpf and kernel support for types_match looks nearly identical. Maybe put in tools/lib/bpf/relo_core.c so it's one copy for both?