summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/powerpc/benchmarks/exec_target.c
AgeCommit message (Collapse)Author
2018-05-14selftests/powerpc: fix exec benchmarkNicholas 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 <npiggin@gmail.com> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
2018-03-20selftests/powerpc: Add process creation benchmarkNicholas Piggin
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> [mpe: Add SPDX, and fixup formatting] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>