Lines Matching refs:timestamp

121 	uint64_t timestamp;  member
504 decoder->timestamp = 0; in intel_pt_get_data()
626 uint64_t timestamp; member
657 uint64_t timestamp; in intel_pt_calc_cyc_cb() local
697 timestamp = data->ctc_timestamp + in intel_pt_calc_cyc_cb()
700 timestamp = data->ctc_timestamp + in intel_pt_calc_cyc_cb()
706 if (timestamp < data->timestamp) in intel_pt_calc_cyc_cb()
710 data->timestamp = timestamp; in intel_pt_calc_cyc_cb()
723 timestamp = pkt_info->packet.payload | in intel_pt_calc_cyc_cb()
724 (data->timestamp & (0xffULL << 56)); in intel_pt_calc_cyc_cb()
725 if (data->from_mtc && timestamp < data->timestamp && in intel_pt_calc_cyc_cb()
726 data->timestamp - timestamp < decoder->tsc_slip) in intel_pt_calc_cyc_cb()
728 if (timestamp < data->timestamp) in intel_pt_calc_cyc_cb()
729 timestamp += (1ULL << 56); in intel_pt_calc_cyc_cb()
733 data->tsc_timestamp = timestamp; in intel_pt_calc_cyc_cb()
734 data->timestamp = timestamp; in intel_pt_calc_cyc_cb()
800 cyc_to_tsc = (double)(timestamp - decoder->timestamp) / data->cycle_cnt; in intel_pt_calc_cyc_cb()
833 .timestamp = decoder->timestamp, in intel_pt_calc_cyc_to_tsc()
889 uint64_t timestamp, masked_timestamp; in intel_pt_next_period() local
891 timestamp = decoder->timestamp + decoder->timestamp_insn_cnt; in intel_pt_next_period()
892 masked_timestamp = timestamp & decoder->period_mask; in intel_pt_next_period()
897 timestamp += 1; in intel_pt_next_period()
898 masked_timestamp = timestamp & decoder->period_mask; in intel_pt_next_period()
904 return decoder->period_ticks - (timestamp - masked_timestamp); in intel_pt_next_period()
923 uint64_t timestamp, masked_timestamp; in intel_pt_sample_insn() local
930 timestamp = decoder->timestamp + decoder->timestamp_insn_cnt; in intel_pt_sample_insn()
931 masked_timestamp = timestamp & decoder->period_mask; in intel_pt_sample_insn()
1341 uint64_t timestamp; in intel_pt_calc_tsc_timestamp() local
1346 timestamp = decoder->packet.payload | in intel_pt_calc_tsc_timestamp()
1348 if (timestamp < decoder->ref_timestamp) { in intel_pt_calc_tsc_timestamp()
1349 if (decoder->ref_timestamp - timestamp > (1ULL << 55)) in intel_pt_calc_tsc_timestamp()
1350 timestamp += (1ULL << 56); in intel_pt_calc_tsc_timestamp()
1352 if (timestamp - decoder->ref_timestamp > (1ULL << 55)) in intel_pt_calc_tsc_timestamp()
1353 timestamp -= (1ULL << 56); in intel_pt_calc_tsc_timestamp()
1355 decoder->tsc_timestamp = timestamp; in intel_pt_calc_tsc_timestamp()
1356 decoder->timestamp = timestamp; in intel_pt_calc_tsc_timestamp()
1359 } else if (decoder->timestamp) { in intel_pt_calc_tsc_timestamp()
1360 timestamp = decoder->packet.payload | in intel_pt_calc_tsc_timestamp()
1361 (decoder->timestamp & (0xffULL << 56)); in intel_pt_calc_tsc_timestamp()
1362 decoder->tsc_timestamp = timestamp; in intel_pt_calc_tsc_timestamp()
1363 if (timestamp < decoder->timestamp && in intel_pt_calc_tsc_timestamp()
1364 decoder->timestamp - timestamp < decoder->tsc_slip) { in intel_pt_calc_tsc_timestamp()
1366 timestamp); in intel_pt_calc_tsc_timestamp()
1367 timestamp = decoder->timestamp; in intel_pt_calc_tsc_timestamp()
1369 if (timestamp < decoder->timestamp) { in intel_pt_calc_tsc_timestamp()
1370 intel_pt_log_to("Wraparound timestamp", timestamp); in intel_pt_calc_tsc_timestamp()
1371 timestamp += (1ULL << 56); in intel_pt_calc_tsc_timestamp()
1372 decoder->tsc_timestamp = timestamp; in intel_pt_calc_tsc_timestamp()
1374 decoder->timestamp = timestamp; in intel_pt_calc_tsc_timestamp()
1379 decoder->cyc_ref_timestamp = decoder->timestamp; in intel_pt_calc_tsc_timestamp()
1385 intel_pt_log_to("Setting timestamp", decoder->timestamp); in intel_pt_calc_tsc_timestamp()
1426 uint64_t timestamp; in intel_pt_calc_mtc_timestamp() local
1448 timestamp = decoder->ctc_timestamp + in intel_pt_calc_mtc_timestamp()
1451 timestamp = decoder->ctc_timestamp + in intel_pt_calc_mtc_timestamp()
1457 if (timestamp < decoder->timestamp) in intel_pt_calc_mtc_timestamp()
1459 timestamp, decoder->timestamp); in intel_pt_calc_mtc_timestamp()
1461 decoder->timestamp = timestamp; in intel_pt_calc_mtc_timestamp()
1467 decoder->cyc_ref_timestamp = decoder->timestamp; in intel_pt_calc_mtc_timestamp()
1489 uint64_t timestamp = decoder->cyc_ref_timestamp; in intel_pt_calc_cyc_timestamp() local
1499 timestamp += decoder->cycle_cnt * decoder->calc_cyc_to_tsc; in intel_pt_calc_cyc_timestamp()
1501 timestamp += decoder->cycle_cnt * decoder->cbr_cyc_to_tsc; in intel_pt_calc_cyc_timestamp()
1505 if (timestamp < decoder->timestamp) in intel_pt_calc_cyc_timestamp()
1507 timestamp, decoder->timestamp); in intel_pt_calc_cyc_timestamp()
1509 decoder->timestamp = timestamp; in intel_pt_calc_cyc_timestamp()
1822 if (!decoder->timestamp) in intel_pt_walk_trace()
2387 decoder->sample_timestamp = decoder->timestamp; in intel_pt_decode()
2397 decoder->sample_timestamp = decoder->timestamp; in intel_pt_decode()
2402 decoder->state.timestamp = decoder->sample_timestamp; in intel_pt_decode()