/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/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()
|
H A D | umip.c | 341 unsigned char buf[MAX_INSN_SIZE]; in fixup_umip_exception()
|
/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 | kprobes.h | 43 #define MAX_OPTIMIZED_LENGTH (MAX_INSN_SIZE + DISP32_SIZE)
|
/linux/arch/x86/events/ |
H A 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/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/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/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/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 | 239 MAX_INSN_SIZE * sizeof(kprobe_opcode_t))) in __recover_probed_insn() 292 kprobe_opcode_t buf[MAX_INSN_SIZE]; in can_probe() 406 kprobe_opcode_t buf[MAX_INSN_SIZE]; in __copy_instruction() 415 MAX_INSN_SIZE)) in __copy_instruction() 472 MAX_INSN_SIZE - len >= JMP32_INSN_SIZE) { in prepare_singlestep() 483 if (MAX_INSN_SIZE - len < INT3_INSN_SIZE) in prepare_singlestep() 759 kprobe_opcode_t buf[MAX_INSN_SIZE]; in arch_copy_kprobe() 1049 (unsigned long)p->ainsn.insn + MAX_INSN_SIZE > regs->ip) { in kprobe_int3_handler()
|
H A D | opt.c | 63 MAX_INSN_SIZE * sizeof(kprobe_opcode_t))) in __recover_optprobed_insn() 268 kprobe_opcode_t buf[MAX_INSN_SIZE]; in can_optimize()
|
/linux/arch/x86/lib/ |
H A 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
|
H A D | insn.c | 67 if (buf_len > MAX_INSN_SIZE) in insn_init() 68 buf_len = MAX_INSN_SIZE; in insn_init()
|
/linux/arch/arm64/include/asm/ |
H A D | kprobes.h | 19 #define MAX_INSN_SIZE 2 macro
|
/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/arc/include/asm/ |
H A D | kprobes.h | 18 #define MAX_INSN_SIZE 8 macro
|
/linux/tools/arch/x86/include/asm/ |
H A D | insn.h | 105 #define MAX_INSN_SIZE 15 macro 158 #define insn_decode_kernel(_insn, _ptr) insn_decode((_insn), (_ptr), MAX_INSN_SIZE, INSN_MODE_KERN) in insn_get_attribute()
|
/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/x86/kernel/cpu/mce/ |
H A D | severity.c | 237 u8 insn_buf[MAX_INSN_SIZE]; in is_copy_from_user() 245 if (copy_from_kernel_nofault(insn_buf, (void *)regs->ip, MAX_INSN_SIZE)) in is_copy_from_user()
|
/linux/tools/arch/x86/lib/ |
H A D | insn.c | 67 if (buf_len > MAX_INSN_SIZE) in insn_init() 68 buf_len = MAX_INSN_SIZE; in insn_init()
|