perf tools: Use fallback for sample_addr_correlates_sym() cases
authorAdrian Hunter <[email protected]>
Tue, 6 Nov 2018 21:07:11 +0000 (23:07 +0200)
committerArnaldo Carvalho de Melo <[email protected]>
Mon, 17 Dec 2018 17:54:16 +0000 (14:54 -0300)
thread__resolve() is used in the sample_addr_correlates_sym() cases
where 'addr' is a destination of a branch which does not necessarily
have the same cpumode as the 'ip'. Use the fallback function in that
case.

This patch depends on patch "perf tools: Add fallback functions for
cases where cpumode is insufficient".

Signed-off-by: Adrian Hunter <[email protected]>
Cc: Andi Kleen <[email protected]>
Cc: David S. Miller <[email protected]>
Cc: Jiri Olsa <[email protected]>
Cc: Leo Yan <[email protected]>
Cc: Mathieu Poirier <[email protected]>
Cc: [email protected] # 4.19
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
tools/perf/util/event.c

index 9431b20c1337c1a4120ace3004ec69bbfde84a1d..24493200cf8044c830258ab8c619ca310f243e91 100644 (file)
@@ -1706,7 +1706,7 @@ bool sample_addr_correlates_sym(struct perf_event_attr *attr)
 void thread__resolve(struct thread *thread, struct addr_location *al,
                     struct perf_sample *sample)
 {
-       thread__find_map(thread, sample->cpumode, sample->addr, al);
+       thread__find_map_fb(thread, sample->cpumode, sample->addr, al);
 
        al->cpu = sample->cpu;
        al->sym = NULL;