Lines Matching refs:ri
1882 struct kretprobe_instance *ri = container_of(head, struct kretprobe_instance, rcu); in free_rp_inst_rcu() local
1884 if (refcount_dec_and_test(&ri->rph->ref)) in free_rp_inst_rcu()
1885 kfree(ri->rph); in free_rp_inst_rcu()
1886 kfree(ri); in free_rp_inst_rcu()
1890 static void recycle_rp_inst(struct kretprobe_instance *ri) in recycle_rp_inst() argument
1892 struct kretprobe *rp = get_kretprobe(ri); in recycle_rp_inst()
1895 freelist_add(&ri->freelist, &rp->freelist); in recycle_rp_inst()
1897 call_rcu(&ri->rcu, free_rp_inst_rcu); in recycle_rp_inst()
1909 struct kretprobe_instance *ri; in kprobe_flush_task() local
1920 ri = container_of(node, struct kretprobe_instance, llist); in kprobe_flush_task()
1923 recycle_rp_inst(ri); in kprobe_flush_task()
1932 struct kretprobe_instance *ri; in free_rp_inst() local
1938 ri = container_of(node, struct kretprobe_instance, freelist); in free_rp_inst()
1941 kfree(ri); in free_rp_inst()
1955 struct kretprobe_instance *ri = NULL; in __kretprobe_find_ret_addr() local
1964 ri = container_of(node, struct kretprobe_instance, llist); in __kretprobe_find_ret_addr()
1965 if (ri->ret_addr != kretprobe_trampoline_addr()) { in __kretprobe_find_ret_addr()
1967 return ri->ret_addr; in __kretprobe_find_ret_addr()
1993 struct kretprobe_instance *ri = NULL; in kretprobe_find_ret_addr() local
2003 ri = container_of(*cur, struct kretprobe_instance, llist); in kretprobe_find_ret_addr()
2004 } while (ri->fp != fp); in kretprobe_find_ret_addr()
2023 struct kretprobe_instance *ri = NULL; in __kretprobe_trampoline_handler() local
2044 ri = container_of(first, struct kretprobe_instance, llist); in __kretprobe_trampoline_handler()
2046 if (WARN_ON_ONCE(ri->fp != frame_pointer)) in __kretprobe_trampoline_handler()
2049 rp = get_kretprobe(ri); in __kretprobe_trampoline_handler()
2054 ri->ret_addr = correct_ret_addr; in __kretprobe_trampoline_handler()
2055 rp->handler(ri, regs); in __kretprobe_trampoline_handler()
2073 ri = container_of(first, struct kretprobe_instance, llist); in __kretprobe_trampoline_handler()
2076 recycle_rp_inst(ri); in __kretprobe_trampoline_handler()
2090 struct kretprobe_instance *ri; in NOKPROBE_SYMBOL() local
2099 ri = container_of(fn, struct kretprobe_instance, freelist); in NOKPROBE_SYMBOL()
2101 if (rp->entry_handler && rp->entry_handler(ri, regs)) { in NOKPROBE_SYMBOL()
2102 freelist_add(&ri->freelist, &rp->freelist); in NOKPROBE_SYMBOL()
2106 arch_prepare_kretprobe(ri, regs); in NOKPROBE_SYMBOL()
2108 __llist_add(&ri->llist, ¤t->kretprobe_instances); in NOKPROBE_SYMBOL()
2121 struct kretprobe_instance *ri; in pre_handler_kretprobe() local
2130 ri = container_of(rhn, struct kretprobe_instance, node); in pre_handler_kretprobe()
2132 if (rp->entry_handler && rp->entry_handler(ri, regs)) in pre_handler_kretprobe()
2145 struct kretprobe_instance *ri; in kretprobe_rethook_handler() local
2156 ri = container_of(rh, struct kretprobe_instance, node); in kretprobe_rethook_handler()
2157 rp->handler(ri, regs); in kretprobe_rethook_handler()