Re: [PATCH bpf-next v3 1/3] bpf, libbpf: introduce bpf_object__probe_caps to test BPF capabilities

2018-11-21 Thread Daniel Borkmann
On 11/21/2018 02:11 AM, Stanislav Fomichev wrote: > It currently only checks whether kernel supports map/prog names. > This capability check will be used in the next two commits to skip setting > prog/map names. > > Suggested-by: Daniel Borkmann > Signed-off-by: Stanislav Fomichev Looks great,

[PATCH bpf-next v3 1/3] bpf, libbpf: introduce bpf_object__probe_caps to test BPF capabilities

2018-11-20 Thread Stanislav Fomichev
It currently only checks whether kernel supports map/prog names. This capability check will be used in the next two commits to skip setting prog/map names. Suggested-by: Daniel Borkmann Signed-off-by: Stanislav Fomichev --- tools/lib/bpf/libbpf.c | 58 ++