public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [RFC bpf-next 0/2] bpf: add a kallsyms BPF iterator
@ 2022-06-24 16:45 Alan Maguire
  2022-06-24 16:45 ` [RFC bpf-next 1/2] " Alan Maguire
  2022-06-24 16:45 ` [RFC bpf-next 2/2] selftests/bpf: add a kallsyms iter subtest Alan Maguire
  0 siblings, 2 replies; 4+ messages in thread
From: Alan Maguire @ 2022-06-24 16:45 UTC (permalink / raw)
  To: ast, daniel, andrii, jolsa
  Cc: kafai, songliubraving, yhs, john.fastabend, kpsingh, mhiramat,
	akpm, void, swboyd, ndesaulniers, linux-kernel, netdev, bpf,
	Alan Maguire

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2022-06-24 22:19 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-06-24 16:45 [RFC bpf-next 0/2] bpf: add a kallsyms BPF iterator Alan Maguire
2022-06-24 16:45 ` [RFC bpf-next 1/2] " Alan Maguire
2022-06-24 22:18   ` Andrii Nakryiko
2022-06-24 16:45 ` [RFC bpf-next 2/2] selftests/bpf: add a kallsyms iter subtest Alan Maguire

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox