samples/bpf: add a samples/bpf test for BPF_TASK_FD_QUERY
authorYonghong Song <yhs@fb.com>
Thu, 24 May 2018 18:21:56 +0000 (11:21 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 25 May 2018 01:18:20 +0000 (18:18 -0700)
commitecb96f7fe153c7ff2fd31db64c52a53b7e6401ab
treeb8c6e0b6ef20c9f7a3cb1ae211de6aa2e62ff2de
parent73bc4d9fc045fb709483a733683f816e64a99431
samples/bpf: add a samples/bpf test for BPF_TASK_FD_QUERY

This is mostly to test kprobe/uprobe which needs kernel headers.

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
samples/bpf/Makefile
samples/bpf/task_fd_query_kern.c [new file with mode: 0644]
samples/bpf/task_fd_query_user.c [new file with mode: 0644]