On Sat, Jun 15, 2019 at 1:28 PM Song Liu <liu.song.a23@xxxxxxxxx> wrote: > > On Sat, Jun 15, 2019 at 1:25 PM Song Liu <liu.song.a23@xxxxxxxxx> wrote: > > > > On Mon, Jun 10, 2019 at 9:49 PM Andrii Nakryiko <andriin@xxxxxx> wrote: > > > > > > As a preparation for adding BTF-based BPF map loading, extract .BTF and > > > .BTF.ext loading logic. Also simplify error handling in > > > bpf_object__elf_collect() by returning early, as there is no common > > > clean up to be done. > > Maybe separate bpf_object__load_btf() and other cleanup in two patches? > (I won't complain if you keep them together) Split into two. > > Thanks, > Song > > > > > > > Signed-off-by: Andrii Nakryiko <andriin@xxxxxx> > > > --- > > > tools/lib/bpf/libbpf.c | 137 ++++++++++++++++++++++------------------- > > > 1 file changed, 75 insertions(+), 62 deletions(-) <snip>