From 649ac5cd2ba8f223cf762c83da572f41e167930a Mon Sep 17 00:00:00 2001 From: Iustin Pop Date: Sun, 12 Feb 2012 10:40:42 +0100 Subject: [PATCH] Parametrise the perf repetition count --- Makefile | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index c5661e4..3b70f75 100644 --- a/Makefile +++ b/Makefile @@ -22,6 +22,8 @@ METRICS = \ cycles,instructions,cache-references,cache-misses \ cycles,instructions,stalled-cycles-frontend,stalled-cycles-backend +REPS = 100 + all: $(PROGS) $(PROGS): Makefile @@ -71,7 +73,7 @@ log: $(PROGS) $(SCRIPTS) Makefile for prog in $(PROGS) $(SCRIPTS); do \ echo $$prog; \ for metric in $(METRICS); do \ - LC_ALL=C perf stat -e "$$metric" -r100 -o log --append ./$$prog; \ + LC_ALL=C perf stat -e "$$metric" -r $(REPS) -o log --append ./$$prog; \ done; \ done -- 2.39.5