Lines Matching refs:uc

753 static void consumer_add(struct uprobe *uprobe, struct uprobe_consumer *uc)
756 uc->next = uprobe->consumers;
757 uprobe->consumers = uc;
762 * For uprobe @uprobe, delete the consumer @uc.
763 * Return true if the @uc is deleted successfully
766 static bool consumer_del(struct uprobe *uprobe, struct uprobe_consumer *uc)
773 if (*con == uc) {
774 *con = uc->next;
866 static inline bool consumer_filter(struct uprobe_consumer *uc,
869 return !uc->filter || uc->filter(uc, ctx, mm);
875 struct uprobe_consumer *uc;
879 for (uc = uprobe->consumers; uc; uc = uc->next) {
880 ret = consumer_filter(uc, ctx, mm);
1083 __uprobe_unregister(struct uprobe *uprobe, struct uprobe_consumer *uc)
1087 if (WARN_ON(!consumer_del(uprobe, uc)))
1100 * @uc: identify which probe if multiple probes are colocated.
1102 void uprobe_unregister(struct inode *inode, loff_t offset, struct uprobe_consumer *uc)
1111 __uprobe_unregister(uprobe, uc);
1121 * @uc: information on howto handle the probe..
1128 * refcount is released when the last @uc for the @uprobe
1136 loff_t ref_ctr_offset, struct uprobe_consumer *uc)
1142 if (!uc->handler && !uc->ret_handler)
1176 consumer_add(uprobe, uc);
1177 ret = register_for_each_vma(uprobe, uc);
1179 __uprobe_unregister(uprobe, uc);
1190 struct uprobe_consumer *uc)
1192 return __uprobe_register(inode, offset, 0, uc);
1197 loff_t ref_ctr_offset, struct uprobe_consumer *uc)
1199 return __uprobe_register(inode, offset, ref_ctr_offset, uc);
1207 * @uc: consumer which wants to add more or remove some breakpoints
1211 struct uprobe_consumer *uc, bool add)
1222 for (con = uprobe->consumers; con && con != uc ; con = con->next)
1225 ret = register_for_each_vma(uprobe, add ? uc : NULL);
2070 struct uprobe_consumer *uc;
2075 for (uc = uprobe->consumers; uc; uc = uc->next) {
2078 if (uc->handler) {
2079 rc = uc->handler(uc, regs);
2081 "bad rc=0x%x from %ps()\n", rc, uc->handler);
2084 if (uc->ret_handler)
2104 struct uprobe_consumer *uc;
2107 for (uc = uprobe->consumers; uc; uc = uc->next) {
2108 if (uc->ret_handler)
2109 uc->ret_handler(uc, ri->func, regs);