Home
last modified time | relevance | path

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

/Linux-v5.10/arch/microblaze/kernel/
Dftrace.c72 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()
186 ret = ftrace_modify_code(ip, upper); in ftrace_update_ftrace_func()
187 ret += ftrace_modify_code(ip + 4, lower); in ftrace_update_ftrace_func()
190 ret += ftrace_modify_code((unsigned long)&ftrace_caller, in ftrace_update_ftrace_func()
205 ret = ftrace_modify_code(ip, MICROBLAZE_NOP); in ftrace_enable_ftrace_graph_caller()
[all …]
/Linux-v5.10/arch/csky/kernel/
Dftrace.c91 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()
147 return ftrace_modify_code(rec->ip, addr, true, true); in ftrace_modify_call()
194 return ftrace_modify_code((unsigned long)&ftrace_graph_call, in ftrace_enable_ftrace_graph_caller()
200 return ftrace_modify_code((unsigned long)&ftrace_graph_call, in ftrace_disable_ftrace_graph_caller()
/Linux-v5.10/arch/arm64/kernel/
Dftrace.c24 static int ftrace_modify_code(unsigned long pc, u32 old, u32 new, in ftrace_modify_code() function
62 return ftrace_modify_code(pc, 0, new, false); in ftrace_update_ftrace_func()
124 return ftrace_modify_code(pc, old, new, true); in ftrace_make_call()
138 return ftrace_modify_code(pc, old, new, true); in ftrace_modify_call()
172 return ftrace_modify_code(pc, old, new, true); in ftrace_init_nop()
230 return ftrace_modify_code(pc, old, new, validate); in ftrace_make_nop()
290 return ftrace_modify_code(pc, nop, branch, true); in ftrace_modify_graph_caller()
292 return ftrace_modify_code(pc, branch, nop, true); in ftrace_modify_graph_caller()
/Linux-v5.10/arch/sparc/kernel/
Dftrace.c26 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()
104 return ftrace_modify_code(ip, old, new); in ftrace_enable_ftrace_graph_caller()
115 return ftrace_modify_code(ip, old, new); in ftrace_disable_ftrace_graph_caller()
/Linux-v5.10/arch/arm/kernel/
Dftrace.c76 static int ftrace_modify_code(unsigned long pc, unsigned long old, in ftrace_modify_code() function
109 ret = ftrace_modify_code(pc, 0, new, false); in ftrace_update_ftrace_func()
116 ret = ftrace_modify_code(pc, 0, new, false); in ftrace_update_ftrace_func()
132 return ftrace_modify_code(rec->ip, old, new, true); in ftrace_make_call()
147 return ftrace_modify_code(rec->ip, old, new, true); in ftrace_modify_call()
162 ret = ftrace_modify_code(ip, old, new, true); in ftrace_make_nop()
207 return ftrace_modify_code(pc, old, new, true); in __ftrace_modify_caller()
/Linux-v5.10/arch/mips/kernel/
Dftrace.c73 static int ftrace_modify_code(unsigned long ip, unsigned int new_code) in ftrace_modify_code() function
186 return ftrace_modify_code(ip, new); in ftrace_make_nop()
207 return ftrace_modify_code(ip, new); in ftrace_make_call()
222 return ftrace_modify_code(FTRACE_CALL_IP, new); in ftrace_update_ftrace_func()
231 ftrace_modify_code(MCOUNT_ADDR, INSN_NOP); in ftrace_dyn_arch_init()
246 return ftrace_modify_code(FTRACE_GRAPH_CALL_IP, in ftrace_enable_ftrace_graph_caller()
252 return ftrace_modify_code(FTRACE_GRAPH_CALL_IP, INSN_NOP); in ftrace_disable_ftrace_graph_caller()
/Linux-v5.10/arch/nds32/kernel/
Dftrace.c147 static int ftrace_modify_code(unsigned long pc, unsigned long *old_insn, in ftrace_modify_code() function
170 return ftrace_modify_code(pc, old_insn, new_insn, false); in ftrace_update_ftrace_func()
181 return ftrace_modify_code(pc, nop_insn, call_insn, true); in ftrace_make_call()
193 return ftrace_modify_code(pc, call_insn, nop_insn, true); in ftrace_make_nop()
255 return ftrace_modify_code(pc, nop_insn, call_insn, true); in ftrace_modify_graph_caller()
257 return ftrace_modify_code(pc, call_insn, nop_insn, true); in ftrace_modify_graph_caller()
/Linux-v5.10/arch/sh/kernel/
Dftrace.c192 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-v5.10/arch/ia64/kernel/
Dftrace.c94 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-v5.10/arch/powerpc/kernel/trace/
Dftrace.c58 ftrace_modify_code(unsigned long ip, struct ppc_inst old, struct ppc_inst new) in ftrace_modify_code() function
450 return ftrace_modify_code(ip, old, new); in ftrace_make_nop()
689 return ftrace_modify_code(ip, old, new);
822 return ftrace_modify_code(ip, old, new);
856 ret = ftrace_modify_code(ip, old, new);
864 ret = ftrace_modify_code(ip, old, new);
941 return ftrace_modify_code(ip, old, new);
954 return ftrace_modify_code(ip, old, new);