]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
selftests: riscv: Add test for the Vector ptrace interface
authorYong-Xuan Wang <yongxuan.wang@sifive.com>
Tue, 18 Nov 2025 04:19:30 +0000 (21:19 -0700)
committerPaul Walmsley <pjw@kernel.org>
Wed, 19 Nov 2025 16:19:28 +0000 (09:19 -0700)
commitf0ae09a89267552bde346c8cb27acb838a21eb1c
treecf375ba05eeb67f999541f8a3fb0695c2796a7a8
parent6efb1a9462ef0023f3f96a7b88542e1f878e31a0
selftests: riscv: Add test for the Vector ptrace interface

Add a test case that does some basic verification of the Vector ptrace
interface. This forks a child process then using ptrace to inspect and
manipulate the v31 register of the child.

Signed-off-by: Yong-Xuan Wang <yongxuan.wang@sifive.com>
Reviewed-by: Andy Chiu <andybnac@gmail.com>
Tested-by: Andy Chiu <andybnac@gmail.com>
Link: https://patch.msgid.link/20251013091318.467864-3-yongxuan.wang@sifive.com
Signed-off-by: Paul Walmsley <pjw@kernel.org>
tools/testing/selftests/riscv/vector/Makefile
tools/testing/selftests/riscv/vector/vstate_ptrace.c [new file with mode: 0644]