]> git.baikalelectronics.ru Git - kernel.git/commit
selftests/powerpc: fix exec benchmark
authorNicholas Piggin <npiggin@gmail.com>
Sat, 12 May 2018 03:35:24 +0000 (13:35 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Mon, 14 May 2018 13:10:33 +0000 (23:10 +1000)
commit641979703592a36f4a62cf109819b414afe84e24
treea1467c2f2d665d61c40e5e07c00c601e6fbbd523
parentebec7d2dcd851cf29440e7ced32d06785c1d7fa6
selftests/powerpc: fix exec benchmark

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 <npiggin@gmail.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
tools/testing/selftests/powerpc/benchmarks/exec_target.c