Re: [PATCH bpf] libbpf: handle BTF parsing and loading properly

2019-03-11 Thread Daniel Borkmann
On 03/09/2019 12:58 AM, Andrii Nakryiko wrote: > This patch splits and cleans up error handling logic for loading BTF data. > Previously, if BTF data was parsed successfully, but failed to load into > kernel, we'd report nonsensical error code, instead of error returned from > btf__load(). Now btf_

Re: [PATCH bpf] libbpf: handle BTF parsing and loading properly

2019-03-08 Thread Yonghong Song
On 3/8/19 3:58 PM, Andrii Nakryiko wrote: > This patch splits and cleans up error handling logic for loading BTF data. > Previously, if BTF data was parsed successfully, but failed to load into > kernel, we'd report nonsensical error code, instead of error returned from > btf__load(). Now btf__ne

Re: [PATCH bpf] libbpf: handle BTF parsing and loading properly

2019-03-08 Thread Martin Lau
On Fri, Mar 08, 2019 at 03:58:20PM -0800, Andrii Nakryiko wrote: > This patch splits and cleans up error handling logic for loading BTF data. > Previously, if BTF data was parsed successfully, but failed to load into > kernel, we'd report nonsensical error code, instead of error returned from > btf

[PATCH bpf] libbpf: handle BTF parsing and loading properly

2019-03-08 Thread Andrii Nakryiko
This patch splits and cleans up error handling logic for loading BTF data. Previously, if BTF data was parsed successfully, but failed to load into kernel, we'd report nonsensical error code, instead of error returned from btf__load(). Now btf__new() and btf__load() are handled separately with prop