]> 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)
commitb9af315b39501f1b705e1e46818b8bca7ccfcfbb
treee7cc1c25702aec28b2fb89842e4ccef512d9582f
parent638ab5ac55151e4342d728a882e5a70ac94c1e2e
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]