Skip to content

Commit 0399761

Browse files
ahunter6acmel
authored andcommitted
perf intel-pt: Fix CYC timestamp calculation after OVF
CYC packet timestamp calculation depends upon CBR which was being cleared upon overflow (OVF). That can cause errors due to failing to synchronize with sideband events. Even if a CBR change has been lost, the old CBR is still a better estimate than zero. So remove the clearing of CBR. Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: stable@vger.kernel.org Link: http://lkml.kernel.org/r/20190206103947.15750-4-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent 5a99d99 commit 0399761

1 file changed

Lines changed: 0 additions & 1 deletion

File tree

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

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1395,7 +1395,6 @@ static int intel_pt_overflow(struct intel_pt_decoder *decoder)
13951395
{
13961396
intel_pt_log("ERROR: Buffer overflow\n");
13971397
intel_pt_clear_tx_flags(decoder);
1398-
decoder->cbr = 0;
13991398
decoder->timestamp_insn_cnt = 0;
14001399
decoder->pkt_state = INTEL_PT_STATE_ERR_RESYNC;
14011400
decoder->overflow = true;

0 commit comments

Comments
 (0)