diff options
| author | Donggeun Yoo <donggeunyoo.kernel@gmail.com> | 2026-09-07 22:06:24 +0900 |
|---|---|---|
| committer | Alexei Starovoitov <ast@kernel.org> | 2026-09-13 21:59:21 -0700 |
| commit | 26a43a5f8c31b9132dc40a449d0f6c7ecfaa1f40 (patch) | |
| tree | bc8c76933d7fd10447e120522cb2d982ddfd25c5 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | ef1fb82f12186dd26153b14d9fbcf4ec98db81b3 (diff) | |
| download | linux-next-26a43a5f8c31b9132dc40a449d0f6c7ecfaa1f40.tar.gz linux-next-26a43a5f8c31b9132dc40a449d0f6c7ecfaa1f40.zip | |
selftests/bpf: cover the exception callback using its own BPF stack
The existing exception tests do not reach a callback that materializes
BPF_REG_FP into a register. They either throw from the main program,
where BPF_REG_FP already holds the value the callback needs, or use a
callback whose only stack accesses are frame pointer relative, which the
arm64 JIT rewrites to be stack pointer relative.
Add a test that throws from a subprogram using its own BPF stack, with a
callback that hands the address of a local variable to
bpf_probe_read_kernel(). The helper and the callback have to name the
same slot for the value read back to be the one the helper stored.
Signed-off-by: Donggeun Yoo <donggeunyoo.kernel@gmail.com>
Link: https://lore.kernel.org/r/20260907130624.611942-3-donggeunyoo.kernel@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
