• Home
  • Raw
  • Download

Lines Matching refs:timestamp

153 	uint64_t timestamp;  member
613 decoder->sample_timestamp = decoder->timestamp; in intel_pt_update_sample_time()
621 decoder->timestamp = 0; in intel_pt_reposition()
771 uint64_t timestamp; member
802 uint64_t timestamp; in intel_pt_calc_cyc_cb() local
849 timestamp = data->ctc_timestamp + in intel_pt_calc_cyc_cb()
852 timestamp = data->ctc_timestamp + in intel_pt_calc_cyc_cb()
858 if (timestamp < data->timestamp) in intel_pt_calc_cyc_cb()
862 data->timestamp = timestamp; in intel_pt_calc_cyc_cb()
875 timestamp = pkt_info->packet.payload | in intel_pt_calc_cyc_cb()
876 (data->timestamp & (0xffULL << 56)); in intel_pt_calc_cyc_cb()
877 if (data->from_mtc && timestamp < data->timestamp && in intel_pt_calc_cyc_cb()
878 data->timestamp - timestamp < decoder->tsc_slip) in intel_pt_calc_cyc_cb()
880 if (timestamp < data->timestamp) in intel_pt_calc_cyc_cb()
881 timestamp += (1ULL << 56); in intel_pt_calc_cyc_cb()
885 data->tsc_timestamp = timestamp; in intel_pt_calc_cyc_cb()
886 data->timestamp = timestamp; in intel_pt_calc_cyc_cb()
952 cyc_to_tsc = (double)(timestamp - decoder->timestamp) / data->cycle_cnt; in intel_pt_calc_cyc_cb()
985 .timestamp = decoder->timestamp, in intel_pt_calc_cyc_to_tsc()
1042 uint64_t timestamp, masked_timestamp; in intel_pt_next_period() local
1044 timestamp = decoder->timestamp + decoder->timestamp_insn_cnt; in intel_pt_next_period()
1045 masked_timestamp = timestamp & decoder->period_mask; in intel_pt_next_period()
1050 timestamp += 1; in intel_pt_next_period()
1051 masked_timestamp = timestamp & decoder->period_mask; in intel_pt_next_period()
1061 return decoder->period_ticks - (timestamp - masked_timestamp); in intel_pt_next_period()
1080 uint64_t timestamp, masked_timestamp; in intel_pt_sample_insn() local
1087 timestamp = decoder->timestamp + decoder->timestamp_insn_cnt; in intel_pt_sample_insn()
1088 masked_timestamp = timestamp & decoder->period_mask; in intel_pt_sample_insn()
1627 static uint64_t intel_pt_8b_tsc(uint64_t timestamp, uint64_t ref_timestamp) in intel_pt_8b_tsc() argument
1629 timestamp |= (ref_timestamp & (0xffULL << 56)); in intel_pt_8b_tsc()
1631 if (timestamp < ref_timestamp) { in intel_pt_8b_tsc()
1632 if (ref_timestamp - timestamp > (1ULL << 55)) in intel_pt_8b_tsc()
1633 timestamp += (1ULL << 56); in intel_pt_8b_tsc()
1635 if (timestamp - ref_timestamp > (1ULL << 55)) in intel_pt_8b_tsc()
1636 timestamp -= (1ULL << 56); in intel_pt_8b_tsc()
1639 return timestamp; in intel_pt_8b_tsc()
1644 uint64_t timestamp) in intel_pt_time_in_range() argument
1652 return timestamp >= decoder->last_reliable_timestamp && in intel_pt_time_in_range()
1653 timestamp < decoder->buf_timestamp; in intel_pt_time_in_range()
1658 uint64_t timestamp; in intel_pt_calc_tsc_timestamp() local
1664 timestamp = intel_pt_8b_tsc(decoder->packet.payload, in intel_pt_calc_tsc_timestamp()
1666 decoder->tsc_timestamp = timestamp; in intel_pt_calc_tsc_timestamp()
1667 decoder->timestamp = timestamp; in intel_pt_calc_tsc_timestamp()
1670 } else if (decoder->timestamp) { in intel_pt_calc_tsc_timestamp()
1671 timestamp = decoder->packet.payload | in intel_pt_calc_tsc_timestamp()
1672 (decoder->timestamp & (0xffULL << 56)); in intel_pt_calc_tsc_timestamp()
1673 decoder->tsc_timestamp = timestamp; in intel_pt_calc_tsc_timestamp()
1674 if (timestamp < decoder->timestamp && in intel_pt_calc_tsc_timestamp()
1675 decoder->timestamp - timestamp < decoder->tsc_slip) { in intel_pt_calc_tsc_timestamp()
1677 timestamp); in intel_pt_calc_tsc_timestamp()
1678 timestamp = decoder->timestamp; in intel_pt_calc_tsc_timestamp()
1680 if (timestamp < decoder->timestamp) { in intel_pt_calc_tsc_timestamp()
1682 (timestamp + (1ULL << 56) < decoder->buf_timestamp)) { in intel_pt_calc_tsc_timestamp()
1683 intel_pt_log_to("Wraparound timestamp", timestamp); in intel_pt_calc_tsc_timestamp()
1684 timestamp += (1ULL << 56); in intel_pt_calc_tsc_timestamp()
1685 decoder->tsc_timestamp = timestamp; in intel_pt_calc_tsc_timestamp()
1687 intel_pt_log_to("Suppressing bad timestamp", timestamp); in intel_pt_calc_tsc_timestamp()
1688 timestamp = decoder->timestamp; in intel_pt_calc_tsc_timestamp()
1693 (bad || !intel_pt_time_in_range(decoder, timestamp)) && in intel_pt_calc_tsc_timestamp()
1696 decoder->timestamp = timestamp; in intel_pt_calc_tsc_timestamp()
1701 decoder->cyc_ref_timestamp = decoder->timestamp; in intel_pt_calc_tsc_timestamp()
1707 intel_pt_log_to("Setting timestamp", decoder->timestamp); in intel_pt_calc_tsc_timestamp()
1735 decoder->cyc_cnt_timestamp = decoder->timestamp; in intel_pt_mtc_cyc_cnt_pge()
1756 if (!decoder->pge || decoder->timestamp <= decoder->cyc_cnt_timestamp) in intel_pt_mtc_cyc_cnt_upd()
1759 tsc_delta = decoder->timestamp - decoder->cyc_cnt_timestamp; in intel_pt_mtc_cyc_cnt_upd()
1799 uint64_t timestamp; in intel_pt_calc_mtc_timestamp() local
1821 timestamp = decoder->ctc_timestamp + in intel_pt_calc_mtc_timestamp()
1824 timestamp = decoder->ctc_timestamp + in intel_pt_calc_mtc_timestamp()
1830 if (timestamp < decoder->timestamp) in intel_pt_calc_mtc_timestamp()
1832 timestamp, decoder->timestamp); in intel_pt_calc_mtc_timestamp()
1834 decoder->timestamp = timestamp; in intel_pt_calc_mtc_timestamp()
1842 decoder->cyc_ref_timestamp = decoder->timestamp; in intel_pt_calc_mtc_timestamp()
1848 intel_pt_log_to("Setting timestamp", decoder->timestamp); in intel_pt_calc_mtc_timestamp()
1862 decoder->cyc_ref_timestamp = decoder->timestamp; in intel_pt_calc_cbr()
1870 uint64_t timestamp = decoder->cyc_ref_timestamp; in intel_pt_calc_cyc_timestamp() local
1883 timestamp += decoder->cycle_cnt * decoder->calc_cyc_to_tsc; in intel_pt_calc_cyc_timestamp()
1885 timestamp += decoder->cycle_cnt * decoder->cbr_cyc_to_tsc; in intel_pt_calc_cyc_timestamp()
1889 if (timestamp < decoder->timestamp) in intel_pt_calc_cyc_timestamp()
1891 timestamp, decoder->timestamp); in intel_pt_calc_cyc_timestamp()
1893 decoder->timestamp = timestamp; in intel_pt_calc_cyc_timestamp()
1897 intel_pt_log_to("Setting timestamp", decoder->timestamp); in intel_pt_calc_cyc_timestamp()
2493 ref_timestamp = decoder->timestamp ? decoder->timestamp : decoder->buf_timestamp; in intel_pt_vm_tm_corr_tsc()
2639 host_tsc = intel_pt_8b_tsc(host_tsc, decoder->timestamp); in intel_pt_vm_tm_corr_pebs_tsc()
2650 host_tsc = decoder->timestamp; in intel_pt_vm_tm_corr_pebs_tsc()
3199 if (!decoder->timestamp) in intel_pt_walk_trace()
3754 if (!decoder->timestamp) in intel_pt_sync()
3755 decoder->timestamp = 1; in intel_pt_sync()
3900 decoder->state.timestamp = decoder->sample_timestamp; in intel_pt_decode()
4226 uint64_t timestamp; member
4264 if (tsc < d->timestamp) in intel_pt_ff_cb()
4281 int intel_pt_fast_forward(struct intel_pt_decoder *decoder, uint64_t timestamp) in intel_pt_fast_forward() argument
4283 struct fast_forward_data d = { .timestamp = timestamp }; in intel_pt_fast_forward()
4288 intel_pt_log("Fast forward towards timestamp " x64_fmt "\n", timestamp); in intel_pt_fast_forward()
4333 if (tsc < timestamp) { in intel_pt_fast_forward()