Re: [PATCH] backends: Use PTRACE_GETREGSET for ppc_set_initial_registers_tid

2022-02-21 Thread Mark Wielaard
Hi, On Wed, 2022-02-16 at 15:07 +0100, Mark Wielaard wrote: > The code in ppc_initreg.c used PTRACE_PEEKUSER to fetch all registers > one by one. Which is slightly inefficient. It did this because it > wanted > things to work on linux 2.6.18 which didn't support PTRACE_GETREGSET. > > PTRACE_GETRE

[PATCH] backends: Use PTRACE_GETREGSET for ppc_set_initial_registers_tid

2022-02-16 Thread Mark Wielaard
The code in ppc_initreg.c used PTRACE_PEEKUSER to fetch all registers one by one. Which is slightly inefficient. It did this because it wanted things to work on linux 2.6.18 which didn't support PTRACE_GETREGSET. PTRACE_GETREGSET was only officially since 2.6.34 (but backported to some earlier ver