aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/builtin-bench.c
diff options
context:
space:
mode:
authorPeter Hurley <peter@hurleysoftware.com>2013-01-27 20:51:22 -0500
committerArnaldo Carvalho de Melo <acme@redhat.com>2013-01-30 08:36:21 -0500
commit79d824e31692d165f6c7d92bf4d1af0b9d969d76 (patch)
tree9bfae3b337f15579a1ec4ae43ed6295ad3932ffc /tools/perf/builtin-bench.c
parent1c13f3c9042f9d222959af7c9da6db93ea9f7e4c (diff)
perf tools: Make numa benchmark optional
Commit "perf: Add 'perf bench numa mem'..." added a NUMA performance benchmark to perf. Make this optional and test for required dependencies. Signed-off-by: Peter Hurley <peter@hurleysoftware.com> Acked-by: Ingo Molnar <mingo@kernel.org> Cc: Ingo Molnar <mingo@kernel.org> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Link: http://lkml.kernel.org/r/1359337882-21821-1-git-send-email-peter@hurleysoftware.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/builtin-bench.c')
-rw-r--r--tools/perf/builtin-bench.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/perf/builtin-bench.c b/tools/perf/builtin-bench.c
index e5d514bf5365..77298bf892b8 100644
--- a/tools/perf/builtin-bench.c
+++ b/tools/perf/builtin-bench.c
@@ -35,6 +35,7 @@ struct bench_suite {
35/* sentinel: easy for help */ 35/* sentinel: easy for help */
36#define suite_all { "all", "Test all benchmark suites", NULL } 36#define suite_all { "all", "Test all benchmark suites", NULL }
37 37
38#ifdef LIBNUMA_SUPPORT
38static struct bench_suite numa_suites[] = { 39static struct bench_suite numa_suites[] = {
39 { "mem", 40 { "mem",
40 "Benchmark for NUMA workloads", 41 "Benchmark for NUMA workloads",
@@ -44,6 +45,7 @@ static struct bench_suite numa_suites[] = {
44 NULL, 45 NULL,
45 NULL } 46 NULL }
46}; 47};
48#endif
47 49
48static struct bench_suite sched_suites[] = { 50static struct bench_suite sched_suites[] = {
49 { "messaging", 51 { "messaging",
@@ -78,9 +80,11 @@ struct bench_subsys {
78}; 80};
79 81
80static struct bench_subsys subsystems[] = { 82static struct bench_subsys subsystems[] = {
83#ifdef LIBNUMA_SUPPORT
81 { "numa", 84 { "numa",
82 "NUMA scheduling and MM behavior", 85 "NUMA scheduling and MM behavior",
83 numa_suites }, 86 numa_suites },
87#endif
84 { "sched", 88 { "sched",
85 "scheduler and IPC mechanism", 89 "scheduler and IPC mechanism",
86 sched_suites }, 90 sched_suites },