| /arch/sh/kernel/ |
| A D | ftrace.c | 27 static unsigned char ftrace_replaced_code[MCOUNT_INSN_SIZE]; 50 __raw_writel(ip + MCOUNT_INSN_SIZE, ftrace_nop); in ftrace_nop_replace() 123 MCOUNT_INSN_SIZE); in ftrace_mod_code() 195 unsigned char replaced[MCOUNT_INSN_SIZE]; in ftrace_modify_code() 206 if (copy_from_kernel_nofault(replaced, (void *)ip, MCOUNT_INSN_SIZE)) in ftrace_modify_code() 210 if (memcmp(replaced, old_code, MCOUNT_INSN_SIZE) != 0) in ftrace_modify_code() 217 flush_icache_range(ip, ip + MCOUNT_INSN_SIZE); in ftrace_modify_code() 225 unsigned char old[MCOUNT_INSN_SIZE], *new; in ftrace_update_ftrace_func() 227 memcpy(old, (unsigned char *)ip, MCOUNT_INSN_SIZE); in ftrace_update_ftrace_func() 264 unsigned char code[MCOUNT_INSN_SIZE]; in ftrace_mod() [all …]
|
| /arch/csky/kernel/probes/ |
| A D | ftrace.c | 25 p = get_kprobe((kprobe_opcode_t *)(ip - MCOUNT_INSN_SIZE)); in kprobe_ftrace_handler() 38 ip -= MCOUNT_INSN_SIZE; in kprobe_ftrace_handler() 48 (unsigned long)p->addr + MCOUNT_INSN_SIZE); in kprobe_ftrace_handler()
|
| /arch/x86/kernel/ |
| A D | ftrace.c | 82 char cur_code[MCOUNT_INSN_SIZE]; in ftrace_verify_code() 92 if (copy_from_kernel_nofault(cur_code, (void *)ip, MCOUNT_INSN_SIZE)) { in ftrace_verify_code() 98 if (memcmp(cur_code, old_code, MCOUNT_INSN_SIZE) != 0) { in ftrace_verify_code() 122 smp_text_poke_batch_add((void *)ip, new_code, MCOUNT_INSN_SIZE, NULL); in ftrace_modify_code_direct() 124 text_poke_early((void *)ip, new_code, MCOUNT_INSN_SIZE); in ftrace_modify_code_direct() 189 smp_text_poke_single((void *)ip, new, MCOUNT_INSN_SIZE, NULL); in ftrace_update_ftrace_func() 193 smp_text_poke_single((void *)ip, new, MCOUNT_INSN_SIZE, NULL); in ftrace_update_ftrace_func() 250 smp_text_poke_batch_add((void *)rec->ip, new, MCOUNT_INSN_SIZE, NULL); in ftrace_replace_code() 495 smp_text_poke_single((void *)ip, new, MCOUNT_INSN_SIZE, NULL); in arch_ftrace_update_trampoline() 589 smp_text_poke_single((void *)ip, new, MCOUNT_INSN_SIZE, NULL); in ftrace_mod_jmp()
|
| A D | ftrace_32.S | 62 subl $MCOUNT_INSN_SIZE, %eax 134 subl $MCOUNT_INSN_SIZE, %eax 180 subl $MCOUNT_INSN_SIZE, %eax
|
| /arch/powerpc/kernel/ |
| A D | kprobes-ftrace.c | 44 regs_add_return_ip(regs, -MCOUNT_INSN_SIZE); in kprobe_ftrace_handler() 53 regs_add_return_ip(regs, MCOUNT_INSN_SIZE); in kprobe_ftrace_handler()
|
| /arch/powerpc/kernel/trace/ |
| A D | ftrace.c | 42 addr += MCOUNT_INSN_SIZE; in ftrace_call_adjust() 44 addr += MCOUNT_INSN_SIZE; in ftrace_call_adjust() 147 ip = ftrace_get_ool_stub(rec) + MCOUNT_INSN_SIZE; /* second instruction in stub */ in ftrace_get_call_inst() 238 !is_offset_in_branch_range((long)(rec->ip + MCOUNT_INSN_SIZE) - in ftrace_init_ool_stub() 259 inst = ftrace_create_branch_inst(ftrace_get_ool_stub(rec) + MCOUNT_INSN_SIZE, in ftrace_init_ool_stub() 265 if (!ret && create_branch(&inst, &ool_stub->insn[3], rec->ip + MCOUNT_INSN_SIZE, 0)) in ftrace_init_ool_stub() 301 return patch_ulong((void *)(rec->ip - MCOUNT_INSN_SIZE - sizeof(unsigned long)), in ftrace_rec_set_ops() 340 ip = ftrace_get_ool_stub(rec) + MCOUNT_INSN_SIZE; /* second instruction in stub */ in ftrace_make_call() 391 ip = ftrace_get_ool_stub(rec) + MCOUNT_INSN_SIZE; in ftrace_replace_code()
|
| A D | ftrace_entry.S | 51 PPC_LL r12, -(MCOUNT_INSN_SIZE*2 + SZL)(r11) 111 PPC_LL r5, -(MCOUNT_INSN_SIZE*2 + SZL)(r11) 152 lwz r8, MCOUNT_INSN_SIZE(r11) 160 addi r11, r3, MCOUNT_INSN_SIZE 163 subi r3, r11, MCOUNT_INSN_SIZE
|
| A D | ftrace_64_pg_entry.S | 24 subi r3, r3, MCOUNT_INSN_SIZE 47 subi r4, r4, MCOUNT_INSN_SIZE
|
| /arch/xtensa/kernel/ |
| A D | mcount.S | 46 addi a6, a6, -MCOUNT_INSN_SIZE 67 addi a2, a10, -MCOUNT_INSN_SIZE
|
| /arch/microblaze/include/asm/ |
| A D | ftrace.h | 8 #define MCOUNT_INSN_SIZE 8 /* sizeof mcount call */ macro
|
| /arch/xtensa/include/asm/ |
| A D | ftrace.h | 23 #define MCOUNT_INSN_SIZE 3 macro
|
| /arch/csky/include/asm/ |
| A D | ftrace.h | 6 #define MCOUNT_INSN_SIZE 14 macro
|
| /arch/sparc/include/asm/ |
| A D | ftrace.h | 7 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|
| /arch/parisc/include/asm/ |
| A D | ftrace.h | 9 #define MCOUNT_INSN_SIZE 4 macro
|
| /arch/sh/include/asm/ |
| A D | ftrace.h | 7 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|
| /arch/arm/include/asm/ |
| A D | ftrace.h | 13 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|
| /arch/riscv/kernel/ |
| A D | ftrace.c | 63 if (copy_from_kernel_nofault(replaced, (void *)source, 2 * MCOUNT_INSN_SIZE)) in __ftrace_modify_call() 172 ret = patch_insn_write((void *)pc, nops, 2 * MCOUNT_INSN_SIZE); in ftrace_init_nop()
|
| /arch/x86/kernel/kprobes/ |
| A D | ftrace.c | 53 instruction_pointer_set(regs, ip + MCOUNT_INSN_SIZE); in kprobe_ftrace_handler()
|
| /arch/loongarch/include/asm/ |
| A D | ftrace.h | 15 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|
| /arch/mips/include/asm/ |
| A D | ftrace.h | 16 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|
| /arch/x86/include/asm/ |
| A D | ftrace.h | 12 #define MCOUNT_INSN_SIZE 5 /* sizeof mcount call */ macro
|
| /arch/s390/include/asm/ |
| A D | ftrace.h | 6 #define MCOUNT_INSN_SIZE 6 macro
|
| /arch/powerpc/include/asm/ |
| A D | ftrace.h | 9 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|
| /arch/arm64/include/asm/ |
| A D | ftrace.h | 22 #define MCOUNT_INSN_SIZE AARCH64_INSN_SIZE macro
|
| /arch/csky/kernel/ |
| A D | ftrace.c | 106 flush_icache_range(hook_pos, hook_pos + MCOUNT_INSN_SIZE); in ftrace_modify_code()
|