Skip to content

Commit 0ce32f8

Browse files
ahunter6gregkh
authored andcommitted
perf intel-pt: Use FUP always when scanning for an IP
commit 622b7a4 upstream. The decoder will try to use branch packets to find an IP to start decoding or to recover from errors. Currently the FUP packet is used only in the case of an overflow, however there is no reason for that to be a special case. So just use FUP always when scanning for an IP. Signed-off-by: Adrian Hunter <[email protected]> Cc: Andi Kleen <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 33f3bc4 commit 0ce32f8

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

tools/perf/util/intel-pt-decoder/intel-pt-decoder.c

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1848,14 +1848,10 @@ static int intel_pt_walk_to_ip(struct intel_pt_decoder *decoder)
18481848
break;
18491849

18501850
case INTEL_PT_FUP:
1851-
if (decoder->overflow) {
1852-
if (intel_pt_have_ip(decoder))
1853-
intel_pt_set_ip(decoder);
1854-
if (decoder->ip)
1855-
return 0;
1856-
}
1857-
if (decoder->packet.count && decoder->have_last_ip)
1858-
intel_pt_set_last_ip(decoder);
1851+
if (intel_pt_have_ip(decoder))
1852+
intel_pt_set_ip(decoder);
1853+
if (decoder->ip)
1854+
return 0;
18591855
break;
18601856

18611857
case INTEL_PT_MTC:

0 commit comments

Comments
 (0)