Browse Source

perf bench: Set more defaults in the 'numa' suite

Currently,

  $ perf bench numa mem

errors out with usage information. To make this more user-friendly, let
us provide a minimum set of default values required for a test
run. As an added bonus,

  $ perf bench all

now goes all the way to completion.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
Cc: Arnaldo Carvalho de Melo <acme@redhat.com>
Cc: David Ahern <dsahern@gmail.com>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Jiri Olsa <jolsa@redhat.com>
Link: http://lkml.kernel.org/r/1395964219-22173-2-git-send-email-artagnon@gmail.com
Signed-off-by: Jiri Olsa <jolsa@redhat.com>
Ramkumar Ramachandra 11 years ago
parent
commit
40ba93e3aa
1 changed files with 4 additions and 0 deletions
  1. 4 0
      tools/perf/bench/numa.c

+ 4 - 0
tools/perf/bench/numa.c

@@ -1593,6 +1593,10 @@ static void init_params(struct params *p, const char *name, int argc, const char
 	p->data_rand_walk		= true;
 	p->data_rand_walk		= true;
 	p->nr_loops			= -1;
 	p->nr_loops			= -1;
 	p->init_random			= true;
 	p->init_random			= true;
+	p->mb_global_str		= "1";
+	p->nr_proc			= 1;
+	p->nr_threads			= 1;
+	p->nr_secs			= 5;
 }
 }
 
 
 static int run_bench_numa(const char *name, const char **argv)
 static int run_bench_numa(const char *name, const char **argv)