File tree Expand file tree Collapse file tree 1 file changed +7
-14
lines changed
tools/perf/util/intel-pt-decoder Expand file tree Collapse file tree 1 file changed +7
-14
lines changed Original file line number Diff line number Diff line change @@ -1164,6 +1164,7 @@ static int intel_pt_walk_fup(struct intel_pt_decoder *decoder)
1164
1164
return 0 ;
1165
1165
if (err == - EAGAIN ||
1166
1166
intel_pt_fup_with_nlip (decoder , & intel_pt_insn , ip , err )) {
1167
+ decoder -> pkt_state = INTEL_PT_STATE_IN_SYNC ;
1167
1168
if (intel_pt_fup_event (decoder ))
1168
1169
return 0 ;
1169
1170
return - EAGAIN ;
@@ -1942,17 +1943,13 @@ static int intel_pt_walk_trace(struct intel_pt_decoder *decoder)
1942
1943
}
1943
1944
if (decoder -> set_fup_mwait )
1944
1945
no_tip = true;
1946
+ if (no_tip )
1947
+ decoder -> pkt_state = INTEL_PT_STATE_FUP_NO_TIP ;
1948
+ else
1949
+ decoder -> pkt_state = INTEL_PT_STATE_FUP ;
1945
1950
err = intel_pt_walk_fup (decoder );
1946
- if (err != - EAGAIN ) {
1947
- if (err )
1948
- return err ;
1949
- if (no_tip )
1950
- decoder -> pkt_state =
1951
- INTEL_PT_STATE_FUP_NO_TIP ;
1952
- else
1953
- decoder -> pkt_state = INTEL_PT_STATE_FUP ;
1954
- return 0 ;
1955
- }
1951
+ if (err != - EAGAIN )
1952
+ return err ;
1956
1953
if (no_tip ) {
1957
1954
no_tip = false;
1958
1955
break ;
@@ -2599,15 +2596,11 @@ const struct intel_pt_state *intel_pt_decode(struct intel_pt_decoder *decoder)
2599
2596
err = intel_pt_walk_tip (decoder );
2600
2597
break ;
2601
2598
case INTEL_PT_STATE_FUP :
2602
- decoder -> pkt_state = INTEL_PT_STATE_IN_SYNC ;
2603
2599
err = intel_pt_walk_fup (decoder );
2604
2600
if (err == - EAGAIN )
2605
2601
err = intel_pt_walk_fup_tip (decoder );
2606
- else if (!err )
2607
- decoder -> pkt_state = INTEL_PT_STATE_FUP ;
2608
2602
break ;
2609
2603
case INTEL_PT_STATE_FUP_NO_TIP :
2610
- decoder -> pkt_state = INTEL_PT_STATE_IN_SYNC ;
2611
2604
err = intel_pt_walk_fup (decoder );
2612
2605
if (err == - EAGAIN )
2613
2606
err = intel_pt_walk_trace (decoder );
You can’t perform that action at this time.
0 commit comments