/arch/microblaze/kernel/ |
D | ftrace.c | 80 static int ftrace_modify_code(unsigned long addr, unsigned int value) in ftrace_modify_code() function 152 ret = ftrace_modify_code(rec->ip, MICROBLAZE_NOP); in ftrace_make_nop() 153 ret += ftrace_modify_code(rec->ip + 4, MICROBLAZE_NOP); in ftrace_make_nop() 155 ret = ftrace_modify_code(rec->ip, MICROBLAZE_BRI); in ftrace_make_nop() 166 ret = ftrace_modify_code(rec->ip, imm); in ftrace_make_call() 169 ret += ftrace_modify_code(rec->ip + 4, bralid); in ftrace_make_call() 197 ret = ftrace_modify_code(ip, upper); in ftrace_update_ftrace_func() 198 ret += ftrace_modify_code(ip + 4, lower); in ftrace_update_ftrace_func() 201 ret += ftrace_modify_code((unsigned long)&ftrace_caller, in ftrace_update_ftrace_func() 216 ret = ftrace_modify_code(ip, MICROBLAZE_NOP); in ftrace_enable_ftrace_graph_caller() [all …]
|
/arch/blackfin/kernel/ |
D | ftrace.c | 33 static int ftrace_modify_code(unsigned long ip, const unsigned char *code, in ftrace_modify_code() function 45 return ftrace_modify_code(rec->ip, mnop, sizeof(mnop)); in ftrace_make_nop() 57 return ftrace_modify_code(rec->ip, call, sizeof(call)); in ftrace_make_call() 65 return ftrace_modify_code(ip, call, sizeof(call)); in ftrace_update_ftrace_func() 89 return ftrace_modify_code(ip, (void *)&jump_pcrel12, sizeof(jump_pcrel12)); in ftrace_enable_ftrace_graph_caller() 94 return ftrace_modify_code((unsigned long)&ftrace_graph_call, empty_zero_page, 2); in ftrace_disable_ftrace_graph_caller()
|
/arch/sparc/kernel/ |
D | ftrace.c | 25 static int ftrace_modify_code(unsigned long ip, u32 old, u32 new) in ftrace_modify_code() function 62 return ftrace_modify_code(ip, old, new); in ftrace_make_nop() 72 return ftrace_modify_code(ip, old, new); in ftrace_make_call() 82 return ftrace_modify_code(ip, old, new); in ftrace_update_ftrace_func() 107 return ftrace_modify_code(ip, old, new); in ftrace_enable_ftrace_graph_caller() 118 return ftrace_modify_code(ip, old, new); in ftrace_disable_ftrace_graph_caller()
|
/arch/arm/kernel/ |
D | ftrace.c | 86 static int ftrace_modify_code(unsigned long pc, unsigned long old, in ftrace_modify_code() function 124 ret = ftrace_modify_code(pc, 0, new, false); in ftrace_update_ftrace_func() 131 ret = ftrace_modify_code(pc, 0, new, false); in ftrace_update_ftrace_func() 146 return ftrace_modify_code(rec->ip, old, new, true); in ftrace_make_call() 159 ret = ftrace_modify_code(ip, old, new, true); in ftrace_make_nop() 167 ret = ftrace_modify_code(ip, old, new, true); in ftrace_make_nop() 229 return ftrace_modify_code(pc, old, new, true); in __ftrace_modify_caller()
|
/arch/mips/kernel/ |
D | ftrace.c | 80 static int ftrace_modify_code(unsigned long ip, unsigned int new_code) in ftrace_modify_code() function 138 return ftrace_modify_code(ip, new); in ftrace_make_nop() 149 return ftrace_modify_code(ip, new); in ftrace_make_call() 160 return ftrace_modify_code(FTRACE_CALL_IP, new); in ftrace_update_ftrace_func() 169 ftrace_modify_code(MCOUNT_ADDR, INSN_NOP); in ftrace_dyn_arch_init() 187 return ftrace_modify_code(FTRACE_GRAPH_CALL_IP, in ftrace_enable_ftrace_graph_caller() 193 return ftrace_modify_code(FTRACE_GRAPH_CALL_IP, INSN_NOP); in ftrace_disable_ftrace_graph_caller()
|
/arch/sh/kernel/ |
D | ftrace.c | 209 static int ftrace_modify_code(unsigned long ip, unsigned char *old_code, in ftrace_modify_code() function 249 return ftrace_modify_code(ip, old, new); in ftrace_update_ftrace_func() 261 return ftrace_modify_code(rec->ip, old, new); in ftrace_make_nop() 272 return ftrace_modify_code(rec->ip, old, new); in ftrace_make_call()
|
/arch/ia64/kernel/ |
D | ftrace.c | 94 ftrace_modify_code(unsigned long ip, unsigned char *old_code, in ftrace_modify_code() function 171 return ftrace_modify_code(rec->ip, NULL, new, 0); in ftrace_make_nop() 181 return ftrace_modify_code(ip, old, new, 1); in ftrace_make_call()
|
/arch/powerpc/kernel/ |
D | ftrace.c | 43 ftrace_modify_code(unsigned long ip, unsigned int old, unsigned int new) in ftrace_modify_code() function 314 return ftrace_modify_code(ip, old, new); in ftrace_make_nop() 453 return ftrace_modify_code(ip, old, new); in ftrace_make_call() 482 ret = ftrace_modify_code(ip, old, new); in ftrace_update_ftrace_func() 514 return ftrace_modify_code(ip, old, new); in ftrace_enable_ftrace_graph_caller() 527 return ftrace_modify_code(ip, old, new); in ftrace_disable_ftrace_graph_caller()
|
/arch/x86/kernel/ |
D | ftrace.c | 269 ftrace_modify_code(unsigned long ip, unsigned const char *old_code, in ftrace_modify_code() function 310 return ftrace_modify_code(rec->ip, old, new); in ftrace_make_nop() 321 return ftrace_modify_code(rec->ip, old, new); in ftrace_make_call() 332 ret = ftrace_modify_code(ip, old, new); in ftrace_update_ftrace_func()
|