/tools/perf/util/intel-pt-decoder/ |
D | intel-pt-pkt-decoder.c | 77 struct intel_pt_pkt *packet) in intel_pt_get_long_tnt() argument 93 packet->type = INTEL_PT_TNT; in intel_pt_get_long_tnt() 94 packet->count = count; in intel_pt_get_long_tnt() 95 packet->payload = payload << 1; in intel_pt_get_long_tnt() 100 struct intel_pt_pkt *packet) in intel_pt_get_pip() argument 107 packet->type = INTEL_PT_PIP; in intel_pt_get_pip() 109 packet->payload = payload >> 1; in intel_pt_get_pip() 111 packet->payload |= NR_FLAG; in intel_pt_get_pip() 116 static int intel_pt_get_tracestop(struct intel_pt_pkt *packet) in intel_pt_get_tracestop() argument 118 packet->type = INTEL_PT_TRACESTOP; in intel_pt_get_tracestop() [all …]
|
D | intel-pt-decoder.c | 152 struct intel_pt_pkt packet; member 435 static uint64_t intel_pt_calc_ip(const struct intel_pt_pkt *packet, in intel_pt_calc_ip() argument 440 switch (packet->count) { in intel_pt_calc_ip() 443 packet->payload; in intel_pt_calc_ip() 447 packet->payload; in intel_pt_calc_ip() 450 ip = packet->payload; in intel_pt_calc_ip() 457 packet->payload; in intel_pt_calc_ip() 460 ip = packet->payload; in intel_pt_calc_ip() 471 decoder->last_ip = intel_pt_calc_ip(&decoder->packet, decoder->last_ip); in intel_pt_set_last_ip() 483 intel_pt_log_packet(&decoder->packet, decoder->pkt_len, decoder->pos, in intel_pt_decoder_log_packet() [all …]
|
D | intel-pt-pkt-decoder.h | 79 struct intel_pt_pkt *packet, 82 void intel_pt_upd_pkt_ctx(const struct intel_pt_pkt *packet, 85 int intel_pt_pkt_desc(const struct intel_pt_pkt *packet, char *buf, size_t len);
|
D | intel-pt-log.c | 97 void __intel_pt_log_packet(const struct intel_pt_pkt *packet, int pkt_len, in __intel_pt_log_packet() argument 106 intel_pt_pkt_desc(packet, desc, INTEL_PT_PKT_DESC_MAX); in __intel_pt_log_packet()
|
D | intel-pt-log.h | 21 void __intel_pt_log_packet(const struct intel_pt_pkt *packet, int pkt_len,
|
/tools/perf/util/arm-spe-decoder/ |
D | arm-spe-pkt-decoder.c | 86 struct arm_spe_pkt *packet) in arm_spe_get_payload() argument 96 case 1: packet->payload = *(uint8_t *)buf; break; in arm_spe_get_payload() 97 case 2: packet->payload = le16_to_cpu(*(uint16_t *)buf); break; in arm_spe_get_payload() 98 case 4: packet->payload = le32_to_cpu(*(uint32_t *)buf); break; in arm_spe_get_payload() 99 case 8: packet->payload = le64_to_cpu(*(uint64_t *)buf); break; in arm_spe_get_payload() 106 static int arm_spe_get_pad(struct arm_spe_pkt *packet) in arm_spe_get_pad() argument 108 packet->type = ARM_SPE_PAD; in arm_spe_get_pad() 113 struct arm_spe_pkt *packet) in arm_spe_get_alignment() argument 120 packet->type = ARM_SPE_PAD; in arm_spe_get_alignment() 124 static int arm_spe_get_end(struct arm_spe_pkt *packet) in arm_spe_get_end() argument [all …]
|
D | arm-spe-decoder.c | 122 &decoder->packet); in arm_spe_get_next_packet() 132 } while (decoder->packet.type == ARM_SPE_PAD); in arm_spe_get_next_packet() 150 idx = decoder->packet.index; in arm_spe_read_record() 151 payload = decoder->packet.payload; in arm_spe_read_record() 153 switch (decoder->packet.type) { in arm_spe_read_record()
|
D | arm-spe-pkt-decoder.h | 56 struct arm_spe_pkt *packet); 58 int arm_spe_pkt_desc(const struct arm_spe_pkt *packet, char *buf, size_t len);
|
D | arm-spe-decoder.h | 74 struct arm_spe_pkt packet; member
|
/tools/perf/arch/x86/tests/ |
D | intel-pt-pkt-decoder-test.c | 24 struct intel_pt_pkt packet; member 173 static int dump_packet(struct intel_pt_pkt *packet, u8 *bytes, int len) in dump_packet() argument 183 ret = intel_pt_pkt_desc(packet, desc, INTEL_PT_PKT_DESC_MAX); in dump_packet() 197 dump_packet(&d->packet, d->bytes, d->len); in decoding_failed() 200 static int fail(struct test_data *d, struct intel_pt_pkt *packet, int len, in fail() argument 209 if (packet->type != d->packet.type) in fail() 211 d->packet.type, packet->type); in fail() 213 if (packet->count != d->packet.count) in fail() 215 d->packet.count, packet->count); in fail() 217 if (packet->payload != d->packet.payload) in fail() [all …]
|
/tools/perf/util/ |
D | cs-etm.c | 79 struct cs_etm_packet *packet; member 248 tidq->packet = zalloc(sizeof(struct cs_etm_packet)); in cs_etm__init_traceid_queue() 249 if (!tidq->packet) in cs_etm__init_traceid_queue() 279 zfree(&tidq->packet); in cs_etm__init_traceid_queue() 380 tmp = tidq->packet; in cs_etm__packet_swap() 381 tidq->packet = tidq->prev_packet; in cs_etm__packet_swap() 567 zfree(&tidq->packet); in cs_etm__free_traceid_queues() 951 static inline u64 cs_etm__first_executed_instr(struct cs_etm_packet *packet) in cs_etm__first_executed_instr() argument 954 if (packet->sample_type == CS_ETM_DISCONTINUITY) in cs_etm__first_executed_instr() 957 return packet->start_addr; in cs_etm__first_executed_instr() [all …]
|
D | arm-spe.c | 92 struct arm_spe_pkt packet; in arm_spe_dump() local 103 ret = arm_spe_get_packet(buf, len, &packet); in arm_spe_dump() 115 ret = arm_spe_pkt_desc(&packet, desc, in arm_spe_dump()
|
D | intel-pt.c | 188 struct intel_pt_pkt packet; in intel_pt_dump() local 200 ret = intel_pt_get_packet(buf, len, &packet, &ctx); in intel_pt_dump() 212 ret = intel_pt_pkt_desc(&packet, desc, in intel_pt_dump()
|
/tools/firewire/ |
D | decode-fcp.c | 148 (struct avc_frame *) t->request->packet.write_block.data; in decode_avc() 177 (struct avc_frame *) t->request->packet.write_block.data; in decode_fcp() 179 ((unsigned long long) t->request->packet.common.offset_high << 32) | in decode_fcp() 180 t->request->packet.common.offset_low; in decode_fcp() 182 if (t->request->packet.common.tcode != TCODE_WRITE_BLOCK_REQUEST) in decode_fcp()
|
D | nosy-dump.c | 34 static void decode_link_packet(struct link_packet *packet, size_t length, 139 sa = malloc(sizeof *sa - sizeof sa->packet + length); in subaction_create() 144 memcpy(&sa->packet, data, length); in subaction_create() 230 decode_link_packet(&t->request->packet, t->request->length, in handle_transaction() 233 decode_link_packet(&t->response->packet, t->request->length, in handle_transaction() 240 print_packet((uint32_t *) &sa->packet, sa->length); in handle_transaction() 242 print_packet((uint32_t *) &sa->packet, sa->length); in handle_transaction() 506 if (prev->packet.common.tcode != sa->packet.common.tcode || in handle_request_packet() 507 prev->packet.common.tlabel != sa->packet.common.tlabel) { in handle_request_packet() 572 if (prev->packet.common.tcode != sa->packet.common.tcode || in handle_response_packet() [all …]
|
D | nosy-dump.h | 162 struct link_packet packet; member
|
/tools/perf/util/cs-etm-decoder/ |
D | cs-etm-decoder.c | 84 struct cs_etm_packet *packet) in cs_etm_decoder__get_packet() argument 86 if (!packet_queue || !packet) in cs_etm_decoder__get_packet() 104 *packet = packet_queue->packet_buffer[packet_queue->head]; in cs_etm_decoder__get_packet() 388 struct cs_etm_packet *packet; in cs_etm_decoder__buffer_range() local 395 packet = &packet_queue->packet_buffer[packet_queue->tail]; in cs_etm_decoder__buffer_range() 399 packet->isa = CS_ETM_ISA_A64; in cs_etm_decoder__buffer_range() 402 packet->isa = CS_ETM_ISA_A32; in cs_etm_decoder__buffer_range() 405 packet->isa = CS_ETM_ISA_T32; in cs_etm_decoder__buffer_range() 412 packet->isa = CS_ETM_ISA_UNKNOWN; in cs_etm_decoder__buffer_range() 415 packet->start_addr = elem->st_addr; in cs_etm_decoder__buffer_range() [all …]
|
D | cs-etm-decoder.h | 92 struct cs_etm_packet *packet);
|
/tools/testing/selftests/net/ |
D | psock_tpacket.c | 375 char packet[1024]; in walk_tx() local 416 create_payload(packet, &packet_len); in walk_tx() 431 sizeof(struct sockaddr_ll), packet, in walk_tx() 441 sizeof(struct sockaddr_ll), packet, in walk_tx() 453 sizeof(struct sockaddr_ll), packet, in walk_tx() 479 while ((ret = recvfrom(rcv_sock, packet, sizeof(packet), in walk_tx() 483 test_payload(packet, ret); in walk_tx()
|
/tools/perf/Documentation/ |
D | perf-intel-pt.txt | 29 the trace data packets. For example a TNT packet only tells whether a 30 conditional branch was taken or not taken, so to make use of that packet the 167 presently sampled, so IPC values for them do not appear e.g. a CYC packet with a 168 TNT packet that starts with a non-taken branch. To see every possible IPC 297 noretcomp Always supported. Disables "return compression" so a TIP packet 305 The PSB packet is a synchronization packet that provides a 342 Because a TSC packet is produced with PSB, the PSB period can 350 clock (CTC) which is related to TSC packets using a TMA packet. 393 MTC and TSC packets. A CYC packet contains the number of CPU 394 cycles since the last CYC packet. Unlike MTC and TSC packets, [all …]
|
D | perf-top.txt | 298 broadcast packet arrives This will show a menu with two entries and 299 will start counting when a broadcast packet arrives:
|
/tools/bpf/bpftool/Documentation/ |
D | bpftool-net.rst | 63 …**xdpgeneric** - Generic XDP. runs at generic XDP hook when packet already enters receive path as … 65 **xdpoffload** - Offload XDP. runs directly on NIC on each packet reception;
|