Lines Matching refs:ip
21 static inline int in_module(unsigned long ip)
23 return ip & 0x40000000;
28 #define JAL 0x0c000000 /* jump & link: ip --> ra, jump to target */
63 static int ftrace_modify_code(unsigned long ip, unsigned int new_code)
67 /* *(unsigned int *)ip = new_code; */
68 safe_store_code(new_code, ip, faulted);
73 flush_icache_range(ip, ip + 8);
82 unsigned long ip = rec->ip;
88 if (in_module(ip)) {
118 return ftrace_modify_code(ip, new);
124 unsigned long ip = rec->ip;
126 /* ip, module: 0xc0000000, kernel: 0x80000000 */
127 new = in_module(ip) ? insn_lui_v1_hi16_mcount : insn_jal_ftrace_caller;
129 return ftrace_modify_code(ip, new);
189 unsigned long sp, ip, ra;
194 * For module, move the ip from calling site of mcount to the
198 ip = self_addr - (in_module(self_addr) ? 20 : 12);
205 ip -= 4;
207 /* get the code at "ip": code = *(unsigned int *)ip; */
208 safe_load_code(code, ip, faulted);