]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit754e8911b9e447ff7f410b4723bbfedbdd002162
treeca414d4f6922bf85badda4e5d5dead9624e6709e
parent1bb265f68ca97b41acac7ce3933132e0bedb530b
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