bpf, libbpf: introduce bpf_object__probe_caps to test BPF capabilities
authorStanislav Fomichev <sdf@google.com>
Wed, 21 Nov 2018 01:11:19 +0000 (17:11 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 21 Nov 2018 22:25:33 +0000 (23:25 +0100)
commit47eff61777c7b2db58805f974994713c8acbe9a6
treef9219c583de26f8bb36e6f821ad3c15218a7de0c
parent8c4905b995c649ac71e21611abc2fcefc904b56a
bpf, libbpf: introduce bpf_object__probe_caps to test BPF capabilities

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 <daniel@iogearbox.net>
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/lib/bpf/libbpf.c