path: root/tools/perf/bench
diff options
authorDavidlohr Bueso <>2014-06-16 11:14:19 -0700
committerArnaldo Carvalho de Melo <>2014-06-19 16:13:15 -0300
commitb6f0629a94f7ed6089560be7f0561be19f934fc4 (patch)
tree36dad2fd09afc6d1f4cc484e8d91b1f7e0d93ba6 /tools/perf/bench
parentb094c99e8e284cff839400a3b61fda1fa53962fc (diff)
perf bench: Add --repeat option
There are a number of benchmarks that do single runs and as a result does not really help users gain a general idea of how the workload performs. So the user must either manually do multiple runs or just use single bogus results. This option will enable users to specify the amount of runs (arbitrarily defaulted to 10, to use the existing benchmarks default) through the '--repeat' option. Add it to perf-bench instead of implementing it always in each specific benchmark. Signed-off-by: Davidlohr Bueso <> Cc: Aswin Chandramouleeswaran <> Cc: Hitoshi Mitake <> Cc: Jiri Olsa <> Link: [ Kept the existing default of 10, changing it to something else should be done on separate patch ] Signed-off-by: Arnaldo Carvalho de Melo <>
Diffstat (limited to 'tools/perf/bench')
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/bench/bench.h b/tools/perf/bench/bench.h
index eba46709b279..3c4dd44d45cb 100644
--- a/tools/perf/bench/bench.h
+++ b/tools/perf/bench/bench.h
@@ -43,5 +43,6 @@ extern int bench_futex_requeue(int argc, const char **argv, const char *prefix);
extern int bench_format;
+extern unsigned int bench_repeat;