diff options
| author | Yonghong Song <yonghong.song@linux.dev> | 2026-10-16 11:31:25 -0700 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-10-16 19:50:00 +0000 |
| commit | 8395b40318816ded8e4c55f07741dd5594ee9b9b (patch) | |
| tree | 3a12b546a7e2d9753560a52a0ff6e8434af9d3a4 /tools/perf/scripts/python | |
| parent | 9b2e5136760a675202622459d242ac803f11d8d5 (diff) | |
selftests/bpf: Test trampolines on more BPF functions with stack args
Add two functions to the BPF target program of the int128_tgt_prog test.
callee_split() takes a struct holding an __int128 after five u64s, so
on x86-64 it is passed split between r9 and the stack. fentry and fexit
programs check that the trampoline takes it from there and hands it back
there.
callee_unreliable() takes six u64-sized arguments, the first a plain
pointer, which makes its BTF unreliable while the sixth is still passed
on the stack. The new tgt_prog_unreliable subtest checks that an fentry
program cannot be attached to it.
Signed-off-by: Yonghong Song <yonghong.song@linux.dev>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Link: https://patch.msgid.link/20261016183125.1136468-1-yonghong.song@linux.dev
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
