Re: selftests/powerpc: fix exec benchmark

2018-05-16 Thread Michael Ellerman
On Sat, 2018-05-12 at 03:35:24 UTC, Nicholas Piggin wrote: > The exec_target binary could segfault calling _exit(2) because r13 > is not set up properly (and libc looks at that when performing a > syscall). Call SYS_exit using syscall(2) which doesn't seem to > have this problem. > > Signed-off-by

Re: [PATCH] selftests/powerpc: fix exec benchmark

2018-05-12 Thread Mathieu Malaterre
On Sat, May 12, 2018 at 10:54 AM, Mathieu Malaterre wrote: > Nick, > > On Sat, May 12, 2018 at 5:35 AM, Nicholas Piggin wrote: >> The exec_target binary could segfault calling _exit(2) because r13 >> is not set up properly (and libc looks at that when performing a >> syscall). Call SYS_exit using

Re: [PATCH] selftests/powerpc: fix exec benchmark

2018-05-12 Thread Mathieu Malaterre
Nick, On Sat, May 12, 2018 at 5:35 AM, Nicholas Piggin wrote: > The exec_target binary could segfault calling _exit(2) because r13 > is not set up properly (and libc looks at that when performing a > syscall). Call SYS_exit using syscall(2) which doesn't seem to > have this problem. > > Signed-of

[PATCH] selftests/powerpc: fix exec benchmark

2018-05-11 Thread Nicholas Piggin
The exec_target binary could segfault calling _exit(2) because r13 is not set up properly (and libc looks at that when performing a syscall). Call SYS_exit using syscall(2) which doesn't seem to have this problem. Signed-off-by: Nicholas Piggin --- tools/testing/selftests/powerpc/benchmarks/exec