/linux-5.19.10/arch/ia64/kernel/ ! |
D | ftrace.c | 22 ftrace_orig_code[MCOUNT_INSN_SIZE] = { 41 static unsigned char ftrace_nop_code[MCOUNT_INSN_SIZE] = { 60 ftrace_call_code[MCOUNT_INSN_SIZE] = { 97 unsigned char replaced[MCOUNT_INSN_SIZE]; in ftrace_modify_code() 111 if (copy_from_kernel_nofault(replaced, (void *)ip, MCOUNT_INSN_SIZE)) in ftrace_modify_code() 115 if (memcmp(replaced, old_code, MCOUNT_INSN_SIZE) != 0) in ftrace_modify_code() 120 if (copy_to_kernel_nofault(((void *)ip), new_code, MCOUNT_INSN_SIZE)) in ftrace_modify_code() 122 flush_icache_range(ip, ip + MCOUNT_INSN_SIZE); in ftrace_modify_code() 129 unsigned char __attribute__((aligned(8))) replaced[MCOUNT_INSN_SIZE]; in ftrace_make_nop_check() 132 if (copy_from_kernel_nofault(replaced, (void *)ip, MCOUNT_INSN_SIZE)) in ftrace_make_nop_check() [all …]
|
/linux-5.19.10/arch/sh/kernel/ ! |
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 …]
|
/linux-5.19.10/arch/x86/kernel/ ! |
D | ftrace.c | 77 char cur_code[MCOUNT_INSN_SIZE]; in ftrace_verify_code() 87 if (copy_from_kernel_nofault(cur_code, (void *)ip, MCOUNT_INSN_SIZE)) { in ftrace_verify_code() 93 if (memcmp(cur_code, old_code, MCOUNT_INSN_SIZE) != 0) { in ftrace_verify_code() 117 text_poke_queue((void *)ip, new_code, MCOUNT_INSN_SIZE, NULL); in ftrace_modify_code_direct() 119 text_poke_early((void *)ip, new_code, MCOUNT_INSN_SIZE); in ftrace_modify_code_direct() 184 text_poke_bp((void *)ip, new, MCOUNT_INSN_SIZE, NULL); in ftrace_update_ftrace_func() 188 text_poke_bp((void *)ip, new, MCOUNT_INSN_SIZE, NULL); in ftrace_update_ftrace_func() 243 text_poke_queue((void *)rec->ip, new, MCOUNT_INSN_SIZE, NULL); in ftrace_replace_code() 499 text_poke_bp((void *)ip, new, MCOUNT_INSN_SIZE, NULL); in arch_ftrace_update_trampoline() 596 text_poke_bp((void *)ip, new, MCOUNT_INSN_SIZE, NULL); in ftrace_mod_jmp()
|
D | ftrace_32.S | 62 subl $MCOUNT_INSN_SIZE, %eax 134 subl $MCOUNT_INSN_SIZE, %eax 175 subl $MCOUNT_INSN_SIZE, %eax
|
/linux-5.19.10/arch/csky/kernel/probes/ ! |
D | ftrace.c | 22 p = get_kprobe((kprobe_opcode_t *)(ip - MCOUNT_INSN_SIZE)); in kprobe_ftrace_handler() 35 ip -= MCOUNT_INSN_SIZE; in kprobe_ftrace_handler() 45 (unsigned long)p->addr + MCOUNT_INSN_SIZE); in kprobe_ftrace_handler()
|
/linux-5.19.10/arch/powerpc/kernel/ ! |
D | kprobes-ftrace.c | 41 regs_add_return_ip(regs, -MCOUNT_INSN_SIZE); in kprobe_ftrace_handler() 50 regs_add_return_ip(regs, MCOUNT_INSN_SIZE); in kprobe_ftrace_handler()
|
/linux-5.19.10/arch/powerpc/kernel/trace/ ! |
D | ftrace_64_pg.S | 24 subi r3, r3, MCOUNT_INSN_SIZE 47 subi r4, r4, MCOUNT_INSN_SIZE
|
/linux-5.19.10/arch/xtensa/kernel/ ! |
D | mcount.S | 46 addi a6, a6, -MCOUNT_INSN_SIZE 67 addi a2, a10, -MCOUNT_INSN_SIZE
|
/linux-5.19.10/kernel/trace/ ! |
D | fgraph.c | 114 #ifndef MCOUNT_INSN_SIZE 117 # error MCOUNT_INSN_SIZE not defined with direct calls enabled 119 # define MCOUNT_INSN_SIZE 0 macro 135 ftrace_find_rec_direct(ret - MCOUNT_INSN_SIZE)) in function_graph_enter()
|
D | trace_stack.c | 287 #ifndef MCOUNT_INSN_SIZE 288 # define MCOUNT_INSN_SIZE 0 macro 308 ip += MCOUNT_INSN_SIZE; in stack_trace_call()
|
/linux-5.19.10/arch/riscv/kernel/ ! |
D | ftrace.c | 40 MCOUNT_INSN_SIZE)) in ftrace_check_current_call() 67 ((void *)hook_pos, enable ? call : nops, MCOUNT_INSN_SIZE)) in __ftrace_modify_call()
|
/linux-5.19.10/arch/microblaze/include/asm/ ! |
D | ftrace.h | 8 #define MCOUNT_INSN_SIZE 8 /* sizeof mcount call */ macro
|
/linux-5.19.10/arch/csky/include/asm/ ! |
D | ftrace.h | 6 #define MCOUNT_INSN_SIZE 14 macro
|
/linux-5.19.10/arch/sparc/include/asm/ ! |
D | ftrace.h | 7 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|
/linux-5.19.10/arch/parisc/include/asm/ ! |
D | ftrace.h | 9 #define MCOUNT_INSN_SIZE 4 macro
|
/linux-5.19.10/arch/ia64/include/asm/ ! |
D | ftrace.h | 6 #define MCOUNT_INSN_SIZE 32 /* sizeof mcount call */ macro
|
/linux-5.19.10/arch/xtensa/include/asm/ ! |
D | ftrace.h | 32 #define MCOUNT_INSN_SIZE 3 macro
|
/linux-5.19.10/arch/sh/include/asm/ ! |
D | ftrace.h | 7 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|
/linux-5.19.10/arch/arm/include/asm/ ! |
D | ftrace.h | 13 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|
/linux-5.19.10/arch/arm64/include/asm/ ! |
D | ftrace.h | 33 #define MCOUNT_INSN_SIZE AARCH64_INSN_SIZE macro
|
/linux-5.19.10/arch/riscv/include/asm/ ! |
D | ftrace.h | 78 #define MCOUNT_INSN_SIZE 8 macro
|
/linux-5.19.10/arch/s390/kernel/ ! |
D | ftrace.c | 268 ip -= MCOUNT_INSN_SIZE; in prepare_ftrace_return() 342 instruction_pointer_set(regs, ip + MCOUNT_INSN_SIZE); in kprobe_ftrace_handler()
|
/linux-5.19.10/arch/mips/include/asm/ ! |
D | ftrace.h | 16 #define MCOUNT_INSN_SIZE 4 /* sizeof mcount call */ macro
|
/linux-5.19.10/arch/x86/kernel/kprobes/ ! |
D | ftrace.c | 47 regs->ip = (unsigned long)p->addr + MCOUNT_INSN_SIZE; in kprobe_ftrace_handler()
|
/linux-5.19.10/arch/riscv/kernel/probes/ ! |
D | ftrace.c | 39 (unsigned long)p->addr + MCOUNT_INSN_SIZE); in kprobe_ftrace_handler()
|