diff options
author | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-04-01 19:12:13 -0300 |
---|---|---|
committer | Arnaldo Carvalho de Melo <acme@redhat.com> | 2010-04-02 16:28:20 -0300 |
commit | e727ca73f85d4c5be3547eda674168219d1c22d8 (patch) | |
tree | be77d34b7dc8b3ed30c1ce0eb17f0b08d8c517ed /tools/perf/util/session.h | |
parent | a4e3b956a820162b7c1d616117b4f23b6017f504 (diff) | |
download | op-kernel-dev-e727ca73f85d4c5be3547eda674168219d1c22d8.zip op-kernel-dev-e727ca73f85d4c5be3547eda674168219d1c22d8.tar.gz |
perf kmem: Resolve kernel symbols again
Due to the assumption in perf_session__new that the kernel maps would be
created using the fake PERF_RECORD_MMAP event in a perf.data file 'perf
kmem --stat caller', that doesn't have such event, ends up not being
able to resolve the kernel addresses.
Fix it by calling perf_session__create_kernel_maps() in __cmd_kmem().
LKML-Reference: <new-submission>
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>
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
Diffstat (limited to 'tools/perf/util/session.h')
-rw-r--r-- | tools/perf/util/session.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tools/perf/util/session.h b/tools/perf/util/session.h index 6a15dae..dffaff5 100644 --- a/tools/perf/util/session.h +++ b/tools/perf/util/session.h @@ -80,6 +80,11 @@ static inline int __perf_session__create_kernel_maps(struct perf_session *self, self->vmlinux_maps, kernel); } +static inline int perf_session__create_kernel_maps(struct perf_session *self) +{ + return map_groups__create_kernel_maps(&self->kmaps, self->vmlinux_maps); +} + static inline struct map * perf_session__new_module_map(struct perf_session *self, u64 start, const char *filename) |