| /linux/arch/x86/tools/ |
| H A D | insn_sanity.c | 94 for (i = 0; i < MAX_INSN_SIZE; i++) in dump_stream() 132 for (i = 0; i < MAX_INSN_SIZE; i++) { in read_next_insn() 149 for (i = 0; i < MAX_INSN_SIZE - 1; i += 2) in generate_insn() 152 while (i < MAX_INSN_SIZE) in generate_insn() 225 unsigned char insn_buff[MAX_INSN_SIZE * 2]; in main() 230 memset(insn_buff + MAX_INSN_SIZE, INSN_NOP, MAX_INSN_SIZE); in main() 244 insn.kaddr + MAX_INSN_SIZE < insn.next_byte) { in main()
|
| /linux/arch/x86/events/ |
| H A D | utils.c | 96 u8 buf[MAX_INSN_SIZE]; in get_branch_type() 126 MAX_INSN_SIZE); in get_branch_type() 127 bytes_read = MAX_INSN_SIZE - bytes_left; in get_branch_type() 148 bytes_read = MAX_INSN_SIZE; in get_branch_type()
|
| /linux/arch/x86/kernel/ |
| H A D | cfi.c | 19 char buffer[MAX_INSN_SIZE]; in decode_cfi_insn() 38 if (copy_from_kernel_nofault(buffer, (void *)regs->ip - 12, MAX_INSN_SIZE)) in decode_cfi_insn() 47 if (copy_from_kernel_nofault(buffer, (void *)regs->ip - 6, MAX_INSN_SIZE)) in decode_cfi_insn()
|
| /linux/arch/x86/include/asm/ |
| H A D | insn-eval.h | 29 unsigned char buf[MAX_INSN_SIZE]); 31 unsigned char buf[MAX_INSN_SIZE]); 33 unsigned char buf[MAX_INSN_SIZE], int buf_size);
|
| H A D | insn.h | 108 #define MAX_INSN_SIZE 15 macro 172 #define insn_decode_kernel(_insn, _ptr) insn_decode((_insn), (_ptr), MAX_INSN_SIZE, INSN_MODE_KERN)
|
| H A D | kprobes.h | 43 #define MAX_OPTIMIZED_LENGTH (MAX_INSN_SIZE + DISP32_SIZE)
|
| /linux/arch/x86/boot/compressed/ |
| H A D | sev-handle-vc.c | 45 char buffer[MAX_INSN_SIZE]; in vc_decode_insn() 48 memcpy(buffer, (unsigned char *)ctxt->regs->ip, MAX_INSN_SIZE); in vc_decode_insn() 50 ret = insn_decode(&ctxt->insn, buffer, MAX_INSN_SIZE, INSN_MODE_64); in vc_decode_insn()
|
| /linux/tools/perf/arch/x86/tests/ |
| H A D | insn-x86.c | 13 u8 data[MAX_INSN_SIZE]; 106 ret = insn_decode(&insn, dat->data, MAX_INSN_SIZE, in test_data_item() 122 if (intel_pt_get_insn(dat->data, MAX_INSN_SIZE, x86_64, &intel_pt_insn)) { in test_data_item()
|
| /linux/arch/sh/include/asm/ |
| H A D | kprobes.h | 16 #define MAX_INSN_SIZE 16 macro 34 kprobe_opcode_t insn[MAX_INSN_SIZE];
|
| /linux/arch/sparc/include/asm/ |
| H A D | kprobes.h | 16 #define MAX_INSN_SIZE 2 macro 32 kprobe_opcode_t insn[MAX_INSN_SIZE];
|
| /linux/arch/parisc/include/asm/ |
| H A D | kprobes.h | 24 #define MAX_INSN_SIZE 2 macro 34 MAX_INSN_SIZE*sizeof(kprobe_opcode_t))
|
| /linux/arch/mips/include/asm/ |
| H A D | kprobes.h | 30 #define MAX_INSN_SIZE 2 macro 37 (MAX_INSN_SIZE * sizeof(kprobe_opcode_t))); \
|
| /linux/arch/loongarch/include/asm/ |
| H A D | kprobes.h | 13 #define MAX_INSN_SIZE 2 macro 20 (MAX_INSN_SIZE * sizeof(kprobe_opcode_t))); \
|
| /linux/arch/x86/kernel/kprobes/ |
| H A D | core.c | 238 MAX_INSN_SIZE * sizeof(kprobe_opcode_t))) in __recover_probed_insn() 291 kprobe_opcode_t buf[MAX_INSN_SIZE]; in can_probe() 396 kprobe_opcode_t buf[MAX_INSN_SIZE]; in __copy_instruction() 405 MAX_INSN_SIZE)) in __copy_instruction() 462 MAX_INSN_SIZE - len >= JMP32_INSN_SIZE) { in prepare_singlestep() 473 if (MAX_INSN_SIZE - len < INT3_INSN_SIZE) in prepare_singlestep() 731 kprobe_opcode_t buf[MAX_INSN_SIZE]; in arch_copy_kprobe() 1021 (unsigned long)p->ainsn.insn + MAX_INSN_SIZE > regs->ip) { in kprobe_int3_handler()
|
| /linux/arch/x86/lib/ |
| H A D | insn-eval.c | 1507 int insn_fetch_from_user(struct pt_regs *regs, unsigned char buf[MAX_INSN_SIZE]) in insn_fetch_from_user() argument 1515 not_copied = copy_from_user(buf, (void __user *)ip, MAX_INSN_SIZE); in insn_fetch_from_user() 1517 return MAX_INSN_SIZE - not_copied; in insn_fetch_from_user() 1535 int insn_fetch_from_user_inatomic(struct pt_regs *regs, unsigned char buf[MAX_INSN_SIZE]) in insn_fetch_from_user_inatomic() argument 1543 not_copied = __copy_from_user_inatomic(buf, (void __user *)ip, MAX_INSN_SIZE); in insn_fetch_from_user_inatomic() 1545 return MAX_INSN_SIZE - not_copied; in insn_fetch_from_user_inatomic() 1563 unsigned char buf[MAX_INSN_SIZE], int buf_size) in insn_decode_from_regs() argument
|
| /linux/arch/arm/probes/kprobes/ |
| H A D | core.c | 51 kprobe_opcode_t tmp_insn[MAX_INSN_SIZE]; in arch_prepare_kprobe() 95 for (is = 0; is < MAX_INSN_SIZE; ++is) in arch_prepare_kprobe() 98 sizeof(p->ainsn.insn[0]) * MAX_INSN_SIZE); in arch_prepare_kprobe()
|
| /linux/arch/riscv/include/asm/ |
| H A D | kprobes.h | 20 #define MAX_INSN_SIZE 2 macro
|
| /linux/arch/csky/include/asm/ |
| H A D | kprobes.h | 14 #define MAX_INSN_SIZE 1 macro
|
| /linux/arch/arm64/include/asm/ |
| H A D | kprobes.h | 19 #define MAX_INSN_SIZE 2 macro
|
| /linux/arch/arc/include/asm/ |
| H A D | kprobes.h | 18 #define MAX_INSN_SIZE 8 macro
|
| /linux/arch/s390/include/asm/ |
| H A D | kprobes.h | 45 #define MAX_INSN_SIZE 0x0003 macro
|
| /linux/arch/arm/include/asm/ |
| H A D | kprobes.h | 19 #define MAX_INSN_SIZE 2 macro
|
| /linux/arch/powerpc/include/asm/ |
| H A D | kprobes.h | 46 #define MAX_INSN_SIZE 2 macro
|
| /linux/tools/arch/x86/include/asm/ |
| H A D | insn.h | 108 #define MAX_INSN_SIZE 15 macro 172 #define insn_decode_kernel(_insn, _ptr) insn_decode((_insn), (_ptr), MAX_INSN_SIZE, INSN_MODE_KERN)
|
| /linux/arch/x86/coco/sev/ |
| H A D | vc-handle.c | 131 return copy_from_kernel_nofault(buffer, (unsigned char *)ctxt->regs->ip, MAX_INSN_SIZE); in vc_fetch_insn_kernel() 136 char buffer[MAX_INSN_SIZE]; in __vc_decode_user_insn() 165 char buffer[MAX_INSN_SIZE]; in __vc_decode_kern_insn() 176 ret = insn_decode(&ctxt->insn, buffer, MAX_INSN_SIZE, INSN_MODE_64); in __vc_decode_kern_insn()
|