Re: [PATCH bpf-next] libbpf: prevent loading vmlinux BTF twice

2020-06-24 Thread Daniel Borkmann
On 6/24/20 6:38 AM, Andrii Nakryiko wrote: Prevent loading/parsing vmlinux BTF twice in some cases: for CO-RE relocations and for BTF-aware hooks (tp_btf, fentry/fexit, etc). Fixes: a6ed02cac690 ("libbpf: Load btf_vmlinux only once per object.") Signed-off-by: Andrii Nakryiko Lgtm, applied, t

[PATCH bpf-next] libbpf: prevent loading vmlinux BTF twice

2020-06-23 Thread Andrii Nakryiko
Prevent loading/parsing vmlinux BTF twice in some cases: for CO-RE relocations and for BTF-aware hooks (tp_btf, fentry/fexit, etc). Fixes: a6ed02cac690 ("libbpf: Load btf_vmlinux only once per object.") Signed-off-by: Andrii Nakryiko --- tools/lib/bpf/libbpf.c | 33 ++