Skip to content

bpf: tail calls in sleepable programs

Jiri Olsa bpf linux-perf-users 1 version Applied

Status from this message: This series was applied to bpf/bpf-next.git (master)

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 3 repliesApplied 2/2

Patches in v1 All 2 applied

#Subject and filesSizeRepliesApplied
1/2bpf: Allow sleepable programs to use tail callsinclude/linux/bpf.h kernel/bpf/core.c kernel/bpf/verifier.c+5 -13 repliesApplied
2/2selftests/bpf: Add test for sleepable program tailcallstools/testing/selftests/bpf/prog_tests/tailcalls.c tools/testing/selftests/bpf/progs/tailcall_sleepable.c+117 -00 repliesApplied

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchLeon Hwang
1/2A-b
2/2

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH bpf-next 0/2] bpf: tail calls in sleepable programs

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