[PATCH bpf-next 0/2] selftests/bpf: port test_ftrace.sh into test_progs

From: Alexis Lothoré (eBPF Foundation)

Date: Fri Oct 30 2026 - 14:52:13 EST


Hello,
this small series aims to port the test_ftrace.sh script (testing that
trampolines and function graph behave correctly when both are enabled)
into the test_progs framework

- commit 1 brings a few new helpers to manipulate ftrace from test_progs
- commit 2 performs the actual porting

Signed-off-by: Alexis Lothoré (eBPF Foundation) <alexis.lothore@xxxxxxxxxxx>
---
Alexis Lothoré (eBPF Foundation) (2):
selftests/bpf: add helpers to manipulate ftrace
selftests/bpf: port test_ftrace.sh to test_progs

.../selftests/bpf/prog_tests/fgraph_trampoline.c | 129 +++++++++++
.../selftests/bpf/progs/fgraph_trampoline.c | 29 +++
tools/testing/selftests/bpf/test_ftrace.sh | 44 ----
tools/testing/selftests/bpf/trace_helpers.c | 247 ++++++++++++++++++++-
tools/testing/selftests/bpf/trace_helpers.h | 9 +
5 files changed, 412 insertions(+), 46 deletions(-)
---
base-commit: 960cc441448b063bbc1f283d7e801af6d872e45c
change-id: 20261027-ftrace_in_test_progs-d5f70a2330ac

Best regards,
--
Alexis Lothoré (eBPF Foundation) <alexis.lothore@xxxxxxxxxxx>