summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/powerpc/benchmarks/exec_target.c
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2018-03-06 23:24:58 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2018-03-20 16:47:54 +1100
commitdd40c5b4c90d84d30cdb452c2d193d6fb42247df (patch)
tree271176d1d9bf150b9aff04d1d1d1c286fd792587 /tools/testing/selftests/powerpc/benchmarks/exec_target.c
parenta0828cf57acce9bf941539e1f633e9a91f9df57d (diff)
selftests/powerpc: Add process creation benchmark
Signed-off-by: Nicholas Piggin <npiggin@gmail.com> [mpe: Add SPDX, and fixup formatting] Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to 'tools/testing/selftests/powerpc/benchmarks/exec_target.c')
-rw-r--r--tools/testing/selftests/powerpc/benchmarks/exec_target.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/tools/testing/selftests/powerpc/benchmarks/exec_target.c b/tools/testing/selftests/powerpc/benchmarks/exec_target.c
new file mode 100644
index 000000000000..3c9c144192be
--- /dev/null
+++ b/tools/testing/selftests/powerpc/benchmarks/exec_target.c
@@ -0,0 +1,13 @@
+// SPDX-License-Identifier: GPL-2.0+
+
+/*
+ * Part of fork context switch microbenchmark.
+ *
+ * Copyright 2018, Anton Blanchard, IBM Corp.
+ */
+
+void _exit(int);
+void _start(void)
+{
+ _exit(0);
+}