]> git.baikalelectronics.ru Git - kernel.git/commit
tools/bpf: Support new uapi for map element bpf iterator
authorYonghong Song <yhs@fb.com>
Wed, 5 Aug 2020 05:50:58 +0000 (22:50 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 6 Aug 2020 23:39:14 +0000 (16:39 -0700)
commitead181818330ac063b76506693bda3c93215a97a
tree89c462f3b9f1fa1ea8e5d22f67d2f21fbf2766e1
parent8fb647355fea44bd86726b861eb43d89fc6afec2
tools/bpf: Support new uapi for map element bpf iterator

Previous commit adjusted kernel uapi for map
element bpf iterator. This patch adjusted libbpf API
due to uapi change. bpftool and bpf_iter selftests
are also changed accordingly.

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Acked-by: John Fastabend <john.fastabend@gmail.com>
Link: https://lore.kernel.org/bpf/20200805055058.1457623-1-yhs@fb.com
tools/bpf/bpftool/iter.c
tools/include/uapi/linux/bpf.h
tools/lib/bpf/bpf.c
tools/lib/bpf/bpf.h
tools/lib/bpf/libbpf.c
tools/lib/bpf/libbpf.h
tools/testing/selftests/bpf/prog_tests/bpf_iter.c