]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitb03dc5254b6f1c0548a96cc96aeee2967ce7f38e
treef9219c583de26f8bb36e6f821ad3c15218a7de0c
parent884c7a4847e2d83805e128e195fcb6772a7e2f9f
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