bpf: add a ksym BPF iterator
authorAlan Maguire <alan.maguire@oracle.com>
Tue, 12 Jul 2022 12:31:44 +0000 (13:31 +0100)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 12 Jul 2022 22:27:19 +0000 (15:27 -0700)
commit647cafa22349026a8435030e9157074ab7fe5710
treea6e5c8f5f13916ef716750bd29d7b4a3ef9279de
parentf16214c102f0f64b2f3546e989498525bd7b7708
bpf: add a ksym BPF iterator

add a "ksym" iterator which provides access to a "struct kallsym_iter"
for each symbol.  Intent is to support more flexible symbol parsing
as discussed in [1].

[1] https://lore.kernel.org/all/YjRPZj6Z8vuLeEZo@krava/

Suggested-by: Alexei Starovoitov <alexei.starovoitov@gmail.com>
Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
Acked-by: Yonghong Song <yhs@fb.com>
Link: https://lore.kernel.org/r/1657629105-7812-2-git-send-email-alan.maguire@oracle.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/kallsyms.c