]> git.ipfire.org Git - thirdparty/linux.git/commit
selftests/bpf: Add test for bpf_override_return helper
authorJiri Olsa <jolsa@kernel.org>
Mon, 12 Jan 2026 12:11:57 +0000 (13:11 +0100)
committerAndrii Nakryiko <andrii@kernel.org>
Fri, 16 Jan 2026 00:15:26 +0000 (16:15 -0800)
commit934d9746ed0206e93506a68c838fe82ef748576a
tree80179ed7504ab1c22e5202a2c0219427222fe28a
parent276f3b6daf6024ae2742afd161e7418a5584a660
selftests/bpf: Add test for bpf_override_return helper

We do not actually test the bpf_override_return helper functionality
itself at the moment, only the bpf program being able to attach it.

Adding test that override prctl syscall return value on top of
kprobe and kprobe.multi.

Signed-off-by: Jiri Olsa <jolsa@kernel.org>
Signed-off-by: Andrii Nakryiko <andrii@kernel.org>
Acked-by: Song Liu <song@kernel.org>
Link: https://lore.kernel.org/bpf/20260112121157.854473-2-jolsa@kernel.org
tools/testing/selftests/bpf/prog_tests/kprobe_multi_test.c
tools/testing/selftests/bpf/progs/kprobe_multi_override.c
tools/testing/selftests/bpf/trace_helpers.h