Lines Matching defs:old
81 static inline int ftrace_modify_code(unsigned long ip, ppc_inst_t old, ppc_inst_t new)
83 int ret = ftrace_validate_inst(ip, old);
149 ppc_inst_t old, new;
156 old = ppc_inst(PPC_RAW_NOP());
161 return ftrace_modify_code(rec->ip, old, new);
176 ppc_inst_t old, new, call_inst, new_call_inst;
201 old = call_inst;
206 old = call_inst;
211 old = nop_inst;
217 ret = ftrace_modify_code(ip, old, new);
231 ppc_inst_t old, new;
247 ret = ftrace_read_inst(ip - 4, &old);
248 if (!ret && !ppc_inst_equal(old, ppc_inst(PPC_RAW_MFLR(_R0)))) {
272 old = ppc_inst(PPC_RAW_NOP());
274 ret = ftrace_modify_code(ip - 4, old, new);
277 old = ftrace_create_branch_inst(ip, addr, 1);
278 ret = ftrace_modify_code(ip, old, new);
284 ret = ftrace_read_inst(ip, &old);
287 if (!is_bl_op(old)) {
288 pr_err("0x%lx: expected (bl) != found (%08lx)\n", ip, ppc_inst_as_ulong(old));
302 ppc_inst_t old, new;
305 old = ppc_inst_read((u32 *)&ftrace_call);
307 ret = ftrace_modify_code(ip, old, new);
312 old = ppc_inst_read((u32 *)&ftrace_regs_call);
314 ret = ftrace_modify_code(ip, old, new);