Lines Matching defs:ip
14 static u32 ftrace_call_replace(unsigned long ip, unsigned long addr)
19 off = ((s32)addr - (s32)ip);
25 static int ftrace_modify_code(unsigned long ip, u32 old, u32 new)
31 "1: cas [%[ip]], %[old], %[new]\n"
32 " flush %[ip]\n"
46 : [new] "0" (new), [old] "r" (old), [ip] "r" (ip)
57 unsigned long ip = rec->ip;
60 old = ftrace_call_replace(ip, addr);
62 return ftrace_modify_code(ip, old, new);
67 unsigned long ip = rec->ip;
71 new = ftrace_call_replace(ip, addr);
72 return ftrace_modify_code(ip, old, new);
77 unsigned long ip = (unsigned long)(&ftrace_call);
81 new = ftrace_call_replace(ip, (unsigned long)func);
82 return ftrace_modify_code(ip, old, new);
102 unsigned long ip = (unsigned long)(&ftrace_graph_call);
106 new = ftrace_call_replace(ip, (unsigned long) &ftrace_graph_caller);
107 return ftrace_modify_code(ip, old, new);
112 unsigned long ip = (unsigned long)(&ftrace_graph_call);
116 new = ftrace_call_replace(ip, (unsigned long) &ftrace_stub);
118 return ftrace_modify_code(ip, old, new);