]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
perf record: Avoid synthesizing mmap() for all processes in per-thread mode
authorStephane Eranian <eranian@google.com>
Wed, 16 Jun 2010 18:59:01 +0000 (20:59 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 17 Jun 2010 11:57:31 +0000 (08:57 -0300)
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

index 39c7247bc54aa707b5fa4bef05b5e2bae0127d01..5efc3fc68a368a273ac4fb16c0a1d289883cc316 100644 (file)
@@ -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