Re: [RFC PATCH 2/2] riscv: selftests: Add a ptrace test to check a0 of restarted syscall

2024-06-23 Thread Quan Zhou
On 2024/6/22 04:20, Charlie Jenkins wrote: On Fri, Jun 21, 2024 at 02:29:07PM +0800, Quan Zhou wrote: On 2024/6/20 10:55, Charlie Jenkins wrote: On Wed, Jun 19, 2024 at 10:01:47AM +0800, zhouq...@iscas.ac.cn wrote: From: Quan Zhou This test creates two processes: a tracer and a tracee. The

Re: [RFC PATCH 2/2] riscv: selftests: Add a ptrace test to check a0 of restarted syscall

2024-06-21 Thread Charlie Jenkins
On Fri, Jun 21, 2024 at 02:29:07PM +0800, Quan Zhou wrote: > > > On 2024/6/20 10:55, Charlie Jenkins wrote: > > On Wed, Jun 19, 2024 at 10:01:47AM +0800, zhouq...@iscas.ac.cn wrote: > > > From: Quan Zhou > > > > > > This test creates two processes: a tracer and a tracee. The tracer > > > activ

Re: [RFC PATCH 2/2] riscv: selftests: Add a ptrace test to check a0 of restarted syscall

2024-06-20 Thread Quan Zhou
On 2024/6/20 10:55, Charlie Jenkins wrote: On Wed, Jun 19, 2024 at 10:01:47AM +0800, zhouq...@iscas.ac.cn wrote: From: Quan Zhou This test creates two processes: a tracer and a tracee. The tracer actively sends a SIGUSR1 signal in user mode to interrupt the read syscall being executed by th

Re: [RFC PATCH 2/2] riscv: selftests: Add a ptrace test to check a0 of restarted syscall

2024-06-19 Thread Charlie Jenkins
On Wed, Jun 19, 2024 at 10:01:47AM +0800, zhouq...@iscas.ac.cn wrote: > From: Quan Zhou > > This test creates two processes: a tracer and a tracee. The tracer actively > sends a SIGUSR1 signal in user mode to interrupt the read syscall being > executed by the tracee. We will reset a0/orig_a0 and

[RFC PATCH 2/2] riscv: selftests: Add a ptrace test to check a0 of restarted syscall

2024-06-18 Thread zhouquan
From: Quan Zhou This test creates two processes: a tracer and a tracee. The tracer actively sends a SIGUSR1 signal in user mode to interrupt the read syscall being executed by the tracee. We will reset a0/orig_a0 and then observe the value of a0 held by the restarted read syscall. Compared to th