Lines Matching refs:intel_pt_decoder
117 struct intel_pt_decoder { struct
269 static bool intel_pt_print_once(struct intel_pt_decoder *decoder, in intel_pt_print_once()
288 static void intel_pt_setup_period(struct intel_pt_decoder *decoder) in intel_pt_setup_period()
306 struct intel_pt_decoder *intel_pt_decoder_new(struct intel_pt_params *params) in intel_pt_decoder_new()
308 struct intel_pt_decoder *decoder; in intel_pt_decoder_new()
313 decoder = zalloc(sizeof(struct intel_pt_decoder)); in intel_pt_decoder_new()
381 void intel_pt_set_first_timestamp(struct intel_pt_decoder *decoder, in intel_pt_set_first_timestamp()
458 void intel_pt_decoder_free(struct intel_pt_decoder *decoder) in intel_pt_decoder_free()
548 static inline void intel_pt_set_last_ip(struct intel_pt_decoder *decoder) in intel_pt_set_last_ip()
554 static inline void intel_pt_set_ip(struct intel_pt_decoder *decoder) in intel_pt_set_ip()
560 static void intel_pt_decoder_log_packet(struct intel_pt_decoder *decoder) in intel_pt_decoder_log_packet()
566 static int intel_pt_bug(struct intel_pt_decoder *decoder) in intel_pt_bug()
573 static inline void intel_pt_clear_tx_flags(struct intel_pt_decoder *decoder) in intel_pt_clear_tx_flags()
578 static inline void intel_pt_update_in_tx(struct intel_pt_decoder *decoder) in intel_pt_update_in_tx()
583 static inline void intel_pt_update_pip(struct intel_pt_decoder *decoder) in intel_pt_update_pip()
588 static inline void intel_pt_update_nr(struct intel_pt_decoder *decoder) in intel_pt_update_nr()
593 static inline void intel_pt_set_nr(struct intel_pt_decoder *decoder) in intel_pt_set_nr()
599 static inline void intel_pt_set_pip(struct intel_pt_decoder *decoder) in intel_pt_set_pip()
605 static int intel_pt_bad_packet(struct intel_pt_decoder *decoder) in intel_pt_bad_packet()
619 static inline void intel_pt_update_sample_time(struct intel_pt_decoder *decoder) in intel_pt_update_sample_time()
626 static void intel_pt_reposition(struct intel_pt_decoder *decoder) in intel_pt_reposition()
634 static int intel_pt_get_data(struct intel_pt_decoder *decoder, bool reposition) in intel_pt_get_data()
665 static int intel_pt_get_next_data(struct intel_pt_decoder *decoder, in intel_pt_get_next_data()
678 static int intel_pt_get_split_packet(struct intel_pt_decoder *decoder) in intel_pt_get_split_packet()
720 struct intel_pt_decoder *decoder;
731 static int intel_pt_pkt_lookahead(struct intel_pt_decoder *decoder, in intel_pt_pkt_lookahead()
809 struct intel_pt_decoder *decoder = pkt_info->decoder; in intel_pt_calc_cyc_cb()
984 static void intel_pt_calc_cyc_to_tsc(struct intel_pt_decoder *decoder, in intel_pt_calc_cyc_to_tsc()
1012 static int intel_pt_get_next_packet(struct intel_pt_decoder *decoder) in intel_pt_get_next_packet()
1049 static uint64_t intel_pt_next_period(struct intel_pt_decoder *decoder) in intel_pt_next_period()
1073 static uint64_t intel_pt_next_sample(struct intel_pt_decoder *decoder) in intel_pt_next_sample()
1087 static void intel_pt_sample_insn(struct intel_pt_decoder *decoder) in intel_pt_sample_insn()
1116 static void intel_pt_sample_fup_insn(struct intel_pt_decoder *decoder) in intel_pt_sample_fup_insn()
1158 static int intel_pt_walk_insn(struct intel_pt_decoder *decoder, in intel_pt_walk_insn()
1267 static void intel_pt_mode_exec_status(struct intel_pt_decoder *decoder) in intel_pt_mode_exec_status()
1278 static void intel_pt_mode_exec(struct intel_pt_decoder *decoder) in intel_pt_mode_exec()
1286 static void intel_pt_sample_iflag(struct intel_pt_decoder *decoder) in intel_pt_sample_iflag()
1294 static void intel_pt_sample_iflag_chg(struct intel_pt_decoder *decoder) in intel_pt_sample_iflag_chg()
1300 static void intel_pt_clear_fup_event(struct intel_pt_decoder *decoder) in intel_pt_clear_fup_event()
1315 static bool intel_pt_fup_event(struct intel_pt_decoder *decoder, bool no_tip) in intel_pt_fup_event()
1410 static inline bool intel_pt_fup_with_nlip(struct intel_pt_decoder *decoder, in intel_pt_fup_with_nlip()
1419 static int intel_pt_walk_fup(struct intel_pt_decoder *decoder) in intel_pt_walk_fup()
1462 static int intel_pt_walk_tip(struct intel_pt_decoder *decoder) in intel_pt_walk_tip()
1605 static int intel_pt_emulated_ptwrite(struct intel_pt_decoder *decoder) in intel_pt_emulated_ptwrite()
1627 static int intel_pt_walk_tnt(struct intel_pt_decoder *decoder) in intel_pt_walk_tnt()
1735 static int intel_pt_mode_tsx(struct intel_pt_decoder *decoder, bool *no_tip) in intel_pt_mode_tsx()
1758 static int intel_pt_evd(struct intel_pt_decoder *decoder) in intel_pt_evd()
1787 static bool intel_pt_time_in_range(struct intel_pt_decoder *decoder, in intel_pt_time_in_range()
1800 static void intel_pt_calc_tsc_timestamp(struct intel_pt_decoder *decoder) in intel_pt_calc_tsc_timestamp()
1854 static int intel_pt_overflow(struct intel_pt_decoder *decoder) in intel_pt_overflow()
1869 static inline void intel_pt_mtc_cyc_cnt_pge(struct intel_pt_decoder *decoder) in intel_pt_mtc_cyc_cnt_pge()
1878 static inline void intel_pt_mtc_cyc_cnt_cbr(struct intel_pt_decoder *decoder) in intel_pt_mtc_cyc_cnt_cbr()
1886 static inline void intel_pt_mtc_cyc_cnt_upd(struct intel_pt_decoder *decoder) in intel_pt_mtc_cyc_cnt_upd()
1905 static void intel_pt_calc_tma(struct intel_pt_decoder *decoder) in intel_pt_calc_tma()
1936 static void intel_pt_calc_mtc_timestamp(struct intel_pt_decoder *decoder) in intel_pt_calc_mtc_timestamp()
1990 static void intel_pt_calc_cbr(struct intel_pt_decoder *decoder) in intel_pt_calc_cbr()
2005 static void intel_pt_calc_cyc_timestamp(struct intel_pt_decoder *decoder) in intel_pt_calc_cyc_timestamp()
2037 static void intel_pt_bbp(struct intel_pt_decoder *decoder) in intel_pt_bbp()
2056 static void intel_pt_bip(struct intel_pt_decoder *decoder) in intel_pt_bip()
2078 static int intel_pt_walk_psbend(struct intel_pt_decoder *decoder) in intel_pt_walk_psbend()
2179 static int intel_pt_walk_fup_tip(struct intel_pt_decoder *decoder) in intel_pt_walk_fup_tip()
2303 static int intel_pt_resample(struct intel_pt_decoder *decoder) in intel_pt_resample()
2408 static bool intel_pt_ovf_fup_lookahead(struct intel_pt_decoder *decoder) in intel_pt_ovf_fup_lookahead()
2435 static uint64_t intel_pt_ctc_to_tsc(struct intel_pt_decoder *decoder, uint64_t ctc) in intel_pt_ctc_to_tsc()
2443 static uint64_t intel_pt_calc_expected_tsc(struct intel_pt_decoder *decoder, in intel_pt_calc_expected_tsc()
2484 static uint64_t intel_pt_expected_tsc(struct intel_pt_decoder *decoder, in intel_pt_expected_tsc()
2495 static void intel_pt_translate_vm_tsc(struct intel_pt_decoder *decoder, in intel_pt_translate_vm_tsc()
2518 static void intel_pt_translate_vm_tsc_offset(struct intel_pt_decoder *decoder, in intel_pt_translate_vm_tsc_offset()
2545 static void intel_pt_vm_tm_corr_psb(struct intel_pt_decoder *decoder, in intel_pt_vm_tm_corr_psb()
2557 static void intel_pt_vm_tm_corr_first_tsc(struct intel_pt_decoder *decoder, in intel_pt_vm_tm_corr_first_tsc()
2592 static void intel_pt_vm_tm_corr_tsc(struct intel_pt_decoder *decoder, in intel_pt_vm_tm_corr_tsc()
2745 static void intel_pt_vm_tm_corr_pebs_tsc(struct intel_pt_decoder *decoder) in intel_pt_vm_tm_corr_pebs_tsc()
2797 static int intel_pt_vm_time_correlation(struct intel_pt_decoder *decoder) in intel_pt_vm_time_correlation()
2930 static int intel_pt_scan_for_psb(struct intel_pt_decoder *decoder);
2933 static int intel_pt_hop_trace(struct intel_pt_decoder *decoder, bool *no_tip, int *err) in intel_pt_hop_trace()
3138 static int intel_pt_psb(struct intel_pt_decoder *decoder) in intel_pt_psb()
3155 static int intel_pt_fup_in_psb(struct intel_pt_decoder *decoder) in intel_pt_fup_in_psb()
3175 static bool intel_pt_psb_with_fup(struct intel_pt_decoder *decoder, int *err) in intel_pt_psb_with_fup()
3195 static int intel_pt_walk_trace(struct intel_pt_decoder *decoder) in intel_pt_walk_trace()
3525 static inline bool intel_pt_have_ip(struct intel_pt_decoder *decoder) in intel_pt_have_ip()
3533 static int intel_pt_walk_psb(struct intel_pt_decoder *decoder) in intel_pt_walk_psb()
3655 static int intel_pt_walk_to_ip(struct intel_pt_decoder *decoder) in intel_pt_walk_to_ip()
3784 static int intel_pt_sync_ip(struct intel_pt_decoder *decoder) in intel_pt_sync_ip()
3815 static int intel_pt_part_psb(struct intel_pt_decoder *decoder) in intel_pt_part_psb()
3829 static int intel_pt_rest_psb(struct intel_pt_decoder *decoder, int part_psb) in intel_pt_rest_psb()
3841 static int intel_pt_get_split_psb(struct intel_pt_decoder *decoder, in intel_pt_get_split_psb()
3867 static int intel_pt_scan_for_psb(struct intel_pt_decoder *decoder) in intel_pt_scan_for_psb()
3902 static int intel_pt_sync(struct intel_pt_decoder *decoder) in intel_pt_sync()
3952 static uint64_t intel_pt_est_timestamp(struct intel_pt_decoder *decoder) in intel_pt_est_timestamp()
3965 const struct intel_pt_state *intel_pt_decode(struct intel_pt_decoder *decoder) in intel_pt_decode()
4447 int intel_pt_fast_forward(struct intel_pt_decoder *decoder, uint64_t timestamp) in intel_pt_fast_forward()