Lines Matching refs:pc
25 static int ftrace_modify_code(unsigned long pc, u32 old, u32 new, in ftrace_modify_code() argument
40 if (aarch64_insn_read((void *)pc, &replaced)) in ftrace_modify_code()
46 if (aarch64_insn_patch_text_nosync((void *)pc, new)) in ftrace_modify_code()
57 unsigned long pc; in ftrace_update_ftrace_func() local
60 pc = (unsigned long)&ftrace_call; in ftrace_update_ftrace_func()
61 new = aarch64_insn_gen_branch_imm(pc, (unsigned long)func, in ftrace_update_ftrace_func()
64 return ftrace_modify_code(pc, 0, new, false); in ftrace_update_ftrace_func()
72 unsigned long pc = rec->ip; in ftrace_make_call() local
76 new = aarch64_insn_gen_branch_imm(pc, addr, AARCH64_INSN_BRANCH_LINK); in ftrace_make_call()
78 return ftrace_modify_code(pc, old, new, true); in ftrace_make_call()
87 unsigned long pc = rec->ip; in ftrace_make_nop() local
90 old = aarch64_insn_gen_branch_imm(pc, addr, AARCH64_INSN_BRANCH_LINK); in ftrace_make_nop()
93 return ftrace_modify_code(pc, old, new, true); in ftrace_make_nop()
154 unsigned long pc = (unsigned long)&ftrace_graph_call; in ftrace_modify_graph_caller() local
157 branch = aarch64_insn_gen_branch_imm(pc, in ftrace_modify_graph_caller()
163 return ftrace_modify_code(pc, nop, branch, true); in ftrace_modify_graph_caller()
165 return ftrace_modify_code(pc, branch, nop, true); in ftrace_modify_graph_caller()