Skip to content

Commit 03fb0f8

Browse files
ahunter6acmel
authored andcommitted
perf intel-pt: Fix missing CYC processing in PSB
Add missing CYC packet processing when walking through PSB+. This improves the accuracy of timestamps that follow PSB+, until the next MTC. Fixes: 3d49807 ("perf tools: Add new Intel PT packet definitions") Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Reviewed-by: Andi Kleen <ak@linux.intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Link: https://lore.kernel.org/r/20210205175350.23817-2-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 4e14814 commit 03fb0f8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1761,6 +1761,9 @@ static int intel_pt_walk_psbend(struct intel_pt_decoder *decoder)
17611761
break;
17621762

17631763
case INTEL_PT_CYC:
1764+
intel_pt_calc_cyc_timestamp(decoder);
1765+
break;
1766+
17641767
case INTEL_PT_VMCS:
17651768
case INTEL_PT_MNT:
17661769
case INTEL_PT_PAD:

0 commit comments

Comments
 (0)