Searched refs:MAX_INSN_SIZE (Results 1 - 25 of 37) sorted by relevance

12

/linux-master/arch/sh/include/asm/
H A Dkprobes.h16 #define MAX_INSN_SIZE 16 macro
34 kprobe_opcode_t insn[MAX_INSN_SIZE];
/linux-master/arch/loongarch/include/asm/
H A Dkprobes.h13 #define MAX_INSN_SIZE 2 macro
20 (MAX_INSN_SIZE * sizeof(kprobe_opcode_t))); \
/linux-master/arch/mips/include/asm/
H A Dkprobes.h30 #define MAX_INSN_SIZE 2 macro
37 (MAX_INSN_SIZE * sizeof(kprobe_opcode_t))); \
/linux-master/arch/sparc/include/asm/
H A Dkprobes.h16 #define MAX_INSN_SIZE 2 macro
32 kprobe_opcode_t insn[MAX_INSN_SIZE];
/linux-master/arch/parisc/include/asm/
H A Dkprobes.h24 #define MAX_INSN_SIZE 2 macro
34 MAX_INSN_SIZE*sizeof(kprobe_opcode_t))
/linux-master/arch/x86/include/asm/
H A 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);
H A Dkprobes.h43 #define MAX_OPTIMIZED_LENGTH (MAX_INSN_SIZE + DISP32_SIZE)
H A 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-master/arch/x86/kernel/
H A Dcfi.c19 char buffer[MAX_INSN_SIZE];
38 if (copy_from_kernel_nofault(buffer, (void *)regs->ip - 12, MAX_INSN_SIZE))
47 if (copy_from_kernel_nofault(buffer, (void *)regs->ip - 6, MAX_INSN_SIZE))
/linux-master/arch/csky/include/asm/
H A Dkprobes.h14 #define MAX_INSN_SIZE 1 macro
/linux-master/arch/riscv/include/asm/
H A Dkprobes.h20 #define MAX_INSN_SIZE 2 macro
/linux-master/arch/arm64/include/asm/
H A Dkprobes.h19 #define MAX_INSN_SIZE 2 macro
/linux-master/arch/arc/include/asm/
H A Dkprobes.h18 #define MAX_INSN_SIZE 8 macro
/linux-master/arch/x86/tools/
H A Dinsn_sanity.c94 for (i = 0; i < MAX_INSN_SIZE; i++)
132 for (i = 0; i < MAX_INSN_SIZE; i++) {
148 /* Fills buffer with random binary up to MAX_INSN_SIZE */
149 for (i = 0; i < MAX_INSN_SIZE - 1; i += 2)
152 while (i < MAX_INSN_SIZE)
225 unsigned char insn_buff[MAX_INSN_SIZE * 2];
230 memset(insn_buff + MAX_INSN_SIZE, INSN_NOP, MAX_INSN_SIZE);
244 insn.kaddr + MAX_INSN_SIZE < insn.next_byte) {
/linux-master/arch/x86/events/
H A Dutils.c84 * MAX_INSN_SIZE bytes and if found, provide the offset between the
95 u8 buf[MAX_INSN_SIZE];
125 MAX_INSN_SIZE);
126 bytes_read = MAX_INSN_SIZE - bytes_left;
147 bytes_read = MAX_INSN_SIZE;
/linux-master/tools/perf/arch/x86/tests/
H A Dinsn-x86.c13 u8 data[MAX_INSN_SIZE];
106 ret = insn_decode(&insn, dat->data, MAX_INSN_SIZE,
122 if (intel_pt_get_insn(dat->data, MAX_INSN_SIZE, x86_64, &intel_pt_insn)) {
/linux-master/arch/arm/include/asm/
H A Dkprobes.h19 #define MAX_INSN_SIZE 2 macro
/linux-master/arch/powerpc/include/asm/
H A Dkprobes.h46 #define MAX_INSN_SIZE 2 macro
/linux-master/arch/s390/include/asm/
H A Dkprobes.h45 #define MAX_INSN_SIZE 0x0003 macro
/linux-master/arch/arm/probes/kprobes/
H A Dcore.c51 kprobe_opcode_t tmp_insn[MAX_INSN_SIZE];
95 for (is = 0; is < MAX_INSN_SIZE; ++is)
98 sizeof(p->ainsn.insn[0]) * MAX_INSN_SIZE);
/linux-master/arch/x86/boot/compressed/
H A Dsev.c79 char buffer[MAX_INSN_SIZE];
82 memcpy(buffer, (unsigned char *)ctxt->regs->ip, MAX_INSN_SIZE); local
84 ret = insn_decode(&ctxt->insn, buffer, MAX_INSN_SIZE, INSN_MODE_64);
/linux-master/tools/arch/x86/include/asm/
H A 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-master/arch/x86/kernel/kprobes/
H A Dcore.c239 MAX_INSN_SIZE * sizeof(kprobe_opcode_t)))
292 kprobe_opcode_t buf[MAX_INSN_SIZE];
406 kprobe_opcode_t buf[MAX_INSN_SIZE];
415 MAX_INSN_SIZE))
472 MAX_INSN_SIZE - len >= JMP32_INSN_SIZE) {
483 if (MAX_INSN_SIZE - len < INT3_INSN_SIZE)
759 kprobe_opcode_t buf[MAX_INSN_SIZE];
1049 (unsigned long)p->ainsn.insn + MAX_INSN_SIZE > regs->ip) {
/linux-master/arch/x86/lib/
H A Dinsn-eval.c1500 int insn_fetch_from_user(struct pt_regs *regs, unsigned char buf[MAX_INSN_SIZE])
1508 not_copied = copy_from_user(buf, (void __user *)ip, MAX_INSN_SIZE);
1510 return MAX_INSN_SIZE - not_copied;
1528 int insn_fetch_from_user_inatomic(struct pt_regs *regs, unsigned char buf[MAX_INSN_SIZE])
1536 not_copied = __copy_from_user_inatomic(buf, (void __user *)ip, MAX_INSN_SIZE);
1538 return MAX_INSN_SIZE - not_copied;
1556 unsigned char buf[MAX_INSN_SIZE], int buf_size)
/linux-master/arch/x86/coco/tdx/
H A Dtdx.c407 char buffer[MAX_INSN_SIZE];
417 if (copy_from_kernel_nofault(buffer, (void *)regs->ip, MAX_INSN_SIZE))
420 if (insn_decode(&insn, buffer, MAX_INSN_SIZE, INSN_MODE_64))

Completed in 231 milliseconds

12