Skip to content

Commit 9e9db21

Browse files
ahunter6gregkh
authored andcommitted
perf intel-pt: Fix sync_switch INTEL_PT_SS_NOT_TRACING
commit dbcb82b upstream. sync_switch is a facility to synchronize decoding more closely with the point in the kernel when the context actually switched. In one case, INTEL_PT_SS_NOT_TRACING state was not correctly transitioning to INTEL_PT_SS_TRACING state due to a missing case clause. Add it. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: stable@vger.kernel.org Link: http://lkml.kernel.org/r/1527762225-26024-2-git-send-email-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 5009bd5 commit 9e9db21

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1560,6 +1560,7 @@ static int intel_pt_sample(struct intel_pt_queue *ptq)
15601560

15611561
if (intel_pt_is_switch_ip(ptq, state->to_ip)) {
15621562
switch (ptq->switch_state) {
1563+
case INTEL_PT_SS_NOT_TRACING:
15631564
case INTEL_PT_SS_UNKNOWN:
15641565
case INTEL_PT_SS_EXPECTING_SWITCH_IP:
15651566
err = intel_pt_next_tid(pt, ptq);

0 commit comments

Comments
 (0)