On Mon, Sep 13, 2021 at 06:47:33PM -0700, Andrii Nakryiko wrote: > Remove almost all the code that explicitly iterated BPF program section > definitions in favor of using find_sec_def(). The only remaining user of > section_defs is libbpf_get_type_names that has to iterate all of them to > construct its result. > > Having one internal API entry point for section definitions will > simplify further refactorings around libbpf's program section > definitions parsing. Acked-by: Martin KaFai Lau <kafai@xxxxxx>