Skip to content

Commit 6665b8e

Browse files
ahunter6acmel
authored andcommitted
perf intel-pt: Fix error timestamp setting on the decoder error path
An error timestamp shows the last known timestamp for the queue, but this is not updated on the error path. Fix by setting it. Fixes: f4aa081 ("perf tools: Add Intel PT decoder") Signed-off-by: Adrian Hunter <adrian.hunter@intel.com> Cc: Jiri Olsa <jolsa@redhat.com> Cc: stable@vger.kernel.org # v5.15+ Link: https://lore.kernel.org/r/20211210162303.2288710-8-adrian.hunter@intel.com Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
1 parent a882cc9 commit 6665b8e

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
@@ -2565,6 +2565,7 @@ static int intel_pt_run_decoder(struct intel_pt_queue *ptq, u64 *timestamp)
25652565
ptq->sync_switch = false;
25662566
intel_pt_next_tid(pt, ptq);
25672567
}
2568+
ptq->timestamp = state->est_timestamp;
25682569
if (pt->synth_opts.errors) {
25692570
err = intel_ptq_synth_error(ptq, state);
25702571
if (err)

0 commit comments

Comments
 (0)