BPF List
 help / color / mirror / Atom feed
From: Jiri Olsa <jolsa@kernel.org>
To: Alexei Starovoitov <ast@kernel.org>,
	Daniel Borkmann <daniel@iogearbox.net>,
	Andrii Nakryiko <andrii@kernel.org>
Cc: bpf@vger.kernel.org, linux-perf-users@vger.kernel.org,
	Martin KaFai Lau <kafai@fb.com>,
	Eduard Zingerman <eddyz87@gmail.com>,
	Song Liu <songliubraving@fb.com>, Yonghong Song <yhs@fb.com>
Subject: [PATCH bpf-next 0/2] bpf: tail calls in sleepable programs
Date: Fri, 30 Jan 2026 09:12:06 +0100	[thread overview]
Message-ID: <20260130081208.1130204-1-jolsa@kernel.org> (raw)

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

             reply	other threads:[~2026-01-30  8:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-01-30  8:12 Jiri Olsa [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20260130081208.1130204-1-jolsa@kernel.org \
    --to=jolsa@kernel.org \
    --cc=andrii@kernel.org \
    --cc=ast@kernel.org \
    --cc=bpf@vger.kernel.org \
    --cc=daniel@iogearbox.net \
    --cc=eddyz87@gmail.com \
    --cc=kafai@fb.com \
    --cc=linux-perf-users@vger.kernel.org \
    --cc=songliubraving@fb.com \
    --cc=yhs@fb.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox