On 30/08/2024 10:21, Eduard Zingerman wrote: > On Fri, 2024-08-30 at 02:49 +0000, Song Liu wrote: > > [...] > >> Clarification: >> >> With the regression, _both_ .BTF and .BTF.base sections (or at >> least part of these sections) are in little endian for s390: > > Hi Song, > > Understood, thank you for clarification and sorry for confusion. > This makes sense because btf__distill_base() generates > two new BTF structures and both need to inherit endianness. > > Thanks, > Eduard > > [...] > thanks all for the quick root-cause analysis and proposed fixes! Explicitly checking these cases in the btf_endian selftest is probably worthwhile; I've put together tests that do that for non-native endianness but just noticed you mentioned you're working on tests Eduard. Is that what you had in mind? Arnaldo: apologies but I think we'll either need to back out the distilled stuff for 1.28 or have a new libbpf resync that captures the fixes for endian issues once they land. Let me know what works best for you. Thanks!