]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/bpf: mark verifier test that uses bpf_trace_printk as BPF_PROG_TYPE_TRACEPOINT
authorStanislav Fomichev <sdf@google.com>
Mon, 28 Jan 2019 17:21:18 +0000 (09:21 -0800)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 31 Jan 2019 09:13:21 +0000 (10:13 +0100)
commit396708291439e302493c5bbc44cf8eb1b2904ac9
tree499bb75269dc00ff4121f793c4827b6eea77d3bd
parentfaf64235c0c8fc67345a6619fe7ee5ac4e19a560
selftests/bpf: mark verifier test that uses bpf_trace_printk as BPF_PROG_TYPE_TRACEPOINT

We don't have this helper if the kernel was compiled without
CONFIG_BPF_EVENTS. Setting prog_type to BPF_PROG_TYPE_TRACEPOINT
let's verifier correctly skip this test based on the missing
prog_type support in the kernel.

Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
tools/testing/selftests/bpf/verifier/unpriv.c