Re: [PATCH v9 1/6] arm64: ptrace: add NT_ARM_SYSTEM_CALL regset

2014-11-27 Thread AKASHI Takahiro
On 11/27/2014 11:10 PM, Will Deacon wrote: On Thu, Nov 27, 2014 at 05:53:36AM +, AKASHI Takahiro wrote: On 11/26/2014 09:41 PM, Will Deacon wrote: On Wed, Nov 26, 2014 at 04:49:46AM +, AKASHI Takahiro wrote: This regeset is intended to be used to get and set a system call number while

Re: [PATCH v9 1/6] arm64: ptrace: add NT_ARM_SYSTEM_CALL regset

2014-11-27 Thread Will Deacon
On Thu, Nov 27, 2014 at 05:53:36AM +, AKASHI Takahiro wrote: > On 11/26/2014 09:41 PM, Will Deacon wrote: > > On Wed, Nov 26, 2014 at 04:49:46AM +, AKASHI Takahiro wrote: > >> This regeset is intended to be used to get and set a system call number > >> while tracing. > >> There was some dis

Re: [PATCH v9 1/6] arm64: ptrace: add NT_ARM_SYSTEM_CALL regset

2014-11-26 Thread AKASHI Takahiro
On 11/26/2014 09:41 PM, Will Deacon wrote: Hi Akashi, On Wed, Nov 26, 2014 at 04:49:46AM +, AKASHI Takahiro wrote: This regeset is intended to be used to get and set a system call number while tracing. There was some discussion about possible approaches to do so: (1) modify x8 register wit

Re: [PATCH v9 1/6] arm64: ptrace: add NT_ARM_SYSTEM_CALL regset

2014-11-26 Thread Will Deacon
Hi Akashi, On Wed, Nov 26, 2014 at 04:49:46AM +, AKASHI Takahiro wrote: > This regeset is intended to be used to get and set a system call number > while tracing. > There was some discussion about possible approaches to do so: > > (1) modify x8 register with ptrace(PTRACE_SETREGSET) indirectl

[PATCH v9 1/6] arm64: ptrace: add NT_ARM_SYSTEM_CALL regset

2014-11-25 Thread AKASHI Takahiro
This regeset is intended to be used to get and set a system call number while tracing. There was some discussion about possible approaches to do so: (1) modify x8 register with ptrace(PTRACE_SETREGSET) indirectly, and update regs->syscallno later on in syscall_trace_enter(), or (2) define a de