Re: [PATCH bpf-next] bpftool: fix bpftool build by switching to bpf_object__open_file()

2019-10-08 Thread Stanislav Fomichev
On 10/07, Andrii Nakryiko wrote: > -- Andrii > > On Mon, Oct 7, 2019 at 2:50 PM Andrii Nakryiko > wrote: > > > > On Mon, Oct 7, 2019 at 2:46 PM Stanislav Fomichev wrote: > > > > > > On 10/07, Andrii Nakryiko wrote: > > > > As part of libbpf in 5e61f2707029 ("libbpf: stop enforcing kern_version,

Re: [PATCH bpf-next] bpftool: fix bpftool build by switching to bpf_object__open_file()

2019-10-07 Thread Andrii Nakryiko
-- Andrii On Mon, Oct 7, 2019 at 2:50 PM Andrii Nakryiko wrote: > > On Mon, Oct 7, 2019 at 2:46 PM Stanislav Fomichev wrote: > > > > On 10/07, Andrii Nakryiko wrote: > > > As part of libbpf in 5e61f2707029 ("libbpf: stop enforcing kern_version, > > > populate it for users") non-LIBBPF_API __bpf_

Re: [PATCH bpf-next] bpftool: fix bpftool build by switching to bpf_object__open_file()

2019-10-07 Thread Andrii Nakryiko
On Mon, Oct 7, 2019 at 2:46 PM Stanislav Fomichev wrote: > > On 10/07, Andrii Nakryiko wrote: > > As part of libbpf in 5e61f2707029 ("libbpf: stop enforcing kern_version, > > populate it for users") non-LIBBPF_API __bpf_object__open_xattr() API > > was removed from libbpf.h header. This broke bpft

Re: [PATCH bpf-next] bpftool: fix bpftool build by switching to bpf_object__open_file()

2019-10-07 Thread Stanislav Fomichev
On 10/07, Andrii Nakryiko wrote: > As part of libbpf in 5e61f2707029 ("libbpf: stop enforcing kern_version, > populate it for users") non-LIBBPF_API __bpf_object__open_xattr() API > was removed from libbpf.h header. This broke bpftool, which relied on > that function. This patch fixes the build by

[PATCH bpf-next] bpftool: fix bpftool build by switching to bpf_object__open_file()

2019-10-07 Thread Andrii Nakryiko
As part of libbpf in 5e61f2707029 ("libbpf: stop enforcing kern_version, populate it for users") non-LIBBPF_API __bpf_object__open_xattr() API was removed from libbpf.h header. This broke bpftool, which relied on that function. This patch fixes the build by switching to newly added bpf_object__open