Lines Matching refs:timestamp

152 	uint64_t timestamp;  member
609 decoder->sample_timestamp = decoder->timestamp; in intel_pt_update_sample_time()
617 decoder->timestamp = 0; in intel_pt_reposition()
767 uint64_t timestamp; member
798 uint64_t timestamp; in intel_pt_calc_cyc_cb() local
842 timestamp = data->ctc_timestamp + in intel_pt_calc_cyc_cb()
845 timestamp = data->ctc_timestamp + in intel_pt_calc_cyc_cb()
851 if (timestamp < data->timestamp) in intel_pt_calc_cyc_cb()
855 data->timestamp = timestamp; in intel_pt_calc_cyc_cb()
868 timestamp = pkt_info->packet.payload | in intel_pt_calc_cyc_cb()
869 (data->timestamp & (0xffULL << 56)); in intel_pt_calc_cyc_cb()
870 if (data->from_mtc && timestamp < data->timestamp && in intel_pt_calc_cyc_cb()
871 data->timestamp - timestamp < decoder->tsc_slip) in intel_pt_calc_cyc_cb()
873 if (timestamp < data->timestamp) in intel_pt_calc_cyc_cb()
874 timestamp += (1ULL << 56); in intel_pt_calc_cyc_cb()
878 data->tsc_timestamp = timestamp; in intel_pt_calc_cyc_cb()
879 data->timestamp = timestamp; in intel_pt_calc_cyc_cb()
945 cyc_to_tsc = (double)(timestamp - decoder->timestamp) / data->cycle_cnt; in intel_pt_calc_cyc_cb()
978 .timestamp = decoder->timestamp, in intel_pt_calc_cyc_to_tsc()
1035 uint64_t timestamp, masked_timestamp; in intel_pt_next_period() local
1037 timestamp = decoder->timestamp + decoder->timestamp_insn_cnt; in intel_pt_next_period()
1038 masked_timestamp = timestamp & decoder->period_mask; in intel_pt_next_period()
1043 timestamp += 1; in intel_pt_next_period()
1044 masked_timestamp = timestamp & decoder->period_mask; in intel_pt_next_period()
1054 return decoder->period_ticks - (timestamp - masked_timestamp); in intel_pt_next_period()
1073 uint64_t timestamp, masked_timestamp; in intel_pt_sample_insn() local
1080 timestamp = decoder->timestamp + decoder->timestamp_insn_cnt; in intel_pt_sample_insn()
1081 masked_timestamp = timestamp & decoder->period_mask; in intel_pt_sample_insn()
1521 static uint64_t intel_pt_8b_tsc(uint64_t timestamp, uint64_t ref_timestamp) in intel_pt_8b_tsc() argument
1523 timestamp |= (ref_timestamp & (0xffULL << 56)); in intel_pt_8b_tsc()
1525 if (timestamp < ref_timestamp) { in intel_pt_8b_tsc()
1526 if (ref_timestamp - timestamp > (1ULL << 55)) in intel_pt_8b_tsc()
1527 timestamp += (1ULL << 56); in intel_pt_8b_tsc()
1529 if (timestamp - ref_timestamp > (1ULL << 55)) in intel_pt_8b_tsc()
1530 timestamp -= (1ULL << 56); in intel_pt_8b_tsc()
1533 return timestamp; in intel_pt_8b_tsc()
1538 uint64_t timestamp) in intel_pt_time_in_range() argument
1546 return timestamp >= decoder->last_reliable_timestamp && in intel_pt_time_in_range()
1547 timestamp < decoder->buf_timestamp; in intel_pt_time_in_range()
1552 uint64_t timestamp; in intel_pt_calc_tsc_timestamp() local
1558 timestamp = intel_pt_8b_tsc(decoder->packet.payload, in intel_pt_calc_tsc_timestamp()
1560 decoder->tsc_timestamp = timestamp; in intel_pt_calc_tsc_timestamp()
1561 decoder->timestamp = timestamp; in intel_pt_calc_tsc_timestamp()
1564 } else if (decoder->timestamp) { in intel_pt_calc_tsc_timestamp()
1565 timestamp = decoder->packet.payload | in intel_pt_calc_tsc_timestamp()
1566 (decoder->timestamp & (0xffULL << 56)); in intel_pt_calc_tsc_timestamp()
1567 decoder->tsc_timestamp = timestamp; in intel_pt_calc_tsc_timestamp()
1568 if (timestamp < decoder->timestamp && in intel_pt_calc_tsc_timestamp()
1569 decoder->timestamp - timestamp < decoder->tsc_slip) { in intel_pt_calc_tsc_timestamp()
1571 timestamp); in intel_pt_calc_tsc_timestamp()
1572 timestamp = decoder->timestamp; in intel_pt_calc_tsc_timestamp()
1574 if (timestamp < decoder->timestamp) { in intel_pt_calc_tsc_timestamp()
1576 (timestamp + (1ULL << 56) < decoder->buf_timestamp)) { in intel_pt_calc_tsc_timestamp()
1577 intel_pt_log_to("Wraparound timestamp", timestamp); in intel_pt_calc_tsc_timestamp()
1578 timestamp += (1ULL << 56); in intel_pt_calc_tsc_timestamp()
1579 decoder->tsc_timestamp = timestamp; in intel_pt_calc_tsc_timestamp()
1581 intel_pt_log_to("Suppressing bad timestamp", timestamp); in intel_pt_calc_tsc_timestamp()
1582 timestamp = decoder->timestamp; in intel_pt_calc_tsc_timestamp()
1587 (bad || !intel_pt_time_in_range(decoder, timestamp)) && in intel_pt_calc_tsc_timestamp()
1590 decoder->timestamp = timestamp; in intel_pt_calc_tsc_timestamp()
1595 decoder->cyc_ref_timestamp = decoder->timestamp; in intel_pt_calc_tsc_timestamp()
1601 intel_pt_log_to("Setting timestamp", decoder->timestamp); in intel_pt_calc_tsc_timestamp()
1620 decoder->cyc_cnt_timestamp = decoder->timestamp; in intel_pt_mtc_cyc_cnt_pge()
1641 if (!decoder->pge || decoder->timestamp <= decoder->cyc_cnt_timestamp) in intel_pt_mtc_cyc_cnt_upd()
1644 tsc_delta = decoder->timestamp - decoder->cyc_cnt_timestamp; in intel_pt_mtc_cyc_cnt_upd()
1684 uint64_t timestamp; in intel_pt_calc_mtc_timestamp() local
1706 timestamp = decoder->ctc_timestamp + in intel_pt_calc_mtc_timestamp()
1709 timestamp = decoder->ctc_timestamp + in intel_pt_calc_mtc_timestamp()
1715 if (timestamp < decoder->timestamp) in intel_pt_calc_mtc_timestamp()
1717 timestamp, decoder->timestamp); in intel_pt_calc_mtc_timestamp()
1719 decoder->timestamp = timestamp; in intel_pt_calc_mtc_timestamp()
1727 decoder->cyc_ref_timestamp = decoder->timestamp; in intel_pt_calc_mtc_timestamp()
1733 intel_pt_log_to("Setting timestamp", decoder->timestamp); in intel_pt_calc_mtc_timestamp()
1753 uint64_t timestamp = decoder->cyc_ref_timestamp; in intel_pt_calc_cyc_timestamp() local
1766 timestamp += decoder->cycle_cnt * decoder->calc_cyc_to_tsc; in intel_pt_calc_cyc_timestamp()
1768 timestamp += decoder->cycle_cnt * decoder->cbr_cyc_to_tsc; in intel_pt_calc_cyc_timestamp()
1772 if (timestamp < decoder->timestamp) in intel_pt_calc_cyc_timestamp()
1774 timestamp, decoder->timestamp); in intel_pt_calc_cyc_timestamp()
1776 decoder->timestamp = timestamp; in intel_pt_calc_cyc_timestamp()
1780 intel_pt_log_to("Setting timestamp", decoder->timestamp); in intel_pt_calc_cyc_timestamp()
2367 ref_timestamp = decoder->timestamp ? decoder->timestamp : decoder->buf_timestamp; in intel_pt_vm_tm_corr_tsc()
2513 host_tsc = intel_pt_8b_tsc(host_tsc, decoder->timestamp); in intel_pt_vm_tm_corr_pebs_tsc()
2524 host_tsc = decoder->timestamp; in intel_pt_vm_tm_corr_pebs_tsc()
3056 if (!decoder->timestamp) in intel_pt_walk_trace()
3601 if (!decoder->timestamp) in intel_pt_sync()
3602 decoder->timestamp = 1; in intel_pt_sync()
3746 decoder->state.timestamp = decoder->sample_timestamp; in intel_pt_decode()
4072 uint64_t timestamp; member
4110 if (tsc < d->timestamp) in intel_pt_ff_cb()
4127 int intel_pt_fast_forward(struct intel_pt_decoder *decoder, uint64_t timestamp) in intel_pt_fast_forward() argument
4129 struct fast_forward_data d = { .timestamp = timestamp }; in intel_pt_fast_forward()
4134 intel_pt_log("Fast forward towards timestamp " x64_fmt "\n", timestamp); in intel_pt_fast_forward()
4179 if (tsc < timestamp) { in intel_pt_fast_forward()