OSDN Git Service

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)
commitd279f1f8c64711ca986c3121c8ec811b892932f0
treee7cc1c25702aec28b2fb89842e4ccef512d9582f
parentf371b304f12e31fe30207c41ca7754564e0ea4dc
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]