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 <[email protected]> Cc: Jiri Olsa <[email protected]> Cc: [email protected] # v5.15+ Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
1 parent a882cc9 commit 6665b8e

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

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)