]> git.karo-electronics.de Git - linux-beck.git/commit
perf kmem: Resolve kernel symbols again
authorArnaldo Carvalho de Melo <acme@redhat.com>
Thu, 1 Apr 2010 22:12:13 +0000 (19:12 -0300)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Fri, 2 Apr 2010 19:28:20 +0000 (16:28 -0300)
commite727ca73f85d4c5be3547eda674168219d1c22d8
treebe77d34b7dc8b3ed30c1ce0eb17f0b08d8c517ed
parenta4e3b956a820162b7c1d616117b4f23b6017f504
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>
tools/perf/builtin-kmem.c
tools/perf/util/session.c
tools/perf/util/session.h