]> git.ipfire.org Git - thirdparty/linux.git/commit
bpf: Add bpf_stream_print_stack stack dumping kfunc
authorEmil Tsalapatis <emil@etsalapatis.com>
Tue, 3 Feb 2026 18:04:21 +0000 (13:04 -0500)
committerAlexei Starovoitov <ast@kernel.org>
Tue, 3 Feb 2026 18:41:16 +0000 (10:41 -0800)
commit63328bb23f2693fe36e8bcdb972c6040e84d16e4
treebb96c74e7b882e83191184cb2e84f3cada05ba2e
parentf941479a709a534911715cb08d3d71c7074882bd
bpf: Add bpf_stream_print_stack stack dumping kfunc

Add a new kfunc called bpf_stream_print_stack to be used by programs
that need to print out their current BPF stack. The kfunc is essentially
a wrapper around the existing bpf_stream_dump_stack functionality used
to generate stack traces for error events like may_goto violations and
BPF-side arena page faults.

Signed-off-by: Emil Tsalapatis <emil@etsalapatis.com>
Acked-by: Kumar Kartikeya Dwivedi <memxor@gmail.com>
Link: https://lore.kernel.org/r/20260203180424.14057-2-emil@etsalapatis.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
kernel/bpf/helpers.c
kernel/bpf/stream.c