]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
selftests/bpf: fix broken build
authorAlexei Starovoitov <ast@fb.com>
Sat, 11 Mar 2017 06:05:55 +0000 (22:05 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 13 Mar 2017 06:48:41 +0000 (23:48 -0700)
commit1da8ac7c49fb2879ba95006d8bd1095e6870ea1a
tree98d5fd4bdf9ea69d47039e52c11304c8a461121e
parent79099aab38c8f5c746748b066ae74ba984fe2cc8
selftests/bpf: fix broken build

Recent merge of 'linux-kselftest-4.11-rc1' tree broke bpf test build.
None of the tests were building and test_verifier.c had tons of compiler errors.
Fix it and add #ifdef CAP_IS_SUPPORTED to support old versions of libcap.
Tested on centos 6.8 and 7

Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Tested-by: Daniel Borkmann <daniel@iogearbox.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/include/uapi/linux/bpf_perf_event.h [new file with mode: 0644]
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/test_verifier.c