On Thu, 2024-11-28 at 01:24 +0000, Ihor Solodrai wrote: > Introduce a global elf_functions_list variable in btf_encoder.c that > contains an elf_functions per ELF. > > An elf_functions structure is allocated and filled out by > btf_encoder__pre_load_module() hook, and the list is cleared after > btf_encoder__encode() is done. > > At this point btf_encoders don't use shared elf_functions yet (each > maintains their own copy as before), but it is built before encoders > are initialized. > > Signed-off-by: Ihor Solodrai <ihor.solodrai@xxxxx> > --- Acked-by: Eduard Zingerman <eddyz87@xxxxxxxxx> [...]