Lines Matching refs:pc
71 static unsigned long ftrace_call_replace(unsigned long pc, unsigned long addr, in ftrace_call_replace() argument
74 return arm_gen_branch_link(pc, addr, warn); in ftrace_call_replace()
77 static int ftrace_modify_code(unsigned long pc, unsigned long old, in ftrace_modify_code() argument
88 if (copy_from_kernel_nofault(&replaced, (void *)pc, in ftrace_modify_code()
96 __patch_text((void *)pc, new); in ftrace_modify_code()
103 unsigned long pc; in ftrace_update_ftrace_func() local
107 pc = (unsigned long)&ftrace_call; in ftrace_update_ftrace_func()
108 new = ftrace_call_replace(pc, (unsigned long)func, true); in ftrace_update_ftrace_func()
110 ret = ftrace_modify_code(pc, 0, new, false); in ftrace_update_ftrace_func()
114 pc = (unsigned long)&ftrace_regs_call; in ftrace_update_ftrace_func()
115 new = ftrace_call_replace(pc, (unsigned long)func, true); in ftrace_update_ftrace_func()
117 ret = ftrace_modify_code(pc, 0, new, false); in ftrace_update_ftrace_func()
231 unsigned long pc = (unsigned long) callsite; in __ftrace_modify_caller() local
232 unsigned long branch = arm_gen_branch(pc, caller_fn); in __ftrace_modify_caller()
237 return ftrace_modify_code(pc, old, new, true); in __ftrace_modify_caller()