]> Git Repo - linux.git/commitdiff
perf bench: Set more defaults in the 'numa' suite
authorRamkumar Ramachandra <[email protected]>
Thu, 27 Mar 2014 23:50:17 +0000 (19:50 -0400)
committerJiri Olsa <[email protected]>
Mon, 14 Apr 2014 10:55:58 +0000 (12:55 +0200)
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 <[email protected]>
Cc: Arnaldo Carvalho de Melo <[email protected]>
Cc: David Ahern <[email protected]>
Cc: Ingo Molnar <[email protected]>
Cc: Jiri Olsa <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Jiri Olsa <[email protected]>
tools/perf/bench/numa.c

index d4c83c60b9b29fa7d6249de70e5f0673d2066287..20697fbf2c98b1c095d2449ba47fda672a1313b0 100644 (file)
@@ -1593,6 +1593,10 @@ static void init_params(struct params *p, const char *name, int argc, const char
        p->data_rand_walk               = true;
        p->nr_loops                     = -1;
        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)
This page took 0.057135 seconds and 4 git commands to generate.