[PATCH 1/2] perf symbols: Set dso->kernel when handling the fake vmlinux MMAP event

From: Arnaldo Carvalho de Melo
Date: Tue Jan 19 2010 - 07:36:40 EST

From: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>

Because it may be possible that there was no buildid section, where we
would set this to 1.

Found while analysing a perf.data file collected on an ARM machine where
an explicitely specified vmlinux was being disregarded.

Reported-by: Jamie Iles <jamie.iles@xxxxxxxxxxxx>
Cc: Jamie Iles <jamie.iles@xxxxxxxxxxxx>
Cc: FrÃdÃric Weisbecker <fweisbec@xxxxxxxxx>
Cc: Mike Galbraith <efault@xxxxxx>
Cc: Peter Zijlstra <a.p.zijlstra@xxxxxxxxx>
Cc: Paul Mackerras <paulus@xxxxxxxxx>
Signed-off-by: Arnaldo Carvalho de Melo <acme@xxxxxxxxxx>
tools/perf/util/event.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c
index dc13cad..bbaee61 100644
--- a/tools/perf/util/event.c
+++ b/tools/perf/util/event.c
@@ -373,6 +373,7 @@ int event__process_mmap(event_t *self, struct perf_session *session)
if (kernel == NULL)
goto out_problem;

+ kernel->kernel = 1;
if (__map_groups__create_kernel_maps(&session->kmaps,
kernel) < 0)

To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/