On Fri, 2024-05-10 at 11:30 +0100, Alan Maguire wrote: > Options cover existing parsing scenarios (ELF, raw, retrieving > .BTF.ext) and also allow specification of the ELF section name > containing BTF. This will allow consumers to retrieve BTF from > .BTF.base sections (BTF_BASE_ELF_SEC) also. > > Signed-off-by: Alan Maguire <alan.maguire@xxxxxxxxxx> > --- For the sake of discussion, what are the benefits of adding btf__parse_opts(), compared to modifying btf__parse() to check if .BTF.base is present and acting accordingly? btf__parse() already does a guess if passed argument is an ELF or a RAW file, so such guessing semantics seems to be a natural extension.