]> git.baikalelectronics.ru Git - kernel.git/commit
bpf/tracing: add a bpf test for new ioctl query interface
authorYonghong Song <yhs@fb.com>
Mon, 11 Dec 2017 19:39:03 +0000 (11:39 -0800)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 12 Dec 2017 16:46:40 +0000 (08:46 -0800)
commit7223eff7e41a1fa3d93968e0c3ca80d496d452d9
treee7cc1c25702aec28b2fb89842e4ccef512d9582f
parent843b77e6584fab0d1299814302b599be892c49ce
bpf/tracing: add a bpf test for new ioctl query interface

Added a subtest in test_progs. The tracepoint is
sched/sched_switch. Multiple bpf programs are attached to
this tracepoint and the query interface is exercised.

Signed-off-by: Yonghong Song <yhs@fb.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/include/uapi/linux/perf_event.h
tools/testing/selftests/bpf/Makefile
tools/testing/selftests/bpf/test_progs.c
tools/testing/selftests/bpf/test_tracepoint.c [new file with mode: 0644]