Lines Matching refs:ri
1894 struct kretprobe_instance *ri = container_of(head, struct kretprobe_instance, rcu); in free_rp_inst_rcu() local
1896 if (refcount_dec_and_test(&ri->rph->ref)) in free_rp_inst_rcu()
1897 kfree(ri->rph); in free_rp_inst_rcu()
1898 kfree(ri); in free_rp_inst_rcu()
1902 static void recycle_rp_inst(struct kretprobe_instance *ri) in recycle_rp_inst() argument
1904 struct kretprobe *rp = get_kretprobe(ri); in recycle_rp_inst()
1907 freelist_add(&ri->freelist, &rp->freelist); in recycle_rp_inst()
1909 call_rcu(&ri->rcu, free_rp_inst_rcu); in recycle_rp_inst()
1921 struct kretprobe_instance *ri; in kprobe_flush_task() local
1932 ri = container_of(node, struct kretprobe_instance, llist); in kprobe_flush_task()
1935 recycle_rp_inst(ri); in kprobe_flush_task()
1944 struct kretprobe_instance *ri; in free_rp_inst() local
1950 ri = container_of(node, struct kretprobe_instance, freelist); in free_rp_inst()
1953 kfree(ri); in free_rp_inst()
1967 struct kretprobe_instance *ri = NULL; in __kretprobe_find_ret_addr() local
1976 ri = container_of(node, struct kretprobe_instance, llist); in __kretprobe_find_ret_addr()
1977 if (ri->ret_addr != kretprobe_trampoline_addr()) { in __kretprobe_find_ret_addr()
1979 return ri->ret_addr; in __kretprobe_find_ret_addr()
2005 struct kretprobe_instance *ri = NULL; in kretprobe_find_ret_addr() local
2015 ri = container_of(*cur, struct kretprobe_instance, llist); in kretprobe_find_ret_addr()
2016 } while (ri->fp != fp); in kretprobe_find_ret_addr()
2034 struct kretprobe_instance *ri = NULL; in __kretprobe_trampoline_handler() local
2056 ri = container_of(first, struct kretprobe_instance, llist); in __kretprobe_trampoline_handler()
2058 if (WARN_ON_ONCE(ri->fp != frame_pointer)) in __kretprobe_trampoline_handler()
2061 rp = get_kretprobe(ri); in __kretprobe_trampoline_handler()
2066 ri->ret_addr = correct_ret_addr; in __kretprobe_trampoline_handler()
2067 rp->handler(ri, regs); in __kretprobe_trampoline_handler()
2085 ri = container_of(first, struct kretprobe_instance, llist); in __kretprobe_trampoline_handler()
2088 recycle_rp_inst(ri); in __kretprobe_trampoline_handler()
2102 struct kretprobe_instance *ri; in NOKPROBE_SYMBOL() local
2111 ri = container_of(fn, struct kretprobe_instance, freelist); in NOKPROBE_SYMBOL()
2113 if (rp->entry_handler && rp->entry_handler(ri, regs)) { in NOKPROBE_SYMBOL()
2114 freelist_add(&ri->freelist, &rp->freelist); in NOKPROBE_SYMBOL()
2118 arch_prepare_kretprobe(ri, regs); in NOKPROBE_SYMBOL()
2120 __llist_add(&ri->llist, ¤t->kretprobe_instances); in NOKPROBE_SYMBOL()
2133 struct kretprobe_instance *ri; in pre_handler_kretprobe() local
2142 ri = container_of(rhn, struct kretprobe_instance, node); in pre_handler_kretprobe()
2144 if (rp->entry_handler && rp->entry_handler(ri, regs)) in pre_handler_kretprobe()
2158 struct kretprobe_instance *ri; in kretprobe_rethook_handler() local
2169 ri = container_of(rh, struct kretprobe_instance, node); in kretprobe_rethook_handler()
2170 rp->handler(ri, regs); in kretprobe_rethook_handler()