]> git.baikalelectronics.ru Git - kernel.git/commit
perf callchain: Fix kernel symbol resolution by remembering the cpumode
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Mon, 30 Mar 2015 08:11:00 +0000 (10:11 +0200)
committerArnaldo Carvalho de Melo <acme@redhat.com>
Tue, 31 Mar 2015 20:52:17 +0000 (17:52 -0300)
commit3bab783b1924c38df1ea7b8f79e5c65d9136afc1
tree2cfafaa079fc8e5bbb5508f62733461665ef3602
parente5becc7e27d84a7198ba49811b9dfff2e56374d0
perf callchain: Fix kernel symbol resolution by remembering the cpumode

Commit 29dba5e5db24 ("perf callchain: Move cpumode resolve code to
add_callchain_ip") promised "No change in behavior.".

As this commit breaks callchains on s390x (symbols not getting resolved,
observed when profiling the kernel), this statement is wrong. The cpumode
must be kept when iterating over all ips, otherwise the default
(PERF_RECORD_MISC_USER) will be used by error.

Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Acked-by: Jiri Olsa <jolsa@kernel.org>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Andi Kleen <ak@linux.intel.com>
Cc: David Hildenbrand <dahi@linux.vnet.ibm.com>
Cc: Hendrik Brueckner <brueckner@linux.vnet.ibm.com>
Cc: Kan Liang <kan.liang@intel.com>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Namhyung Kim <namhyung@kernel.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
Link: http://lkml.kernel.org/r/1427703060-59883-1-git-send-email-dahi@linux.vnet.ibm.com
Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
tools/perf/util/machine.c