/Linux-v6.1/arch/microblaze/kernel/ |
D | ftrace.c | 72 static int ftrace_modify_code(unsigned long addr, unsigned int value) in ftrace_modify_code() function 144 ret = ftrace_modify_code(rec->ip, MICROBLAZE_NOP); in ftrace_make_nop() 145 ret += ftrace_modify_code(rec->ip + 4, MICROBLAZE_NOP); in ftrace_make_nop() 147 ret = ftrace_modify_code(rec->ip, MICROBLAZE_BRI); in ftrace_make_nop() 158 ret = ftrace_modify_code(rec->ip, imm); in ftrace_make_call() 161 ret += ftrace_modify_code(rec->ip + 4, bralid); in ftrace_make_call() 181 ret = ftrace_modify_code(ip, upper); in ftrace_update_ftrace_func() 182 ret += ftrace_modify_code(ip + 4, lower); in ftrace_update_ftrace_func() 185 ret += ftrace_modify_code((unsigned long)&ftrace_caller, in ftrace_update_ftrace_func() 200 ret = ftrace_modify_code(ip, MICROBLAZE_NOP); in ftrace_enable_ftrace_graph_caller() [all …]
|
/Linux-v6.1/arch/csky/kernel/ |
D | ftrace.c | 91 static int ftrace_modify_code(unsigned long hook, unsigned long target, in ftrace_modify_code() function 118 return ftrace_modify_code(rec->ip, addr, true, false); in ftrace_make_call() 124 return ftrace_modify_code(rec->ip, addr, false, false); in ftrace_make_nop() 129 int ret = ftrace_modify_code((unsigned long)&ftrace_call, in ftrace_update_ftrace_func() 132 ret = ftrace_modify_code((unsigned long)&ftrace_regs_call, in ftrace_update_ftrace_func() 142 return ftrace_modify_code(rec->ip, addr, true, true); in ftrace_modify_call() 189 return ftrace_modify_code((unsigned long)&ftrace_graph_call, in ftrace_enable_ftrace_graph_caller() 195 return ftrace_modify_code((unsigned long)&ftrace_graph_call, in ftrace_disable_ftrace_graph_caller()
|
/Linux-v6.1/arch/sparc/kernel/ |
D | ftrace.c | 26 static int ftrace_modify_code(unsigned long ip, u32 old, u32 new) in ftrace_modify_code() function 63 return ftrace_modify_code(ip, old, new); in ftrace_make_nop() 73 return ftrace_modify_code(ip, old, new); in ftrace_make_call() 83 return ftrace_modify_code(ip, old, new); in ftrace_update_ftrace_func() 99 return ftrace_modify_code(ip, old, new); in ftrace_enable_ftrace_graph_caller() 110 return ftrace_modify_code(ip, old, new); in ftrace_disable_ftrace_graph_caller()
|
/Linux-v6.1/arch/arm64/kernel/ |
D | ftrace.c | 25 static int ftrace_modify_code(unsigned long pc, u32 old, u32 new, in ftrace_modify_code() function 63 return ftrace_modify_code(pc, 0, new, false); in ftrace_update_ftrace_func() 154 return ftrace_modify_code(pc, old, new, true); in ftrace_make_call() 173 return ftrace_modify_code(pc, old, new, true); in ftrace_modify_call() 207 return ftrace_modify_code(pc, old, new, true); in ftrace_init_nop() 241 return ftrace_modify_code(pc, old, new, true); in ftrace_make_nop() 312 return ftrace_modify_code(pc, nop, branch, true); in ftrace_modify_graph_caller() 314 return ftrace_modify_code(pc, branch, nop, true); in ftrace_modify_graph_caller()
|
/Linux-v6.1/arch/arm/kernel/ |
D | ftrace.c | 98 static int ftrace_modify_code(unsigned long pc, unsigned long old, in ftrace_modify_code() function 131 ret = ftrace_modify_code(pc, 0, new, false); in ftrace_update_ftrace_func() 138 ret = ftrace_modify_code(pc, 0, new, false); in ftrace_update_ftrace_func() 166 return ftrace_modify_code(rec->ip, old, new, true); in ftrace_make_call() 181 return ftrace_modify_code(rec->ip, old, new, true); in ftrace_modify_call() 219 ret = ftrace_modify_code(ip, old, new, !is_kernel_inittext(ip)); in ftrace_make_nop() 278 return ftrace_modify_code(pc, old, new, true); in __ftrace_modify_caller()
|
/Linux-v6.1/arch/mips/kernel/ |
D | ftrace.c | 73 static int ftrace_modify_code(unsigned long ip, unsigned int new_code) in ftrace_modify_code() function 174 return ftrace_modify_code(ip, new); in ftrace_make_nop() 195 return ftrace_modify_code(ip, new); in ftrace_make_call() 210 return ftrace_modify_code(FTRACE_CALL_IP, new); in ftrace_update_ftrace_func() 219 ftrace_modify_code(MCOUNT_ADDR, INSN_NOP); in ftrace_dyn_arch_init() 234 return ftrace_modify_code(FTRACE_GRAPH_CALL_IP, in ftrace_enable_ftrace_graph_caller() 240 return ftrace_modify_code(FTRACE_GRAPH_CALL_IP, INSN_NOP); in ftrace_disable_ftrace_graph_caller()
|
/Linux-v6.1/arch/sh/kernel/ |
D | ftrace.c | 192 static int ftrace_modify_code(unsigned long ip, unsigned char *old_code, in ftrace_modify_code() function 230 return ftrace_modify_code(ip, old, new); in ftrace_update_ftrace_func() 242 return ftrace_modify_code(rec->ip, old, new); in ftrace_make_nop() 253 return ftrace_modify_code(rec->ip, old, new); in ftrace_make_call()
|
/Linux-v6.1/arch/ia64/kernel/ |
D | ftrace.c | 94 ftrace_modify_code(unsigned long ip, unsigned char *old_code, in ftrace_modify_code() function 169 return ftrace_modify_code(rec->ip, NULL, new, 0); in ftrace_make_nop() 179 return ftrace_modify_code(ip, old, new, 1); in ftrace_make_call()
|
/Linux-v6.1/arch/powerpc/kernel/trace/ |
D | ftrace.c | 54 ftrace_modify_code(unsigned long ip, ppc_inst_t old, ppc_inst_t new) in ftrace_modify_code() function 357 return ftrace_modify_code(ip, old, new); in ftrace_make_nop() 523 return ftrace_modify_code(ip, old, new); in ftrace_make_call() 654 return ftrace_modify_code(ip, old, new); in ftrace_modify_call() 686 ret = ftrace_modify_code(ip, old, new); in ftrace_update_ftrace_func() 693 ret = ftrace_modify_code(ip, old, new); in ftrace_update_ftrace_func() 780 return ftrace_modify_code(ip, old, new); in ftrace_modify_ftrace_graph_caller()
|