mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
perf intel-pt: Add MTC and CYC timestamps to debug log
One cause of decoding errors is un-synchronized side-band data. Timestamps are needed to debug such cases. TSC packet timestamps are logged. Log also MTC and CYC timestamps. Signed-off-by: Adrian Hunter <[email protected]> Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
This commit is contained in:
parent
93f8be2799
commit
f6c23e3b55
1 changed files with 4 additions and 0 deletions
|
|
@ -1474,6 +1474,8 @@ static void intel_pt_calc_mtc_timestamp(struct intel_pt_decoder *decoder)
|
|||
decoder->have_calc_cyc_to_tsc = false;
|
||||
intel_pt_calc_cyc_to_tsc(decoder, true);
|
||||
}
|
||||
|
||||
intel_pt_log_to("Setting timestamp", decoder->timestamp);
|
||||
}
|
||||
|
||||
static void intel_pt_calc_cbr(struct intel_pt_decoder *decoder)
|
||||
|
|
@ -1514,6 +1516,8 @@ static void intel_pt_calc_cyc_timestamp(struct intel_pt_decoder *decoder)
|
|||
decoder->timestamp = timestamp;
|
||||
|
||||
decoder->timestamp_insn_cnt = 0;
|
||||
|
||||
intel_pt_log_to("Setting timestamp", decoder->timestamp);
|
||||
}
|
||||
|
||||
/* Walk PSB+ packets when already in sync. */
|
||||
|
|
|
|||
Loading…
Reference in a new issue