Home
last modified time | relevance | path

Searched refs:nbytes (Results 1 – 10 of 10) sorted by relevance

/tools/objtool/arch/x86/lib/
Dinsn.c116 prefixes->nbytes++; in insn_get_prefixes()
140 insn->rex_prefix.nbytes = 1; in insn_get_prefixes()
170 insn->vex_prefix.nbytes = 4; in insn_get_prefixes()
178 insn->vex_prefix.nbytes = 3; in insn_get_prefixes()
190 insn->vex_prefix.nbytes = 2; in insn_get_prefixes()
226 opcode->nbytes = 1; in insn_get_opcode()
245 opcode->bytes[opcode->nbytes++] = op; in insn_get_opcode()
278 modrm->nbytes = 1; in insn_get_modrm()
316 return (modrm->nbytes && (modrm->value & 0xc7) == 0x5); in insn_rip_relative()
334 if (insn->modrm.nbytes) { in insn_get_sib()
[all …]
/tools/perf/util/intel-pt-decoder/
Dinsn.c116 prefixes->nbytes++; in insn_get_prefixes()
140 insn->rex_prefix.nbytes = 1; in insn_get_prefixes()
170 insn->vex_prefix.nbytes = 4; in insn_get_prefixes()
178 insn->vex_prefix.nbytes = 3; in insn_get_prefixes()
190 insn->vex_prefix.nbytes = 2; in insn_get_prefixes()
226 opcode->nbytes = 1; in insn_get_opcode()
245 opcode->bytes[opcode->nbytes++] = op; in insn_get_opcode()
278 modrm->nbytes = 1; in insn_get_modrm()
316 return (modrm->nbytes && (modrm->value & 0xc7) == 0x5); in insn_rip_relative()
334 if (insn->modrm.nbytes) { in insn_get_sib()
[all …]
Dinsn.h33 unsigned char nbytes; member
141 return (insn->vex_prefix.nbytes == 4); in insn_is_evex()
153 if (insn->vex_prefix.nbytes == 2) /* 2 bytes VEX */ in insn_vex_m_bits()
155 else if (insn->vex_prefix.nbytes == 3) /* 3 bytes VEX */ in insn_vex_m_bits()
163 if (insn->vex_prefix.nbytes == 2) /* 2 bytes VEX */ in insn_vex_p_bits()
184 return insn->prefixes.nbytes; in insn_offset_rex_prefix()
188 return insn_offset_rex_prefix(insn) + insn->rex_prefix.nbytes; in insn_offset_vex_prefix()
192 return insn_offset_vex_prefix(insn) + insn->vex_prefix.nbytes; in insn_offset_opcode()
196 return insn_offset_opcode(insn) + insn->opcode.nbytes; in insn_offset_modrm()
200 return insn_offset_modrm(insn) + insn->modrm.nbytes; in insn_offset_sib()
[all …]
Dintel-pt-insn-decoder.c145 switch (insn->immediate.nbytes) { in intel_pt_insn_decoder()
/tools/objtool/arch/x86/include/asm/
Dinsn.h33 unsigned char nbytes; member
141 return (insn->vex_prefix.nbytes == 4); in insn_is_evex()
153 if (insn->vex_prefix.nbytes == 2) /* 2 bytes VEX */ in insn_vex_m_bits()
155 else if (insn->vex_prefix.nbytes == 3) /* 3 bytes VEX */ in insn_vex_m_bits()
163 if (insn->vex_prefix.nbytes == 2) /* 2 bytes VEX */ in insn_vex_p_bits()
184 return insn->prefixes.nbytes; in insn_offset_rex_prefix()
188 return insn_offset_rex_prefix(insn) + insn->rex_prefix.nbytes; in insn_offset_vex_prefix()
192 return insn_offset_vex_prefix(insn) + insn->vex_prefix.nbytes; in insn_offset_opcode()
196 return insn_offset_opcode(insn) + insn->opcode.nbytes; in insn_offset_modrm()
200 return insn_offset_modrm(insn) + insn->modrm.nbytes; in insn_offset_sib()
[all …]
/tools/usb/
Dffs-test.c349 static ssize_t read_wrap(struct thread *t, void *buf, size_t nbytes);
350 static ssize_t write_wrap(struct thread *t, const void *buf, size_t nbytes);
351 static ssize_t ep0_consume(struct thread *t, const void *buf, size_t nbytes);
352 static ssize_t fill_in_buf(struct thread *t, void *buf, size_t nbytes);
353 static ssize_t empty_out_buf(struct thread *t, const void *buf, size_t nbytes);
496 static ssize_t read_wrap(struct thread *t, void *buf, size_t nbytes) in read_wrap() argument
498 return read(t->fd, buf, nbytes); in read_wrap()
501 static ssize_t write_wrap(struct thread *t, const void *buf, size_t nbytes) in write_wrap() argument
503 return write(t->fd, buf, nbytes); in write_wrap()
514 fill_in_buf(struct thread *ignore, void *buf, size_t nbytes) in fill_in_buf() argument
[all …]
/tools/usb/usbip/src/
Dusbip_network.c110 ssize_t nbytes; in usbip_net_xmit() local
118 nbytes = send(sockfd, buff, bufflen, 0); in usbip_net_xmit()
120 nbytes = recv(sockfd, buff, bufflen, MSG_WAITALL); in usbip_net_xmit()
122 if (nbytes <= 0) in usbip_net_xmit()
125 buff = (void *)((intptr_t) buff + nbytes); in usbip_net_xmit()
126 bufflen -= nbytes; in usbip_net_xmit()
127 total += nbytes; in usbip_net_xmit()
/tools/perf/util/
Djit.h8 struct machine *machine, char *filename, pid_t pid, u64 *nbytes);
Djitdump.c759 u64 *nbytes) in jit_process() argument
784 *nbytes = 0; in jit_process()
788 *nbytes = jd.bytes_written; in jit_process()
/tools/objtool/arch/x86/
Ddecode.c107 if (insn.vex_prefix.nbytes) in arch_decode_instruction()
113 if (insn.rex_prefix.nbytes) { in arch_decode_instruction()
121 if (insn.modrm.nbytes) { in arch_decode_instruction()
128 if (insn.sib.nbytes) in arch_decode_instruction()
475 *immediate = insn.immediate.nbytes ? insn.immediate.value : 0; in arch_decode_instruction()