Lines Matching refs:timestamp

152 	uint64_t timestamp;  member
609 decoder->sample_timestamp = decoder->timestamp; in intel_pt_update_sample_time()
618 decoder->timestamp = 0; in intel_pt_reposition()
768 uint64_t timestamp; member
799 uint64_t timestamp; in intel_pt_calc_cyc_cb() local
843 timestamp = data->ctc_timestamp + in intel_pt_calc_cyc_cb()
846 timestamp = data->ctc_timestamp + in intel_pt_calc_cyc_cb()
852 if (timestamp < data->timestamp) in intel_pt_calc_cyc_cb()
856 data->timestamp = timestamp; in intel_pt_calc_cyc_cb()
869 timestamp = pkt_info->packet.payload | in intel_pt_calc_cyc_cb()
870 (data->timestamp & (0xffULL << 56)); in intel_pt_calc_cyc_cb()
871 if (data->from_mtc && timestamp < data->timestamp && in intel_pt_calc_cyc_cb()
872 data->timestamp - timestamp < decoder->tsc_slip) in intel_pt_calc_cyc_cb()
874 if (timestamp < data->timestamp) in intel_pt_calc_cyc_cb()
875 timestamp += (1ULL << 56); in intel_pt_calc_cyc_cb()
879 data->tsc_timestamp = timestamp; in intel_pt_calc_cyc_cb()
880 data->timestamp = timestamp; in intel_pt_calc_cyc_cb()
946 cyc_to_tsc = (double)(timestamp - decoder->timestamp) / data->cycle_cnt; in intel_pt_calc_cyc_cb()
979 .timestamp = decoder->timestamp, in intel_pt_calc_cyc_to_tsc()
1036 uint64_t timestamp, masked_timestamp; in intel_pt_next_period() local
1038 timestamp = decoder->timestamp + decoder->timestamp_insn_cnt; in intel_pt_next_period()
1039 masked_timestamp = timestamp & decoder->period_mask; in intel_pt_next_period()
1044 timestamp += 1; in intel_pt_next_period()
1045 masked_timestamp = timestamp & decoder->period_mask; in intel_pt_next_period()
1055 return decoder->period_ticks - (timestamp - masked_timestamp); in intel_pt_next_period()
1074 uint64_t timestamp, masked_timestamp; in intel_pt_sample_insn() local
1081 timestamp = decoder->timestamp + decoder->timestamp_insn_cnt; in intel_pt_sample_insn()
1082 masked_timestamp = timestamp & decoder->period_mask; in intel_pt_sample_insn()
1530 static uint64_t intel_pt_8b_tsc(uint64_t timestamp, uint64_t ref_timestamp) in intel_pt_8b_tsc() argument
1532 timestamp |= (ref_timestamp & (0xffULL << 56)); in intel_pt_8b_tsc()
1534 if (timestamp < ref_timestamp) { in intel_pt_8b_tsc()
1535 if (ref_timestamp - timestamp > (1ULL << 55)) in intel_pt_8b_tsc()
1536 timestamp += (1ULL << 56); in intel_pt_8b_tsc()
1538 if (timestamp - ref_timestamp > (1ULL << 55)) in intel_pt_8b_tsc()
1539 timestamp -= (1ULL << 56); in intel_pt_8b_tsc()
1542 return timestamp; in intel_pt_8b_tsc()
1547 uint64_t timestamp) in intel_pt_time_in_range() argument
1555 return timestamp >= decoder->last_reliable_timestamp && in intel_pt_time_in_range()
1556 timestamp < decoder->buf_timestamp; in intel_pt_time_in_range()
1561 uint64_t timestamp; in intel_pt_calc_tsc_timestamp() local
1567 timestamp = intel_pt_8b_tsc(decoder->packet.payload, in intel_pt_calc_tsc_timestamp()
1569 decoder->tsc_timestamp = timestamp; in intel_pt_calc_tsc_timestamp()
1570 decoder->timestamp = timestamp; in intel_pt_calc_tsc_timestamp()
1573 } else if (decoder->timestamp) { in intel_pt_calc_tsc_timestamp()
1574 timestamp = decoder->packet.payload | in intel_pt_calc_tsc_timestamp()
1575 (decoder->timestamp & (0xffULL << 56)); in intel_pt_calc_tsc_timestamp()
1576 decoder->tsc_timestamp = timestamp; in intel_pt_calc_tsc_timestamp()
1577 if (timestamp < decoder->timestamp && in intel_pt_calc_tsc_timestamp()
1578 decoder->timestamp - timestamp < decoder->tsc_slip) { in intel_pt_calc_tsc_timestamp()
1580 timestamp); in intel_pt_calc_tsc_timestamp()
1581 timestamp = decoder->timestamp; in intel_pt_calc_tsc_timestamp()
1583 if (timestamp < decoder->timestamp) { in intel_pt_calc_tsc_timestamp()
1585 (timestamp + (1ULL << 56) < decoder->buf_timestamp)) { in intel_pt_calc_tsc_timestamp()
1586 intel_pt_log_to("Wraparound timestamp", timestamp); in intel_pt_calc_tsc_timestamp()
1587 timestamp += (1ULL << 56); in intel_pt_calc_tsc_timestamp()
1588 decoder->tsc_timestamp = timestamp; in intel_pt_calc_tsc_timestamp()
1590 intel_pt_log_to("Suppressing bad timestamp", timestamp); in intel_pt_calc_tsc_timestamp()
1591 timestamp = decoder->timestamp; in intel_pt_calc_tsc_timestamp()
1596 (bad || !intel_pt_time_in_range(decoder, timestamp)) && in intel_pt_calc_tsc_timestamp()
1599 decoder->timestamp = timestamp; in intel_pt_calc_tsc_timestamp()
1604 decoder->cyc_ref_timestamp = decoder->timestamp; in intel_pt_calc_tsc_timestamp()
1610 intel_pt_log_to("Setting timestamp", decoder->timestamp); in intel_pt_calc_tsc_timestamp()
1638 decoder->cyc_cnt_timestamp = decoder->timestamp; in intel_pt_mtc_cyc_cnt_pge()
1659 if (!decoder->pge || decoder->timestamp <= decoder->cyc_cnt_timestamp) in intel_pt_mtc_cyc_cnt_upd()
1662 tsc_delta = decoder->timestamp - decoder->cyc_cnt_timestamp; in intel_pt_mtc_cyc_cnt_upd()
1702 uint64_t timestamp; in intel_pt_calc_mtc_timestamp() local
1724 timestamp = decoder->ctc_timestamp + in intel_pt_calc_mtc_timestamp()
1727 timestamp = decoder->ctc_timestamp + in intel_pt_calc_mtc_timestamp()
1733 if (timestamp < decoder->timestamp) in intel_pt_calc_mtc_timestamp()
1735 timestamp, decoder->timestamp); in intel_pt_calc_mtc_timestamp()
1737 decoder->timestamp = timestamp; in intel_pt_calc_mtc_timestamp()
1745 decoder->cyc_ref_timestamp = decoder->timestamp; in intel_pt_calc_mtc_timestamp()
1751 intel_pt_log_to("Setting timestamp", decoder->timestamp); in intel_pt_calc_mtc_timestamp()
1771 uint64_t timestamp = decoder->cyc_ref_timestamp; in intel_pt_calc_cyc_timestamp() local
1784 timestamp += decoder->cycle_cnt * decoder->calc_cyc_to_tsc; in intel_pt_calc_cyc_timestamp()
1786 timestamp += decoder->cycle_cnt * decoder->cbr_cyc_to_tsc; in intel_pt_calc_cyc_timestamp()
1790 if (timestamp < decoder->timestamp) in intel_pt_calc_cyc_timestamp()
1792 timestamp, decoder->timestamp); in intel_pt_calc_cyc_timestamp()
1794 decoder->timestamp = timestamp; in intel_pt_calc_cyc_timestamp()
1798 intel_pt_log_to("Setting timestamp", decoder->timestamp); in intel_pt_calc_cyc_timestamp()
2385 ref_timestamp = decoder->timestamp ? decoder->timestamp : decoder->buf_timestamp; in intel_pt_vm_tm_corr_tsc()
2531 host_tsc = intel_pt_8b_tsc(host_tsc, decoder->timestamp); in intel_pt_vm_tm_corr_pebs_tsc()
2542 host_tsc = decoder->timestamp; in intel_pt_vm_tm_corr_pebs_tsc()
3082 if (!decoder->timestamp) in intel_pt_walk_trace()
3626 if (!decoder->timestamp) in intel_pt_sync()
3627 decoder->timestamp = 1; in intel_pt_sync()
3772 decoder->state.timestamp = decoder->sample_timestamp; in intel_pt_decode()
4098 uint64_t timestamp; member
4136 if (tsc < d->timestamp) in intel_pt_ff_cb()
4153 int intel_pt_fast_forward(struct intel_pt_decoder *decoder, uint64_t timestamp) in intel_pt_fast_forward() argument
4155 struct fast_forward_data d = { .timestamp = timestamp }; in intel_pt_fast_forward()
4160 intel_pt_log("Fast forward towards timestamp " x64_fmt "\n", timestamp); in intel_pt_fast_forward()
4205 if (tsc < timestamp) { in intel_pt_fast_forward()