aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/powerpc/benchmarks/Makefile
diff options
context:
space:
mode:
authorMichael Neuling <mikey@neuling.org>2015-09-25 14:01:39 +1000
committerMichael Ellerman <mpe@ellerman.id.au>2015-10-01 16:52:02 +1000
commitd17475d906fde8e9fe39fff3873b07380ed6da76 (patch)
treeb9e554db6653fd121bb325297618a8591e09cbff /tools/testing/selftests/powerpc/benchmarks/Makefile
parentpowerpc/slb: Use a local to avoid multiple calls to get_slb_shadow() (diff)
downloadlinux-dev-d17475d906fde8e9fe39fff3873b07380ed6da76.tar.xz
linux-dev-d17475d906fde8e9fe39fff3873b07380ed6da76.zip
powerpc/selftest: Add gettimeofday() benchmark
This adds a benchmark directory to the powerpc selftests and adds a gettimeofday() benchmark to it. Suggested-by: Michael Ellerman <mpe@ellerman.id.au> Signed-off-by: Michael Neuling <mikey@neuling.org> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Diffstat (limited to '')
-rw-r--r--tools/testing/selftests/powerpc/benchmarks/Makefile12
1 files changed, 12 insertions, 0 deletions
diff --git a/tools/testing/selftests/powerpc/benchmarks/Makefile b/tools/testing/selftests/powerpc/benchmarks/Makefile
new file mode 100644
index 000000000000..5fa48702070d
--- /dev/null
+++ b/tools/testing/selftests/powerpc/benchmarks/Makefile
@@ -0,0 +1,12 @@
+TEST_PROGS := gettimeofday
+
+CFLAGS += -O2
+
+all: $(TEST_PROGS)
+
+$(TEST_PROGS): ../harness.c
+
+include ../../lib.mk
+
+clean:
+ rm -f $(TEST_PROGS) *.o