Lines Matching refs:pc
98 static unsigned long ftrace_call_replace(unsigned long pc, unsigned long addr) in ftrace_call_replace() argument
100 return arm_gen_branch_link(pc, addr); in ftrace_call_replace()
103 static int ftrace_modify_code(unsigned long pc, unsigned long old, in ftrace_modify_code() argument
117 if (probe_kernel_read(&replaced, (void *)pc, MCOUNT_INSN_SIZE)) in ftrace_modify_code()
124 if (probe_kernel_write((void *)pc, &new, MCOUNT_INSN_SIZE)) in ftrace_modify_code()
127 flush_icache_range(pc, pc + MCOUNT_INSN_SIZE); in ftrace_modify_code()
134 unsigned long pc; in ftrace_update_ftrace_func() local
138 pc = (unsigned long)&ftrace_call; in ftrace_update_ftrace_func()
139 new = ftrace_call_replace(pc, (unsigned long)func); in ftrace_update_ftrace_func()
141 ret = ftrace_modify_code(pc, 0, new, false); in ftrace_update_ftrace_func()
145 pc = (unsigned long)&ftrace_call_old; in ftrace_update_ftrace_func()
146 new = ftrace_call_replace(pc, (unsigned long)func); in ftrace_update_ftrace_func()
148 ret = ftrace_modify_code(pc, 0, new, false); in ftrace_update_ftrace_func()
238 unsigned long pc = (unsigned long) callsite; in __ftrace_modify_caller() local
239 unsigned long branch = arm_gen_branch(pc, caller_fn); in __ftrace_modify_caller()
244 return ftrace_modify_code(pc, old, new, true); in __ftrace_modify_caller()