tools/bpf: sync kernel header bpf.h and add bpf_task_fd_query in libbpf
authorYonghong Song <yhs@fb.com>
Thu, 24 May 2018 18:21:10 +0000 (11:21 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Fri, 25 May 2018 01:18:19 +0000 (18:18 -0700)
commit30687ad94e57b53dd66950ab570203dfd1f9db34
treeca414d4f6922bf85badda4e5d5dead9624e6709e
parent41bdc4b40ed6fb26c6acc655ed9a243a348709c9
tools/bpf: sync kernel header bpf.h and add bpf_task_fd_query in libbpf

Sync kernel header bpf.h to tools/include/uapi/linux/bpf.h and
implement bpf_task_fd_query() in libbpf. The test programs
in samples/bpf and tools/testing/selftests/bpf, and later bpftool
will use this libbpf function to query kernel.

Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
tools/include/uapi/linux/bpf.h
tools/lib/bpf/bpf.c
tools/lib/bpf/bpf.h