Lines Matching refs:pkt_info
728 typedef int (*intel_pt_pkt_cb_t)(struct intel_pt_pkt_info *pkt_info);
734 struct intel_pt_pkt_info pkt_info; in intel_pt_pkt_lookahead() local
740 pkt_info.decoder = decoder; in intel_pt_pkt_lookahead()
741 pkt_info.pos = decoder->pos; in intel_pt_pkt_lookahead()
742 pkt_info.pkt_len = decoder->pkt_step; in intel_pt_pkt_lookahead()
743 pkt_info.last_packet_type = decoder->last_packet_type; in intel_pt_pkt_lookahead()
744 pkt_info.data = data; in intel_pt_pkt_lookahead()
748 pkt_info.pos += pkt_info.pkt_len; in intel_pt_pkt_lookahead()
749 buf += pkt_info.pkt_len; in intel_pt_pkt_lookahead()
750 len -= pkt_info.pkt_len; in intel_pt_pkt_lookahead()
755 ret = intel_pt_get_packet(buf, len, &pkt_info.packet, in intel_pt_pkt_lookahead()
762 pkt_info.pkt_len = ret; in intel_pt_pkt_lookahead()
763 } while (pkt_info.packet.type == INTEL_PT_PAD); in intel_pt_pkt_lookahead()
765 ret = cb(&pkt_info); in intel_pt_pkt_lookahead()
769 pkt_info.last_packet_type = pkt_info.packet.type; in intel_pt_pkt_lookahead()
807 static int intel_pt_calc_cyc_cb(struct intel_pt_pkt_info *pkt_info) in intel_pt_calc_cyc_cb() argument
809 struct intel_pt_decoder *decoder = pkt_info->decoder; in intel_pt_calc_cyc_cb()
810 struct intel_pt_calc_cyc_to_tsc_info *data = pkt_info->data; in intel_pt_calc_cyc_cb()
816 switch (pkt_info->packet.type) { in intel_pt_calc_cyc_cb()
844 mtc = pkt_info->packet.payload; in intel_pt_calc_cyc_cb()
870 if (pkt_info->last_packet_type != INTEL_PT_CYC) { in intel_pt_calc_cyc_cb()
884 timestamp = pkt_info->packet.payload | in intel_pt_calc_cyc_cb()
891 if (pkt_info->last_packet_type != INTEL_PT_CYC) { in intel_pt_calc_cyc_cb()
907 ctc = pkt_info->packet.payload; in intel_pt_calc_cyc_cb()
908 fc = pkt_info->packet.count; in intel_pt_calc_cyc_cb()
929 data->cycle_cnt += pkt_info->packet.payload; in intel_pt_calc_cyc_cb()
933 cbr = pkt_info->packet.payload; in intel_pt_calc_cyc_cb()
966 cyc_to_tsc, data->cbr_cyc_to_tsc, pkt_info->pos); in intel_pt_calc_cyc_cb()
975 cyc_to_tsc, data->cbr_cyc_to_tsc, pkt_info->pos); in intel_pt_calc_cyc_cb()
978 cyc_to_tsc, pkt_info->pos); in intel_pt_calc_cyc_cb()
1547 static int intel_pt_eptw_lookahead_cb(struct intel_pt_pkt_info *pkt_info) in intel_pt_eptw_lookahead_cb() argument
1549 struct eptw_data *data = pkt_info->data; in intel_pt_eptw_lookahead_cb()
1552 switch (pkt_info->packet.type) { in intel_pt_eptw_lookahead_cb()
1585 if (nr_bits > pkt_info->packet.count) in intel_pt_eptw_lookahead_cb()
1586 nr_bits = pkt_info->packet.count; in intel_pt_eptw_lookahead_cb()
1588 data->payload |= pkt_info->packet.payload >> (64 - nr_bits); in intel_pt_eptw_lookahead_cb()
2323 static int intel_pt_vm_psb_lookahead_cb(struct intel_pt_pkt_info *pkt_info) in intel_pt_vm_psb_lookahead_cb() argument
2325 struct intel_pt_vm_tsc_info *data = pkt_info->data; in intel_pt_vm_psb_lookahead_cb()
2327 switch (pkt_info->packet.type) { in intel_pt_vm_psb_lookahead_cb()
2343 data->tma_packet = pkt_info->packet; in intel_pt_vm_psb_lookahead_cb()
2348 data->pip_packet = pkt_info->packet; in intel_pt_vm_psb_lookahead_cb()
2353 data->vmcs_packet = pkt_info->packet; in intel_pt_vm_psb_lookahead_cb()
2396 static int intel_pt_ovf_fup_lookahead_cb(struct intel_pt_pkt_info *pkt_info) in intel_pt_ovf_fup_lookahead_cb() argument
2398 struct intel_pt_ovf_fup_info *data = pkt_info->data; in intel_pt_ovf_fup_lookahead_cb()
2400 if (pkt_info->packet.type == INTEL_PT_CYC || in intel_pt_ovf_fup_lookahead_cb()
2401 pkt_info->packet.type == INTEL_PT_MTC || in intel_pt_ovf_fup_lookahead_cb()
2402 pkt_info->packet.type == INTEL_PT_TSC) in intel_pt_ovf_fup_lookahead_cb()
2404 data->found = pkt_info->packet.type == INTEL_PT_FUP; in intel_pt_ovf_fup_lookahead_cb()
2420 static int intel_pt_tma_lookahead_cb(struct intel_pt_pkt_info *pkt_info) in intel_pt_tma_lookahead_cb() argument
2422 struct intel_pt_vm_tsc_info *data = pkt_info->data; in intel_pt_tma_lookahead_cb()
2424 if (pkt_info->packet.type == INTEL_PT_CYC || in intel_pt_tma_lookahead_cb()
2425 pkt_info->packet.type == INTEL_PT_MTC) in intel_pt_tma_lookahead_cb()
2428 if (pkt_info->packet.type == INTEL_PT_TMA) { in intel_pt_tma_lookahead_cb()
2429 data->tma_packet = pkt_info->packet; in intel_pt_tma_lookahead_cb()
3057 static int intel_pt_psb_lookahead_cb(struct intel_pt_pkt_info *pkt_info) in intel_pt_psb_lookahead_cb() argument
3059 struct intel_pt_psb_info *data = pkt_info->data; in intel_pt_psb_lookahead_cb()
3061 switch (pkt_info->packet.type) { in intel_pt_psb_lookahead_cb()
3083 if (data->fup || pkt_info->packet.count == 0) in intel_pt_psb_lookahead_cb()
3085 data->fup_packet = pkt_info->packet; in intel_pt_psb_lookahead_cb()