armv8: fix compilation for lrpc benchmark
authorReto Achermann <reto.achermann@inf.ethz.ch>
Mon, 24 Jul 2017 14:32:28 +0000 (16:32 +0200)
committerReto Achermann <reto.achermann@inf.ethz.ch>
Mon, 24 Jul 2017 14:32:28 +0000 (16:32 +0200)
Signed-off-by: Reto Achermann <reto.achermann@inf.ethz.ch>

usr/bench/lrpc_bench.c

index 33939a5..b321d3f 100644 (file)
@@ -35,6 +35,11 @@ static struct timestamps timestamps[ITERATIONS];
 static struct timestamps overhead[ITERATIONS];
 static int currentiter;
 
+
+#ifndef __x86_64__
+#define rdpmc(x) bench_tsc() 
+#endif
+
 // server side handler
 static void lrpc_bench_handler(void *arg)
 {