bpf: Add bpf_map iterator
authorYonghong Song <yhs@fb.com>
Sat, 9 May 2020 17:59:09 +0000 (10:59 -0700)
committerAlexei Starovoitov <ast@kernel.org>
Sun, 10 May 2020 00:05:26 +0000 (17:05 -0700)
commit6086d29def80edd78f9832ea6eafa74e3818f6a7
treeabaedb47ce4edee0744294fef6e1bfecb69856ab
parente5158d987b72c3f318b4b52a01ac6f3997bd0c00
bpf: Add bpf_map iterator

Implement seq_file operations to traverse all bpf_maps.

Signed-off-by: Yonghong Song <yhs@fb.com>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Andrii Nakryiko <andriin@fb.com>
Link: https://lore.kernel.org/bpf/20200509175909.2476096-1-yhs@fb.com
include/linux/bpf.h
kernel/bpf/Makefile
kernel/bpf/map_iter.c [new file with mode: 0644]
kernel/bpf/syscall.c