diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-03-25 19:58:57 -0300 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2010-03-26 08:52:58 +0100 |
commit | b177f63f5226e75280855bbcd106e677250778bd (patch) | |
tree | 6d53e57b95b2115de458172aa3a3ee6fab6e9cd3 /tools/perf/util/event.c | |
parent | d5679ae4d2d4369477dc3b60027cca222aef33e9 (diff) | |
download | op-kernel-dev-b177f63f5226e75280855bbcd106e677250778bd.zip op-kernel-dev-b177f63f5226e75280855bbcd106e677250778bd.tar.gz |
perf symbols: Pass the mmap parameters instead of using mmap_event
To reduce the coupling of the symbol system with the rest of
perf.
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: <1269557941-15617-2-git-send-email-acme@infradead.org>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
Diffstat (limited to 'tools/perf/util/event.c')
-rw-r--r-- | tools/perf/util/event.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/perf/util/event.c b/tools/perf/util/event.c index c2808ad..052eaec 100644 --- a/tools/perf/util/event.c +++ b/tools/perf/util/event.c @@ -393,7 +393,8 @@ int event__process_mmap(event_t *self, struct perf_session *session) } thread = perf_session__findnew(session, self->mmap.pid); - map = map__new(&self->mmap, MAP__FUNCTION, + map = map__new(self->mmap.start, self->mmap.len, self->mmap.pgoff, + self->mmap.pid, self->mmap.filename, MAP__FUNCTION, session->cwd, session->cwdlen); if (thread == NULL || map == NULL) |