On Fri, Feb 2, 2024, at 2:10 PM, Andrii Nakryiko wrote: > > Maybe the right solution is to concat vmlinux and all the relevant > module BTFs first, dedup it again, then minimize against that "super > BTF". 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) > How would you handle the Type ID conflicts between the modules, since they all start at vmlinux+1? Is there a danger of conflicting type names, where there are two types with the same name but different layouts? I was trying to mirror the sysfs file layout, so a loader didn't have different behavior between user-supplied BTF and kernel-provided BTF.