/linux/arch/x86/tools/ |
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/include/asm/ |
A D | insn-eval.h | 26 unsigned char buf[MAX_INSN_SIZE]); 28 unsigned char buf[MAX_INSN_SIZE]); 30 unsigned char buf[MAX_INSN_SIZE], int buf_size);
|
A 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)
|
A D | kprobes.h | 43 #define MAX_OPTIMIZED_LENGTH (MAX_INSN_SIZE + DISP32_SIZE)
|
/linux/arch/x86/boot/compressed/ |
A D | sev.c | 80 char buffer[MAX_INSN_SIZE]; in vc_decode_insn() 83 memcpy(buffer, (unsigned char *)ctxt->regs->ip, MAX_INSN_SIZE); in vc_decode_insn() 85 ret = insn_decode(&ctxt->insn, buffer, MAX_INSN_SIZE, INSN_MODE_64); in vc_decode_insn()
|
/linux/tools/perf/arch/x86/tests/ |
A D | insn-x86.c | 13 u8 data[MAX_INSN_SIZE]; 102 ret = insn_decode(&insn, dat->data, MAX_INSN_SIZE, in test_data_item() 118 if (intel_pt_get_insn(dat->data, MAX_INSN_SIZE, x86_64, &intel_pt_insn)) { in test_data_item()
|
/linux/arch/sh/include/asm/ |
A D | kprobes.h | 16 #define MAX_INSN_SIZE 16 macro 34 kprobe_opcode_t insn[MAX_INSN_SIZE];
|
/linux/arch/sparc/include/asm/ |
A D | kprobes.h | 16 #define MAX_INSN_SIZE 2 macro 32 kprobe_opcode_t insn[MAX_INSN_SIZE];
|
/linux/arch/mips/include/asm/ |
A D | kprobes.h | 30 #define MAX_INSN_SIZE 2 macro 37 (MAX_INSN_SIZE * sizeof(kprobe_opcode_t))); \
|
/linux/arch/x86/lib/ |
A D | insn-eval.c | 1455 int insn_fetch_from_user(struct pt_regs *regs, unsigned char buf[MAX_INSN_SIZE]) in insn_fetch_from_user() argument 1463 not_copied = copy_from_user(buf, (void __user *)ip, MAX_INSN_SIZE); in insn_fetch_from_user() 1465 return MAX_INSN_SIZE - not_copied; in insn_fetch_from_user() 1483 int insn_fetch_from_user_inatomic(struct pt_regs *regs, unsigned char buf[MAX_INSN_SIZE]) in insn_fetch_from_user_inatomic() argument 1491 not_copied = __copy_from_user_inatomic(buf, (void __user *)ip, MAX_INSN_SIZE); in insn_fetch_from_user_inatomic() 1493 return MAX_INSN_SIZE - not_copied; in insn_fetch_from_user_inatomic() 1511 unsigned char buf[MAX_INSN_SIZE], int buf_size) in insn_decode_from_regs() argument
|
/linux/arch/x86/kernel/kprobes/ |
A D | core.c | 234 MAX_INSN_SIZE * sizeof(kprobe_opcode_t))) in __recover_probed_insn() 266 kprobe_opcode_t buf[MAX_INSN_SIZE]; in can_probe() 313 kprobe_opcode_t buf[MAX_INSN_SIZE]; in __copy_instruction() 322 MAX_INSN_SIZE)) in __copy_instruction() 379 MAX_INSN_SIZE - len >= JMP32_INSN_SIZE) { in prepare_singlestep() 390 if (MAX_INSN_SIZE - len < INT3_INSN_SIZE) in prepare_singlestep() 692 kprobe_opcode_t buf[MAX_INSN_SIZE]; in arch_copy_kprobe() 990 (unsigned long)p->ainsn.insn + MAX_INSN_SIZE > regs->ip) { in kprobe_int3_handler()
|
A D | opt.c | 62 MAX_INSN_SIZE * sizeof(kprobe_opcode_t))) in __recover_optprobed_insn() 293 kprobe_opcode_t buf[MAX_INSN_SIZE]; in can_optimize()
|
/linux/arch/arm/probes/kprobes/ |
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/arm64/include/asm/ |
A D | kprobes.h | 19 #define MAX_INSN_SIZE 2 macro
|
/linux/arch/riscv/include/asm/ |
A D | kprobes.h | 20 #define MAX_INSN_SIZE 2 macro
|
/linux/arch/csky/include/asm/ |
A D | kprobes.h | 14 #define MAX_INSN_SIZE 1 macro
|
/linux/tools/arch/x86/include/asm/ |
A 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/arch/parisc/include/asm/ |
A D | kprobes.h | 22 #define MAX_INSN_SIZE 1 macro
|
/linux/arch/arc/include/asm/ |
A D | kprobes.h | 18 #define MAX_INSN_SIZE 8 macro
|
/linux/arch/s390/include/asm/ |
A D | kprobes.h | 44 #define MAX_INSN_SIZE 0x0003 macro
|
/linux/arch/arm/include/asm/ |
A D | kprobes.h | 19 #define MAX_INSN_SIZE 2 macro
|
/linux/arch/powerpc/include/asm/ |
A D | kprobes.h | 46 #define MAX_INSN_SIZE 2 macro
|
/linux/arch/ia64/include/asm/ |
A D | kprobes.h | 25 #define MAX_INSN_SIZE 2 /* last half is for kprobe-booster */ macro
|
/linux/arch/x86/kernel/cpu/mce/ |
A D | severity.c | 220 u8 insn_buf[MAX_INSN_SIZE]; in is_copy_from_user() 225 if (copy_from_kernel_nofault(insn_buf, (void *)regs->ip, MAX_INSN_SIZE)) in is_copy_from_user()
|
/linux/arch/s390/kernel/ |
A D | kprobes.c | 66 .insn_size = MAX_INSN_SIZE, 71 kprobe_opcode_t insn[MAX_INSN_SIZE]; in copy_instruction()
|