]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
selftests: riscv: test ptrace vector interface
authorSergey Matyukevich <geomatsi@gmail.com>
Mon, 26 Jan 2026 04:09:57 +0000 (21:09 -0700)
committerPaul Walmsley <pjw@kernel.org>
Mon, 9 Feb 2026 22:27:33 +0000 (15:27 -0700)
commit600f72ded8c877be95322ce806d23345ea5e89bc
tree80fa1a1f2b3c9b6d596cd37df2e4fb27c19bd9d3
parentf4be988f5b547dc4b305c15a078a52cdde76a8f5
selftests: riscv: test ptrace vector interface

Add a test case to check ptrace behavior in the case when vector
extension is supported by the system, but vector context is not
yet enabled for the traced process.

Signed-off-by: Sergey Matyukevich <geomatsi@gmail.com>
Reviewed-by: Andy Chiu <andybnac@gmail.com>
Tested-by: Andy Chiu <andybnac@gmail.com>
Link: https://patch.msgid.link/20251214163537.1054292-6-geomatsi@gmail.com
[pjw@kernel.org: dropped duplicate sys/wait.h include]
Signed-off-by: Paul Walmsley <pjw@kernel.org>
tools/testing/selftests/riscv/vector/.gitignore
tools/testing/selftests/riscv/vector/Makefile
tools/testing/selftests/riscv/vector/v_helpers.c
tools/testing/selftests/riscv/vector/v_helpers.h
tools/testing/selftests/riscv/vector/validate_v_ptrace.c [new file with mode: 0644]