From: Arnaldo Carvalho de Melo <acme@infradead.org>
To: Ingo Molnar <mingo@elte.hu>
Cc: linux-kernel@vger.kernel.org, Han Pingtian <phan@redhat.com>,
Arnaldo Carvalho de Melo <acme@redhat.com>
Subject: [PATCH 4/4] perf test: Fix return values checking
Date: Fri, 28 Jan 2011 15:13:03 -0200 [thread overview]
Message-ID: <1296234783-17491-5-git-send-email-acme@infradead.org> (raw)
In-Reply-To: <1296234783-17491-1-git-send-email-acme@infradead.org>
From: Han Pingtian <phan@redhat.com>
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>
---
tools/perf/builtin-test.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/tools/perf/builtin-test.c b/tools/perf/builtin-test.c
index 231e3e2..738830d 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;
}
--
1.6.2.5
next prev parent reply other threads:[~2011-01-28 17:13 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-28 17:12 [GIT PULL 0/4] perf/core improvements and fix Arnaldo Carvalho de Melo
2011-01-28 17:13 ` [PATCH 1/4] perf tools: Add strfilter for general purpose string filter Arnaldo Carvalho de Melo
2011-01-28 17:13 ` [PATCH 2/4] perf probe: Add variable filter support Arnaldo Carvalho de Melo
2011-01-28 17:13 ` [PATCH 3/4] perf probe: Add filters support for available functions Arnaldo Carvalho de Melo
2011-01-28 17:13 ` Arnaldo Carvalho de Melo [this message]
2011-01-28 17:19 ` [GIT PULL 0/4] perf/core improvements and fix Ingo Molnar
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1296234783-17491-5-git-send-email-acme@infradead.org \
--to=acme@infradead.org \
--cc=acme@redhat.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=phan@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®