tools/bpf: add two BPF_TASK_FD_QUERY tests in test_progs
authorYonghong Song <yhs@fb.com>
Thu, 24 May 2018 18:21:57 +0000 (11:21 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 25 May 2018 01:18:20 +0000 (18:18 -0700)
commitf699cf7aa41f7b5a48316c0d21b76861b45e46e8
tree0179a6929e2d9f07f635bf3617bff80be13daab2
parentecb96f7fe153c7ff2fd31db64c52a53b7e6401ab
tools/bpf: add two BPF_TASK_FD_QUERY tests in test_progs

The new tests are added to query perf_event information
for raw_tracepoint and tracepoint attachment. For tracepoint,
both syscalls and non-syscalls tracepoints are queries as
they are treated slightly differently inside the kernel.

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/testing/selftests/bpf/test_progs.c