Lines Matching refs:pkt_info

716 typedef int (*intel_pt_pkt_cb_t)(struct intel_pt_pkt_info *pkt_info);
722 struct intel_pt_pkt_info pkt_info; in intel_pt_pkt_lookahead() local
728 pkt_info.decoder = decoder; in intel_pt_pkt_lookahead()
729 pkt_info.pos = decoder->pos; in intel_pt_pkt_lookahead()
730 pkt_info.pkt_len = decoder->pkt_step; in intel_pt_pkt_lookahead()
731 pkt_info.last_packet_type = decoder->last_packet_type; in intel_pt_pkt_lookahead()
732 pkt_info.data = data; in intel_pt_pkt_lookahead()
736 pkt_info.pos += pkt_info.pkt_len; in intel_pt_pkt_lookahead()
737 buf += pkt_info.pkt_len; in intel_pt_pkt_lookahead()
738 len -= pkt_info.pkt_len; in intel_pt_pkt_lookahead()
743 ret = intel_pt_get_packet(buf, len, &pkt_info.packet, in intel_pt_pkt_lookahead()
750 pkt_info.pkt_len = ret; in intel_pt_pkt_lookahead()
751 } while (pkt_info.packet.type == INTEL_PT_PAD); in intel_pt_pkt_lookahead()
753 ret = cb(&pkt_info); in intel_pt_pkt_lookahead()
757 pkt_info.last_packet_type = pkt_info.packet.type; in intel_pt_pkt_lookahead()
795 static int intel_pt_calc_cyc_cb(struct intel_pt_pkt_info *pkt_info) in intel_pt_calc_cyc_cb() argument
797 struct intel_pt_decoder *decoder = pkt_info->decoder; in intel_pt_calc_cyc_cb()
798 struct intel_pt_calc_cyc_to_tsc_info *data = pkt_info->data; in intel_pt_calc_cyc_cb()
804 switch (pkt_info->packet.type) { in intel_pt_calc_cyc_cb()
829 mtc = pkt_info->packet.payload; in intel_pt_calc_cyc_cb()
855 if (pkt_info->last_packet_type != INTEL_PT_CYC) { in intel_pt_calc_cyc_cb()
869 timestamp = pkt_info->packet.payload | in intel_pt_calc_cyc_cb()
876 if (pkt_info->last_packet_type != INTEL_PT_CYC) { in intel_pt_calc_cyc_cb()
892 ctc = pkt_info->packet.payload; in intel_pt_calc_cyc_cb()
893 fc = pkt_info->packet.count; in intel_pt_calc_cyc_cb()
914 data->cycle_cnt += pkt_info->packet.payload; in intel_pt_calc_cyc_cb()
918 cbr = pkt_info->packet.payload; in intel_pt_calc_cyc_cb()
951 cyc_to_tsc, data->cbr_cyc_to_tsc, pkt_info->pos); in intel_pt_calc_cyc_cb()
960 cyc_to_tsc, data->cbr_cyc_to_tsc, pkt_info->pos); in intel_pt_calc_cyc_cb()
963 cyc_to_tsc, pkt_info->pos); in intel_pt_calc_cyc_cb()
2080 static int intel_pt_vm_psb_lookahead_cb(struct intel_pt_pkt_info *pkt_info) in intel_pt_vm_psb_lookahead_cb() argument
2082 struct intel_pt_vm_tsc_info *data = pkt_info->data; in intel_pt_vm_psb_lookahead_cb()
2084 switch (pkt_info->packet.type) { in intel_pt_vm_psb_lookahead_cb()
2100 data->tma_packet = pkt_info->packet; in intel_pt_vm_psb_lookahead_cb()
2105 data->pip_packet = pkt_info->packet; in intel_pt_vm_psb_lookahead_cb()
2110 data->vmcs_packet = pkt_info->packet; in intel_pt_vm_psb_lookahead_cb()
2150 static int intel_pt_ovf_fup_lookahead_cb(struct intel_pt_pkt_info *pkt_info) in intel_pt_ovf_fup_lookahead_cb() argument
2152 struct intel_pt_ovf_fup_info *data = pkt_info->data; in intel_pt_ovf_fup_lookahead_cb()
2154 if (pkt_info->packet.type == INTEL_PT_CYC || in intel_pt_ovf_fup_lookahead_cb()
2155 pkt_info->packet.type == INTEL_PT_MTC || in intel_pt_ovf_fup_lookahead_cb()
2156 pkt_info->packet.type == INTEL_PT_TSC) in intel_pt_ovf_fup_lookahead_cb()
2158 data->found = pkt_info->packet.type == INTEL_PT_FUP; in intel_pt_ovf_fup_lookahead_cb()
2174 static int intel_pt_tma_lookahead_cb(struct intel_pt_pkt_info *pkt_info) in intel_pt_tma_lookahead_cb() argument
2176 struct intel_pt_vm_tsc_info *data = pkt_info->data; in intel_pt_tma_lookahead_cb()
2178 if (pkt_info->packet.type == INTEL_PT_CYC || in intel_pt_tma_lookahead_cb()
2179 pkt_info->packet.type == INTEL_PT_MTC) in intel_pt_tma_lookahead_cb()
2182 if (pkt_info->packet.type == INTEL_PT_TMA) { in intel_pt_tma_lookahead_cb()
2183 data->tma_packet = pkt_info->packet; in intel_pt_tma_lookahead_cb()
2804 static int intel_pt_psb_lookahead_cb(struct intel_pt_pkt_info *pkt_info) in intel_pt_psb_lookahead_cb() argument
2806 struct intel_pt_psb_info *data = pkt_info->data; in intel_pt_psb_lookahead_cb()
2808 switch (pkt_info->packet.type) { in intel_pt_psb_lookahead_cb()
2830 if (data->fup || pkt_info->packet.count == 0) in intel_pt_psb_lookahead_cb()
2832 data->fup_packet = pkt_info->packet; in intel_pt_psb_lookahead_cb()