/linux-6.6.21/arch/x86/tools/ |
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-6.6.21/arch/x86/kernel/ |
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-6.6.21/arch/x86/include/asm/ |
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);
|
D | insn.h | 105 #define MAX_INSN_SIZE 15 macro 153 #define insn_decode_kernel(_insn, _ptr) insn_decode((_insn), (_ptr), MAX_INSN_SIZE, INSN_MODE_KERN)
|
D | kprobes.h | 43 #define MAX_OPTIMIZED_LENGTH (MAX_INSN_SIZE + DISP32_SIZE)
|
/linux-6.6.21/arch/x86/events/ |
D | utils.c | 95 u8 buf[MAX_INSN_SIZE]; in get_branch_type() 125 MAX_INSN_SIZE); in get_branch_type() 126 bytes_read = MAX_INSN_SIZE - bytes_left; in get_branch_type() 147 bytes_read = MAX_INSN_SIZE; in get_branch_type()
|
/linux-6.6.21/arch/parisc/include/asm/ |
D | kprobes.h | 23 #define MAX_INSN_SIZE 2 macro 33 MAX_INSN_SIZE*sizeof(kprobe_opcode_t))
|
/linux-6.6.21/arch/sh/include/asm/ |
D | kprobes.h | 16 #define MAX_INSN_SIZE 16 macro 34 kprobe_opcode_t insn[MAX_INSN_SIZE];
|
/linux-6.6.21/arch/loongarch/include/asm/ |
D | kprobes.h | 13 #define MAX_INSN_SIZE 2 macro 20 (MAX_INSN_SIZE * sizeof(kprobe_opcode_t))); \
|
/linux-6.6.21/arch/mips/include/asm/ |
D | kprobes.h | 30 #define MAX_INSN_SIZE 2 macro 37 (MAX_INSN_SIZE * sizeof(kprobe_opcode_t))); \
|
/linux-6.6.21/arch/sparc/include/asm/ |
D | kprobes.h | 16 #define MAX_INSN_SIZE 2 macro 32 kprobe_opcode_t insn[MAX_INSN_SIZE];
|
/linux-6.6.21/tools/perf/arch/x86/tests/ |
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-6.6.21/arch/x86/kernel/kprobes/ |
D | core.c | 228 MAX_INSN_SIZE * sizeof(kprobe_opcode_t))) in __recover_probed_insn() 260 kprobe_opcode_t buf[MAX_INSN_SIZE]; in can_probe() 359 kprobe_opcode_t buf[MAX_INSN_SIZE]; in __copy_instruction() 368 MAX_INSN_SIZE)) in __copy_instruction() 425 MAX_INSN_SIZE - len >= JMP32_INSN_SIZE) { in prepare_singlestep() 436 if (MAX_INSN_SIZE - len < INT3_INSN_SIZE) in prepare_singlestep() 712 kprobe_opcode_t buf[MAX_INSN_SIZE]; in arch_copy_kprobe() 1002 (unsigned long)p->ainsn.insn + MAX_INSN_SIZE > regs->ip) { in kprobe_int3_handler()
|
/linux-6.6.21/arch/x86/lib/ |
D | insn-eval.c | 1500 int insn_fetch_from_user(struct pt_regs *regs, unsigned char buf[MAX_INSN_SIZE]) in insn_fetch_from_user() argument 1508 not_copied = copy_from_user(buf, (void __user *)ip, MAX_INSN_SIZE); in insn_fetch_from_user() 1510 return MAX_INSN_SIZE - not_copied; in insn_fetch_from_user() 1528 int insn_fetch_from_user_inatomic(struct pt_regs *regs, unsigned char buf[MAX_INSN_SIZE]) in insn_fetch_from_user_inatomic() argument 1536 not_copied = __copy_from_user_inatomic(buf, (void __user *)ip, MAX_INSN_SIZE); in insn_fetch_from_user_inatomic() 1538 return MAX_INSN_SIZE - not_copied; in insn_fetch_from_user_inatomic() 1556 unsigned char buf[MAX_INSN_SIZE], int buf_size) in insn_decode_from_regs() argument
|
/linux-6.6.21/arch/arm/probes/kprobes/ |
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-6.6.21/arch/x86/boot/compressed/ |
D | sev.c | 78 char buffer[MAX_INSN_SIZE]; in vc_decode_insn() 81 memcpy(buffer, (unsigned char *)ctxt->regs->ip, MAX_INSN_SIZE); in vc_decode_insn() 83 ret = insn_decode(&ctxt->insn, buffer, MAX_INSN_SIZE, INSN_MODE_64); in vc_decode_insn()
|
/linux-6.6.21/arch/arm64/include/asm/ |
D | kprobes.h | 19 #define MAX_INSN_SIZE 2 macro
|
/linux-6.6.21/arch/riscv/include/asm/ |
D | kprobes.h | 20 #define MAX_INSN_SIZE 2 macro
|
/linux-6.6.21/arch/csky/include/asm/ |
D | kprobes.h | 14 #define MAX_INSN_SIZE 1 macro
|
/linux-6.6.21/arch/arc/include/asm/ |
D | kprobes.h | 18 #define MAX_INSN_SIZE 8 macro
|
/linux-6.6.21/arch/s390/include/asm/ |
D | kprobes.h | 44 #define MAX_INSN_SIZE 0x0003 macro
|
/linux-6.6.21/arch/arm/include/asm/ |
D | kprobes.h | 19 #define MAX_INSN_SIZE 2 macro
|
/linux-6.6.21/tools/arch/x86/include/asm/ |
D | insn.h | 105 #define MAX_INSN_SIZE 15 macro 153 #define insn_decode_kernel(_insn, _ptr) insn_decode((_insn), (_ptr), MAX_INSN_SIZE, INSN_MODE_KERN)
|
/linux-6.6.21/arch/powerpc/include/asm/ |
D | kprobes.h | 46 #define MAX_INSN_SIZE 2 macro
|
/linux-6.6.21/arch/ia64/include/asm/ |
D | kprobes.h | 25 #define MAX_INSN_SIZE 2 /* last half is for kprobe-booster */ macro
|