/linux-master/arch/sparc/include/asm/ |
H A D | ftrace.h | 7 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|
/linux-master/arch/xtensa/include/asm/ |
H A D | ftrace.h | 23 #define MCOUNT_INSN_SIZE 3 macro
|
/linux-master/arch/csky/include/asm/ |
H A D | ftrace.h | 6 #define MCOUNT_INSN_SIZE 14 macro
|
/linux-master/arch/microblaze/include/asm/ |
H A D | ftrace.h | 8 #define MCOUNT_INSN_SIZE 8 /* sizeof mcount call */ macro
|
/linux-master/arch/sh/kernel/ |
H A D | ftrace.c | 27 static unsigned char ftrace_replaced_code[MCOUNT_INSN_SIZE]; 43 * 8c011070: 26 4f lds.l @r15+,pr <--- ip + MCOUNT_INSN_SIZE 50 __raw_writel(ip + MCOUNT_INSN_SIZE, ftrace_nop); 123 MCOUNT_INSN_SIZE); 195 unsigned char replaced[MCOUNT_INSN_SIZE]; 206 if (copy_from_kernel_nofault(replaced, (void *)ip, MCOUNT_INSN_SIZE)) 210 if (memcmp(replaced, old_code, MCOUNT_INSN_SIZE) != 0) 217 flush_icache_range(ip, ip + MCOUNT_INSN_SIZE); 225 unsigned char old[MCOUNT_INSN_SIZE], *new; 227 memcpy(old, (unsigned char *)ip, MCOUNT_INSN_SIZE); [all...] |
/linux-master/arch/parisc/include/asm/ |
H A D | ftrace.h | 9 #define MCOUNT_INSN_SIZE 4 macro
|
/linux-master/arch/sh/include/asm/ |
H A D | ftrace.h | 7 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|
/linux-master/arch/csky/kernel/probes/ |
H A D | ftrace.c | 22 p = get_kprobe((kprobe_opcode_t *)(ip - MCOUNT_INSN_SIZE)); 35 ip -= MCOUNT_INSN_SIZE; 45 (unsigned long)p->addr + MCOUNT_INSN_SIZE);
|
/linux-master/arch/arm/include/asm/ |
H A D | ftrace.h | 13 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|
/linux-master/arch/riscv/kernel/ |
H A D | ftrace.c | 49 MCOUNT_INSN_SIZE)) 79 ((void *)hook_pos, enable ? call : nops, MCOUNT_INSN_SIZE)) 91 if (patch_text_nosync((void *)rec->ip, call, MCOUNT_INSN_SIZE)) 102 if (patch_text_nosync((void *)rec->ip, nops, MCOUNT_INSN_SIZE))
|
/linux-master/arch/powerpc/kernel/ |
H A D | kprobes-ftrace.c | 41 regs_add_return_ip(regs, -MCOUNT_INSN_SIZE); 50 regs_add_return_ip(regs, MCOUNT_INSN_SIZE);
|
/linux-master/arch/xtensa/kernel/ |
H A D | mcount.S | 46 addi a6, a6, -MCOUNT_INSN_SIZE 67 addi a2, a10, -MCOUNT_INSN_SIZE
|
/linux-master/arch/x86/kernel/ |
H A D | ftrace.c | 81 char cur_code[MCOUNT_INSN_SIZE]; 91 if (copy_from_kernel_nofault(cur_code, (void *)ip, MCOUNT_INSN_SIZE)) { 97 if (memcmp(cur_code, old_code, MCOUNT_INSN_SIZE) != 0) { 121 text_poke_queue((void *)ip, new_code, MCOUNT_INSN_SIZE, NULL); 123 text_poke_early((void *)ip, new_code, MCOUNT_INSN_SIZE); 188 text_poke_bp((void *)ip, new, MCOUNT_INSN_SIZE, NULL); 192 text_poke_bp((void *)ip, new, MCOUNT_INSN_SIZE, NULL); 249 text_poke_queue((void *)rec->ip, new, MCOUNT_INSN_SIZE, NULL); 505 text_poke_bp((void *)ip, new, MCOUNT_INSN_SIZE, NULL); 599 text_poke_bp((void *)ip, new, MCOUNT_INSN_SIZE, NUL [all...] |
H A D | ftrace_32.S | 62 subl $MCOUNT_INSN_SIZE, %eax 134 subl $MCOUNT_INSN_SIZE, %eax 180 subl $MCOUNT_INSN_SIZE, %eax
|
/linux-master/arch/powerpc/kernel/trace/ |
H A D | ftrace_64_pg_entry.S | 24 subi r3, r3, MCOUNT_INSN_SIZE 47 subi r4, r4, MCOUNT_INSN_SIZE
|
/linux-master/arch/riscv/kernel/probes/ |
H A D | ftrace.c | 39 (unsigned long)p->addr + MCOUNT_INSN_SIZE);
|
/linux-master/arch/x86/kernel/kprobes/ |
H A D | ftrace.c | 47 regs->ip = (unsigned long)p->addr + MCOUNT_INSN_SIZE;
|
/linux-master/arch/mips/include/asm/ |
H A D | ftrace.h | 16 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|
/linux-master/arch/arm64/include/asm/ |
H A D | ftrace.h | 33 #define MCOUNT_INSN_SIZE AARCH64_INSN_SIZE macro
|
/linux-master/arch/loongarch/include/asm/ |
H A D | ftrace.h | 15 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|
/linux-master/arch/riscv/include/asm/ |
H A D | ftrace.h | 120 #define MCOUNT_INSN_SIZE 8 macro
|
/linux-master/kernel/trace/ |
H A D | trace_stack.c | 286 /* Some archs may not define MCOUNT_INSN_SIZE */ 287 #ifndef MCOUNT_INSN_SIZE 288 # define MCOUNT_INSN_SIZE 0 macro 308 ip += MCOUNT_INSN_SIZE;
|
H A D | fgraph.c | 110 * Not all archs define MCOUNT_INSN_SIZE which is used to look for direct 113 * Define MCOUNT_INSN_SIZE to keep those archs compiling. 115 #ifndef MCOUNT_INSN_SIZE 118 # error MCOUNT_INSN_SIZE not defined with direct calls enabled 120 # define MCOUNT_INSN_SIZE 0 macro 136 ftrace_find_rec_direct(ret - MCOUNT_INSN_SIZE))
|
/linux-master/arch/x86/include/asm/ |
H A D | ftrace.h | 10 #define MCOUNT_INSN_SIZE 5 /* sizeof mcount call */ macro
|
/linux-master/arch/powerpc/include/asm/ |
H A D | ftrace.h | 9 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|