BPF List
 help / color / mirror / Atom feed
* [PATCH bpf-next 0/2] bpf: tail calls in sleepable programs
@ 2026-01-30  8:12 Jiri Olsa
  2026-01-30  8:12 ` [PATCH bpf-next 1/2] bpf: Allow sleepable programs to use tail calls Jiri Olsa
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Jiri Olsa @ 2026-01-30  8:12 UTC (permalink / raw)
  To: Alexei Starovoitov, Daniel Borkmann, Andrii Nakryiko
  Cc: bpf, linux-perf-users, Martin KaFai Lau, Eduard Zingerman,
	Song Liu, Yonghong Song

hi,
this patchset allows sleepable programs to use tail calls.

At the moment we need to have separate sleepable uprobe program
to retrieve user space data and pass it to complex program with
tail calls. It'd be great if the program with tail calls could
be sleepable and do the data retrieval directly.

thanks,
jirka


---
Jiri Olsa (2):
      bpf: Allow sleepable programs to use tail calls
      selftests/bpf: Add test for sleepable program tailcalls

 include/linux/bpf.h                                    |  1 +
 kernel/bpf/core.c                                      |  4 +++-
 kernel/bpf/verifier.c                                  |  1 +
 tools/testing/selftests/bpf/prog_tests/tailcalls.c     | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 tools/testing/selftests/bpf/progs/tailcall_sleepable.c | 43 +++++++++++++++++++++++++++++++++++++++++++
 5 files changed, 123 insertions(+), 1 deletion(-)
 create mode 100644 tools/testing/selftests/bpf/progs/tailcall_sleepable.c

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

end of thread, other threads:[~2026-01-30 20:20 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-01-30  8:12 [PATCH bpf-next 0/2] bpf: tail calls in sleepable programs Jiri Olsa
2026-01-30  8:12 ` [PATCH bpf-next 1/2] bpf: Allow sleepable programs to use tail calls Jiri Olsa
2026-01-30 14:14   ` Leon Hwang
2026-01-30 17:34   ` Kumar Kartikeya Dwivedi
2026-01-30 20:17     ` Alexei Starovoitov
2026-01-30  8:12 ` [PATCH bpf-next 2/2] selftests/bpf: Add test for sleepable program tailcalls Jiri Olsa
2026-01-30 20:20 ` [PATCH bpf-next 0/2] bpf: tail calls in sleepable programs patchwork-bot+netdevbpf

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