a kallsyms BPF iterator would be useful as it would allow more flexible iteractions with kernel symbols than are currently supported; it could for example create more efficient map representations for lookup, speed up symbol resolution etc. The idea was initially discussed here [1]. [1] https://lore.kernel.org/all/YjRPZj6Z8vuLeEZo@krava/ Alan Maguire (2): bpf: add a kallsyms BPF iterator selftests/bpf: add a kallsyms iter subtest kernel/kallsyms.c | 93 ++++++++++++++++++++++ tools/testing/selftests/bpf/prog_tests/bpf_iter.c | 16 ++++ .../selftests/bpf/progs/bpf_iter_kallsyms.c | 71 +++++++++++++++++ 3 files changed, 180 insertions(+) create mode 100644 tools/testing/selftests/bpf/progs/bpf_iter_kallsyms.c -- 1.8.3.1