From: Arnaldo Carvalho de Melo Date: Fri, 2 Apr 2010 00:24:38 +0000 (-0300) Subject: perf kmem: Fixup the symbol address before using it X-Git-Tag: v2.6.35-rc1~522^2~127^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71cf8b8ff7d6a79af086be9e4c72628da9d62d58;p=pandora-kernel.git perf kmem: Fixup the symbol address before using it We get absolute addresses in the events, but relative ones from the symbol subsystem, so calculate the absolute address by asking for the map where the symbol was found, that has the place where the DSO was actually loaded. For the core kernel this poses no problems if the kernel is not relocated by things like kexec, or if we use /proc/kallsyms, but for modules we were getting really large, negative offsets. LKML-Reference: Cc: Frédéric Weisbecker Cc: Li Zefan Cc: Mike Galbraith Cc: Peter Zijlstra Cc: Paul Mackerras Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed