aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c
diff options
context:
space:
mode:
authorMartin KaFai Lau <[email protected]>2024-08-29 21:08:30 +0000
committerAlexei Starovoitov <[email protected]>2024-08-30 01:15:45 +0000
commit42fdbbde6cf4159f77de13a40f8c0be6ef48bcc1 (patch)
treef5e1f42f61ca0d2ff816ac91fb53b7dddf6c4f7b /tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c
parentselftests/bpf: Add tailcall epilogue test (diff)
downloadkernel-42fdbbde6cf4159f77de13a40f8c0be6ef48bcc1.tar.gz
kernel-42fdbbde6cf4159f77de13a40f8c0be6ef48bcc1.zip
selftests/bpf: A pro/epilogue test when the main prog jumps back to the 1st insn
This patch adds a pro/epilogue test when the main prog has a goto insn that goes back to the very first instruction of the prog. It is to test the correctness of the adjust_jmp_off(prog, 0, delta) after the verifier has applied the prologue and/or epilogue patch. Acked-by: Eduard Zingerman <[email protected]> Signed-off-by: Martin KaFai Lau <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Alexei Starovoitov <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/bpf_testmod/bpf_testmod.c')
0 files changed, 0 insertions, 0 deletions