Lines Matching refs:timestamp
96 uint64_t timestamp; member
463 decoder->timestamp = 0; in intel_pt_get_data()
585 uint64_t timestamp; member
595 uint64_t timestamp; in intel_pt_calc_cyc_cb() local
628 timestamp = data->ctc_timestamp + in intel_pt_calc_cyc_cb()
631 timestamp = data->ctc_timestamp + in intel_pt_calc_cyc_cb()
637 if (timestamp < data->timestamp) in intel_pt_calc_cyc_cb()
641 data->timestamp = timestamp; in intel_pt_calc_cyc_cb()
648 timestamp = pkt_info->packet.payload | in intel_pt_calc_cyc_cb()
649 (data->timestamp & (0xffULL << 56)); in intel_pt_calc_cyc_cb()
650 if (data->from_mtc && timestamp < data->timestamp && in intel_pt_calc_cyc_cb()
651 data->timestamp - timestamp < decoder->tsc_slip) in intel_pt_calc_cyc_cb()
653 if (timestamp < data->timestamp) in intel_pt_calc_cyc_cb()
654 timestamp += (1ULL << 56); in intel_pt_calc_cyc_cb()
658 data->tsc_timestamp = timestamp; in intel_pt_calc_cyc_cb()
659 data->timestamp = timestamp; in intel_pt_calc_cyc_cb()
719 cyc_to_tsc = (double)(timestamp - decoder->timestamp) / data->cycle_cnt; in intel_pt_calc_cyc_cb()
752 .timestamp = decoder->timestamp, in intel_pt_calc_cyc_to_tsc()
799 uint64_t timestamp, masked_timestamp; in intel_pt_next_period() local
801 timestamp = decoder->timestamp + decoder->timestamp_insn_cnt; in intel_pt_next_period()
802 masked_timestamp = timestamp & decoder->period_mask; in intel_pt_next_period()
807 timestamp += 1; in intel_pt_next_period()
808 masked_timestamp = timestamp & decoder->period_mask; in intel_pt_next_period()
814 return decoder->period_ticks - (timestamp - masked_timestamp); in intel_pt_next_period()
833 uint64_t timestamp, masked_timestamp; in intel_pt_sample_insn() local
840 timestamp = decoder->timestamp + decoder->timestamp_insn_cnt; in intel_pt_sample_insn()
841 masked_timestamp = timestamp & decoder->period_mask; in intel_pt_sample_insn()
1166 uint64_t timestamp; in intel_pt_calc_tsc_timestamp() local
1171 timestamp = decoder->packet.payload | in intel_pt_calc_tsc_timestamp()
1173 if (timestamp < decoder->ref_timestamp) { in intel_pt_calc_tsc_timestamp()
1174 if (decoder->ref_timestamp - timestamp > (1ULL << 55)) in intel_pt_calc_tsc_timestamp()
1175 timestamp += (1ULL << 56); in intel_pt_calc_tsc_timestamp()
1177 if (timestamp - decoder->ref_timestamp > (1ULL << 55)) in intel_pt_calc_tsc_timestamp()
1178 timestamp -= (1ULL << 56); in intel_pt_calc_tsc_timestamp()
1180 decoder->tsc_timestamp = timestamp; in intel_pt_calc_tsc_timestamp()
1181 decoder->timestamp = timestamp; in intel_pt_calc_tsc_timestamp()
1184 } else if (decoder->timestamp) { in intel_pt_calc_tsc_timestamp()
1185 timestamp = decoder->packet.payload | in intel_pt_calc_tsc_timestamp()
1186 (decoder->timestamp & (0xffULL << 56)); in intel_pt_calc_tsc_timestamp()
1187 decoder->tsc_timestamp = timestamp; in intel_pt_calc_tsc_timestamp()
1188 if (timestamp < decoder->timestamp && in intel_pt_calc_tsc_timestamp()
1189 decoder->timestamp - timestamp < decoder->tsc_slip) { in intel_pt_calc_tsc_timestamp()
1191 timestamp); in intel_pt_calc_tsc_timestamp()
1192 timestamp = decoder->timestamp; in intel_pt_calc_tsc_timestamp()
1194 if (timestamp < decoder->timestamp) { in intel_pt_calc_tsc_timestamp()
1195 intel_pt_log_to("Wraparound timestamp", timestamp); in intel_pt_calc_tsc_timestamp()
1196 timestamp += (1ULL << 56); in intel_pt_calc_tsc_timestamp()
1197 decoder->tsc_timestamp = timestamp; in intel_pt_calc_tsc_timestamp()
1199 decoder->timestamp = timestamp; in intel_pt_calc_tsc_timestamp()
1204 decoder->cyc_ref_timestamp = decoder->timestamp; in intel_pt_calc_tsc_timestamp()
1210 intel_pt_log_to("Setting timestamp", decoder->timestamp); in intel_pt_calc_tsc_timestamp()
1250 uint64_t timestamp; in intel_pt_calc_mtc_timestamp() local
1266 timestamp = decoder->ctc_timestamp + in intel_pt_calc_mtc_timestamp()
1269 timestamp = decoder->ctc_timestamp + in intel_pt_calc_mtc_timestamp()
1275 if (timestamp < decoder->timestamp) in intel_pt_calc_mtc_timestamp()
1277 timestamp, decoder->timestamp); in intel_pt_calc_mtc_timestamp()
1279 decoder->timestamp = timestamp; in intel_pt_calc_mtc_timestamp()
1285 decoder->cyc_ref_timestamp = decoder->timestamp; in intel_pt_calc_mtc_timestamp()
1305 uint64_t timestamp = decoder->cyc_ref_timestamp; in intel_pt_calc_cyc_timestamp() local
1315 timestamp += decoder->cycle_cnt * decoder->calc_cyc_to_tsc; in intel_pt_calc_cyc_timestamp()
1317 timestamp += decoder->cycle_cnt * decoder->cbr_cyc_to_tsc; in intel_pt_calc_cyc_timestamp()
1321 if (timestamp < decoder->timestamp) in intel_pt_calc_cyc_timestamp()
1323 timestamp, decoder->timestamp); in intel_pt_calc_cyc_timestamp()
1325 decoder->timestamp = timestamp; in intel_pt_calc_cyc_timestamp()
1606 if (!decoder->timestamp) in intel_pt_walk_trace()
2003 return decoder->timestamp + est; in intel_pt_est_timestamp()
2057 decoder->state.timestamp = decoder->timestamp; in intel_pt_decode()