Lines Matching refs:ip
151 u64 ip = (u64)(ctx->ro_insns + ctx->ninsns); in emit_addr() local
152 s64 off = addr - ip; in emit_addr()
469 u64 ip; in emit_call() local
476 ip = (u64)(long)(ctx->ro_insns + ctx->ninsns); in emit_call()
477 off = addr - ip; in emit_call()
651 static int gen_jump_or_nops(void *target, void *ip, u32 *insns, bool is_call) in gen_jump_or_nops() argument
665 rvoff = (s64)(target - ip); in gen_jump_or_nops()
669 int bpf_arch_text_poke(void *ip, enum bpf_text_poke_type poke_type, in bpf_arch_text_poke() argument
676 if (!is_kernel_text((unsigned long)ip) && in bpf_arch_text_poke()
677 !is_bpf_text_address((unsigned long)ip)) in bpf_arch_text_poke()
680 ret = gen_jump_or_nops(old_addr, ip, old_insns, is_call); in bpf_arch_text_poke()
684 if (memcmp(ip, old_insns, RV_FENTRY_NINSNS * 4)) in bpf_arch_text_poke()
687 ret = gen_jump_or_nops(new_addr, ip, new_insns, is_call); in bpf_arch_text_poke()
693 if (memcmp(ip, new_insns, RV_FENTRY_NINSNS * 4)) in bpf_arch_text_poke()
694 ret = patch_text(ip, new_insns, RV_FENTRY_NINSNS); in bpf_arch_text_poke()