aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/util
diff options
context:
space:
mode:
authorArnaldo Carvalho de Melo <acme@redhat.com>2010-01-19 07:36:13 -0500
committerIngo Molnar <mingo@elte.hu>2010-01-20 02:54:59 -0500
commitf162f87ad6e98e8bfb2362955da46bed7b2514be (patch)
tree429b83e529f3ddb76b82034209febddb5e62d966 /tools/perf/util
parentd5526d8cb8e5aa3349c1ff4e409ad9b4cdac380c (diff)
perf symbols: Set dso->kernel when handling the fake vmlinux MMAP event
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@picochip.com> Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Cc: Frédéric Weisbecker <fweisbec@gmail.com> Cc: Mike Galbraith <efault@gmx.de> Cc: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> LKML-Reference: <1263904574-30732-1-git-send-email-acme@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util')
-rw-r--r--tools/perf/util/event.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c
index dc13cad828d7..bbaee61c1683 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)
373 if (kernel == NULL) 373 if (kernel == NULL)
374 goto out_problem; 374 goto out_problem;
375 375
376 kernel->kernel = 1;
376 if (__map_groups__create_kernel_maps(&session->kmaps, 377 if (__map_groups__create_kernel_maps(&session->kmaps,
377 session->vmlinux_maps, 378 session->vmlinux_maps,
378 kernel) < 0) 379 kernel) < 0)