Home
last modified time | relevance | path

Searched refs:ftrace_modify_code (Results 1 – 9 of 9) sorted by relevance

/linux-2.6.39/arch/microblaze/kernel/
Dftrace.c80 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 …]
/linux-2.6.39/arch/blackfin/kernel/
Dftrace.c33 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()
/linux-2.6.39/arch/sparc/kernel/
Dftrace.c25 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()
/linux-2.6.39/arch/mips/kernel/
Dftrace.c71 static int ftrace_modify_code(unsigned long ip, unsigned int new_code) in ftrace_modify_code() function
134 return ftrace_modify_code(ip, new); in ftrace_make_nop()
145 return ftrace_modify_code(ip, new); in ftrace_make_call()
156 return ftrace_modify_code(FTRACE_CALL_IP, new); in ftrace_update_ftrace_func()
165 ftrace_modify_code(MCOUNT_ADDR, INSN_NOP); in ftrace_dyn_arch_init()
183 return ftrace_modify_code(FTRACE_GRAPH_CALL_IP, in ftrace_enable_ftrace_graph_caller()
189 return ftrace_modify_code(FTRACE_GRAPH_CALL_IP, INSN_NOP); in ftrace_disable_ftrace_graph_caller()
/linux-2.6.39/arch/arm/kernel/
Dftrace.c123 static int ftrace_modify_code(unsigned long pc, unsigned long old, in ftrace_modify_code() function
152 ret = ftrace_modify_code(pc, old, new); in ftrace_update_ftrace_func()
160 ret = ftrace_modify_code(pc, old, new); in ftrace_update_ftrace_func()
175 return ftrace_modify_code(rec->ip, old, new); in ftrace_make_call()
188 ret = ftrace_modify_code(ip, old, new); in ftrace_make_nop()
196 ret = ftrace_modify_code(ip, old, new); in ftrace_make_nop()
257 return ftrace_modify_code(pc, old, new); in __ftrace_modify_caller()
/linux-2.6.39/arch/sh/kernel/
Dftrace.c209 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()
/linux-2.6.39/arch/powerpc/kernel/
Dftrace.c42 ftrace_modify_code(unsigned long ip, unsigned int old, unsigned int new) in ftrace_modify_code() function
313 return ftrace_modify_code(ip, old, new); in ftrace_make_nop()
452 return ftrace_modify_code(ip, old, new); in ftrace_make_call()
481 ret = ftrace_modify_code(ip, old, new); in ftrace_update_ftrace_func()
513 return ftrace_modify_code(ip, old, new); in ftrace_enable_ftrace_graph_caller()
526 return ftrace_modify_code(ip, old, new); in ftrace_disable_ftrace_graph_caller()
/linux-2.6.39/arch/x86/kernel/
Dftrace.c269 ftrace_modify_code(unsigned long ip, unsigned 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()
/linux-2.6.39/arch/ia64/kernel/
Dftrace.c94 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()