Home
last modified time | relevance | path

Searched refs:MAX_INSN_SIZE (Results 1 – 25 of 39) sorted by relevance

12

/linux-6.6.21/arch/x86/tools/
Dinsn_sanity.c94 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/
Dcfi.c19 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/
Dinsn-eval.h29 unsigned char buf[MAX_INSN_SIZE]);
31 unsigned char buf[MAX_INSN_SIZE]);
33 unsigned char buf[MAX_INSN_SIZE], int buf_size);
Dinsn.h105 #define MAX_INSN_SIZE 15 macro
153 #define insn_decode_kernel(_insn, _ptr) insn_decode((_insn), (_ptr), MAX_INSN_SIZE, INSN_MODE_KERN)
Dkprobes.h43 #define MAX_OPTIMIZED_LENGTH (MAX_INSN_SIZE + DISP32_SIZE)
/linux-6.6.21/arch/x86/events/
Dutils.c95 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/
Dkprobes.h23 #define MAX_INSN_SIZE 2 macro
33 MAX_INSN_SIZE*sizeof(kprobe_opcode_t))
/linux-6.6.21/arch/sh/include/asm/
Dkprobes.h16 #define MAX_INSN_SIZE 16 macro
34 kprobe_opcode_t insn[MAX_INSN_SIZE];
/linux-6.6.21/arch/loongarch/include/asm/
Dkprobes.h13 #define MAX_INSN_SIZE 2 macro
20 (MAX_INSN_SIZE * sizeof(kprobe_opcode_t))); \
/linux-6.6.21/arch/mips/include/asm/
Dkprobes.h30 #define MAX_INSN_SIZE 2 macro
37 (MAX_INSN_SIZE * sizeof(kprobe_opcode_t))); \
/linux-6.6.21/arch/sparc/include/asm/
Dkprobes.h16 #define MAX_INSN_SIZE 2 macro
32 kprobe_opcode_t insn[MAX_INSN_SIZE];
/linux-6.6.21/tools/perf/arch/x86/tests/
Dinsn-x86.c13 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/
Dcore.c228 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/
Dinsn-eval.c1500 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/
Dcore.c51 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/
Dsev.c78 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/
Dkprobes.h19 #define MAX_INSN_SIZE 2 macro
/linux-6.6.21/arch/riscv/include/asm/
Dkprobes.h20 #define MAX_INSN_SIZE 2 macro
/linux-6.6.21/arch/csky/include/asm/
Dkprobes.h14 #define MAX_INSN_SIZE 1 macro
/linux-6.6.21/arch/arc/include/asm/
Dkprobes.h18 #define MAX_INSN_SIZE 8 macro
/linux-6.6.21/arch/s390/include/asm/
Dkprobes.h44 #define MAX_INSN_SIZE 0x0003 macro
/linux-6.6.21/arch/arm/include/asm/
Dkprobes.h19 #define MAX_INSN_SIZE 2 macro
/linux-6.6.21/tools/arch/x86/include/asm/
Dinsn.h105 #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/
Dkprobes.h46 #define MAX_INSN_SIZE 2 macro
/linux-6.6.21/arch/ia64/include/asm/
Dkprobes.h25 #define MAX_INSN_SIZE 2 /* last half is for kprobe-booster */ macro

12