On Fri, 2024-05-10 at 11:30 +0100, Alan Maguire wrote: > Split BPF Type Format (BTF) provides huge advantages in that kernel > modules only have to provide type information for types that they do not > share with the core kernel; for core kernel types, split BTF refers to > core kernel BTF type ids. So for a STRUCT sk_buff, a module that > uses that structure (or a pointer to it) simply needs to refer to the > core kernel type id, saving the need to define the structure and its many > dependents. This cuts down on duplication and makes BTF as compact > as possible. [...] Tested-by: Eduard Zingerman <eddyz87@xxxxxxxxx> I tried this patch-set with modified pahole: - test_{verifier,progs,maps} are passing; - .BTF.base section is added in bpf_testmod.ko; - bpftool could be used to view BTF both with and w/o -R option.