Lines Matching full:payload
67 packet->payload.unknown.packet = pos; in pt_pkt_read_unknown()
68 packet->payload.unknown.priv = NULL; in pt_pkt_read_unknown()
73 size = (*decode)(&packet->payload.unknown, config, pos, in pt_pkt_read_unknown()
164 static uint8_t pt_pkt_tnt_bit_size(uint64_t payload) in pt_pkt_tnt_bit_size() argument
168 /* The payload bit-size is the bit-index of the payload's stop-bit, in pt_pkt_tnt_bit_size()
169 * which itself is not part of the payload proper. in pt_pkt_tnt_bit_size()
172 payload >>= 1; in pt_pkt_tnt_bit_size()
173 if (!payload) in pt_pkt_tnt_bit_size()
180 static int pt_pkt_read_tnt(struct pt_packet_tnt *packet, uint64_t payload) in pt_pkt_read_tnt() argument
187 bit_size = pt_pkt_tnt_bit_size(payload); in pt_pkt_read_tnt()
191 /* Remove the stop bit from the payload. */ in pt_pkt_read_tnt()
192 payload &= ~(1ull << bit_size); in pt_pkt_read_tnt()
194 packet->payload = payload; in pt_pkt_read_tnt()
220 uint64_t payload; in pt_pkt_read_tnt_64() local
229 payload = pt_pkt_read_value(pos + pt_opcs_tnt_64, pt_pl_tnt_64_size); in pt_pkt_read_tnt_64()
231 errcode = pt_pkt_read_tnt(packet, payload); in pt_pkt_read_tnt_64()
241 uint64_t payload; in pt_pkt_read_pip() local
249 /* Read the payload. */ in pt_pkt_read_pip()
250 payload = pt_pkt_read_value(pos + pt_opcs_pip, pt_pl_pip_size); in pt_pkt_read_pip()
252 /* Extract the non-root information from the payload. */ in pt_pkt_read_pip()
253 packet->nr = payload & pt_pl_pip_nr; in pt_pkt_read_pip()
256 payload >>= pt_pl_pip_shr; in pt_pkt_read_pip()
257 payload <<= pt_pl_pip_shl; in pt_pkt_read_pip()
258 packet->cr3 = payload; in pt_pkt_read_pip()
290 uint8_t payload, mode, leaf; in pt_pkt_read_mode() local
298 payload = pos[pt_opcs_mode]; in pt_pkt_read_mode()
299 leaf = payload & pt_mom_leaf; in pt_pkt_read_mode()
300 mode = payload & pt_mom_bits; in pt_pkt_read_mode()
396 /* The first byte contains the opcode and part of the payload. in pt_pkt_read_cyc()
434 uint64_t payload; in pt_pkt_read_vmcs() local
442 payload = pt_pkt_read_value(pos + pt_opcs_vmcs, pt_pl_vmcs_size); in pt_pkt_read_vmcs()
444 packet->base = payload << pt_pl_vmcs_shl; in pt_pkt_read_vmcs()
458 packet->payload = pt_pkt_read_value(pos + pt_opcs_mnt, pt_pl_mnt_size); in pt_pkt_read_mnt()
497 uint64_t payload; in pt_pkt_read_pwre() local
505 payload = pt_pkt_read_value(pos + pt_opcs_pwre, pt_pl_pwre_size); in pt_pkt_read_pwre()
508 packet->state = (uint8_t) ((payload & pt_pl_pwre_state_mask) >> in pt_pkt_read_pwre()
510 packet->sub_state = (uint8_t) ((payload & pt_pl_pwre_sub_state_mask) >> in pt_pkt_read_pwre()
512 if (payload & pt_pl_pwre_hw_mask) in pt_pkt_read_pwre()
521 uint64_t payload; in pt_pkt_read_pwrx() local
529 payload = pt_pkt_read_value(pos + pt_opcs_pwrx, pt_pl_pwrx_size); in pt_pkt_read_pwrx()
532 packet->last = (uint8_t) ((payload & pt_pl_pwrx_last_mask) >> in pt_pkt_read_pwrx()
534 packet->deepest = (uint8_t) ((payload & pt_pl_pwrx_deepest_mask) >> in pt_pkt_read_pwrx()
536 if (payload & pt_pl_pwrx_wr_int) in pt_pkt_read_pwrx()
538 if (payload & pt_pl_pwrx_wr_store) in pt_pkt_read_pwrx()
540 if (payload & pt_pl_pwrx_wr_hw) in pt_pkt_read_pwrx()
568 packet->payload = pt_pkt_read_value(pos, size); in pt_pkt_read_ptw()