BPF List
 help / color / mirror / Atom feed
* [PATCH 0/4] bpf: Add bpf_stream_print_stack kfunc
@ 2026-02-02 19:33 Emil Tsalapatis
  2026-02-02 19:33 ` [PATCH 1/4] bpf: Add bpf_stream_print_stack stack dumping kfunc Emil Tsalapatis
                   ` (4 more replies)
  0 siblings, 5 replies; 8+ messages in thread
From: Emil Tsalapatis @ 2026-02-02 19:33 UTC (permalink / raw)
  To: bpf
  Cc: andrii, ast, daniel, eddyz87, martin.lau, memxor, song,
	yonghong.song, Emil Tsalapatis

Add a new bpf_stream_print_stack kfunc for printing a BPF program stack
into a BPF stream. Update the verifier to allow the new kfunc to be 
called with BPF spinlocks held, along with bpf_stream_vprintk.

Patchset spun out of the larger libarena + ASAN patchset.
(https://lore.kernel.org/bpf/20260127181610.86376-1-emil@etsalapatis.com/)

Changeset:
	- Update bpf_stream_print_stack to take stream_id arg (Kumar)
	- Added selftest for the bpf_stream_print_stack
	- Add selftest for calling the streams kfuncs under lock

Cc: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Signed-off-by: Emil Tsalapatis (Meta) <emil@etsalapatis.com>

Emil Tsalapatis (4):
  bpf: Add bpf_stream_print_stack stack dumping kfunc
  selftests/bpf: Add selftests for bpf_stream_print_stack
  bpf: Allow BPF stream kfuncs while holding a lock
  selftests/bpf: Add selftests for stream functions under lock

 kernel/bpf/helpers.c                       |  1 +
 kernel/bpf/stream.c                        | 19 ++++++++
 kernel/bpf/verifier.c                      | 13 +++++-
 tools/testing/selftests/bpf/progs/stream.c | 53 ++++++++++++++++++++++
 4 files changed, 85 insertions(+), 1 deletion(-)

-- 
2.49.0


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

end of thread, other threads:[~2026-02-03 17:39 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-02 19:33 [PATCH 0/4] bpf: Add bpf_stream_print_stack kfunc Emil Tsalapatis
2026-02-02 19:33 ` [PATCH 1/4] bpf: Add bpf_stream_print_stack stack dumping kfunc Emil Tsalapatis
2026-02-03 17:30   ` Alexei Starovoitov
2026-02-03 17:39     ` Emil Tsalapatis
2026-02-02 19:33 ` [PATCH 2/4] selftests/bpf: Add selftests for bpf_stream_print_stack Emil Tsalapatis
2026-02-02 19:33 ` [PATCH 3/4] bpf: Allow BPF stream kfuncs while holding a lock Emil Tsalapatis
2026-02-02 19:33 ` [PATCH 4/4] selftests/bpf: Add selftests for stream functions under lock Emil Tsalapatis
2026-02-03 16:16 ` [PATCH 0/4] bpf: Add bpf_stream_print_stack kfunc Kumar Kartikeya Dwivedi

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