aboutsummaryrefslogtreecommitdiff
path: root/tools/testing/selftests/bpf/progs/test_autoload.c
diff options
context:
space:
mode:
authorClément Léger <[email protected]>2023-12-06 14:44:37 +0100
committerPalmer Dabbelt <[email protected]>2024-04-25 09:46:41 -0700
commit17c67ed752d6a456602b3dbb25c5ae4d3de5deab (patch)
treec97d5e9bb66be1b46e3e486209968f2e2657e6d5 /tools/testing/selftests/bpf/progs/test_autoload.c
parent5ea6764d9095e234b024054f75ebbccc4f0eb146 (diff)
selftests: sud_test: return correct emulated syscall value on RISC-V
Currently, the sud_test expects the emulated syscall to return the emulated syscall number. This assumption only works on architectures were the syscall calling convention use the same register for syscall number/syscall return value. This is not the case for RISC-V and thus the return value must be also emulated using the provided ucontext. Signed-off-by: Clément Léger <[email protected]> Reviewed-by: Palmer Dabbelt <[email protected]> Acked-by: Palmer Dabbelt <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions