lkml.org 
[lkml]   [2022]   [Jun]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
Subject[RFC bpf-next 0/2] bpf: add a kallsyms BPF iterator
Date
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

\
 
 \ /
  Last update: 2022-06-24 18:48    [W:0.049 / U:2.612 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site