summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorHan Pingtian <phan@redhat.com>2011-01-25 00:39:00 +0100
committerArnaldo Carvalho de Melo <acme@redhat.com>2011-01-28 12:21:19 +0100
commit54489c189b1a0c10eaf21c6d2c5916b50442c871 (patch)
tree8b612439f021de6c68a756f482ae2d3ee36b97ac /tools
parentperf probe: Add filters support for available functions (diff)
downloadlinux-54489c189b1a0c10eaf21c6d2c5916b50442c871.tar.xz
linux-54489c189b1a0c10eaf21c6d2c5916b50442c871.zip
perf test: Fix return values checking
Fixing some cut'n'paste mistakes. LKML-Reference: <20110124233900.GA3443@epc900.nay.redhat.com> Signed-off-by: Han Pingtian <phan@redhat.com> [ committer note: I had already removed the CPU_ALLOC calls ] Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/perf/builtin-test.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/perf/builtin-test.c b/tools/perf/builtin-test.c
index 231e3e21810c..738830d298e8 100644
--- a/tools/perf/builtin-test.c
+++ b/tools/perf/builtin-test.c
@@ -495,8 +495,8 @@ static int test__basic_mmap(void)
}
cpus = cpu_map__new(NULL);
- if (threads == NULL) {
- pr_debug("thread_map__new\n");
+ if (cpus == NULL) {
+ pr_debug("cpu_map__new\n");
goto out_free_threads;
}
@@ -510,7 +510,7 @@ static int test__basic_mmap(void)
}
evlist = perf_evlist__new();
- if (threads == NULL) {
+ if (evlist == NULL) {
pr_debug("perf_evlist__new\n");
goto out_free_cpus;
}