From: Arnaldo Carvalho de Melo <acme@infradead.org>
To: Ingo Molnar <mingo@elte.hu>
Cc: linux-kernel@vger.kernel.org,
"Stephane Eranian" <eranian@google.com>,
"David S. Miller" <davem@davemloft.net>,
"Frédéric Weisbecker" <fweisbec@gmail.com>,
"Ingo Molnar" <mingo@elte.hu>,
"Paul Mackerras" <paulus@samba.org>,
"Peter Zijlstra" <peterz@infradead.org>,
"Arnaldo Carvalho de Melo" <acme@redhat.com>
Subject: [PATCH 1/7] perf record: Avoid synthesizing mmap() for all processes in per-thread mode
Date: Thu, 17 Jun 2010 17:39:58 -0300 [thread overview]
Message-ID: <1276807204-22512-2-git-send-email-acme@infradead.org> (raw)
In-Reply-To: <1276807204-22512-1-git-send-email-acme@infradead.org>
From: Stephane Eranian <eranian@google.com>
A bug was introduced by commit c45c6ea2e5c57960dc67e00294c2b78e9540c007.
Perf record was scanning /proc/PID to create synthetic PERF_RECOR_MMAP
entries even though it was running in per-thread mode. There was a bogus
check to select what mmaps to synthesize. We only need all processes in
system-wide mode.
Cc: David S. Miller <davem@davemloft.net>
Cc: Frédéric Weisbecker <fweisbec@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Stephane Eranian <eranian@google.com>
LKML-Reference: <4c192107.4f1ee30a.4316.fffff98e@mx.google.com>
Signed-off-by: Stephane Eranian <eranian@google.com>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
---
tools/perf/builtin-record.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/tools/perf/builtin-record.c b/tools/perf/builtin-record.c
index 39c7247..5efc3fc 100644
--- a/tools/perf/builtin-record.c
+++ b/tools/perf/builtin-record.c
@@ -714,7 +714,7 @@ static int __cmd_record(int argc, const char **argv)
if (perf_guest)
perf_session__process_machines(session, event__synthesize_guest_os);
- if (!system_wide && cpu_list)
+ if (!system_wide)
event__synthesize_thread(target_tid, process_synthesized_event,
session);
else
--
1.6.2.5
next prev parent reply other threads:[~2010-06-17 20:40 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-06-17 20:39 [GIT PULL 0/7] perf/core improvements and fixes for 2.6.36 Arnaldo Carvalho de Melo
2010-06-17 20:39 ` Arnaldo Carvalho de Melo [this message]
2010-06-17 20:39 ` [PATCH 2/7] perf symbols: Function descriptor symbol lookup Arnaldo Carvalho de Melo
2010-06-17 20:40 ` [PATCH 3/7] perf record: Add option to avoid updating buildid cache Arnaldo Carvalho de Melo
2010-06-17 20:40 ` [PATCH 4/7] perf tools: .gitignore += config.make config.make.autogen Arnaldo Carvalho de Melo
2010-06-17 20:40 ` [PATCH 5/7] perf probe: Add kernel source path option Arnaldo Carvalho de Melo
2010-06-17 20:40 ` [PATCH 6/7] perf debug: fix hex dump partial final line Arnaldo Carvalho de Melo
2010-06-17 20:40 ` [PATCH 7/7] perf session: fix error message on failure to open perf.data Arnaldo Carvalho de Melo
2010-06-18 8:54 ` [GIT PULL 0/7] perf/core improvements and fixes for 2.6.36 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=1276807204-22512-2-git-send-email-acme@infradead.org \
--to=acme@infradead.org \
--cc=acme@redhat.com \
--cc=davem@davemloft.net \
--cc=eranian@google.com \
--cc=fweisbec@gmail.com \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=paulus@samba.org \
--cc=peterz@infradead.org \
/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®