Lines Matching refs:ep
70 static int imbalance(struct entrypoint *ep, struct basic_block *bb, int entry, int exit, const char *why)
73 struct symbol *sym = ep->name;
79 static int check_bb_context(struct entrypoint *ep, struct basic_block *bb, int entry, int exit);
81 static int check_children(struct entrypoint *ep, struct basic_block *bb, int entry, int exit)
90 return entry != exit ? imbalance(ep, bb, entry, exit, "wrong count at exit") : 0;
93 if (check_bb_context(ep, child, entry, exit))
99 static int check_bb_context(struct entrypoint *ep, struct basic_block *bb, int entry, int exit)
108 return imbalance(ep, bb, entry, bb->context, "different lock contexts for basic block");
113 return imbalance(ep, bb, entry, exit, "unexpected unlock");
115 return check_children(ep, bb, entry, exit);
234 static void check_instructions(struct entrypoint *ep)
237 FOR_EACH_PTR(ep->bbs, bb) {
243 static void check_context(struct entrypoint *ep)
245 struct symbol *sym = ep->name;
249 if (Wuninitialized && verbose && ep->entry->bb->needs) {
251 FOR_EACH_PTR(ep->entry->bb->needs, pseudo) {
258 check_instructions(ep);
264 check_bb_context(ep, ep->entry->bb, in_context, out_context);
303 struct entrypoint *ep;
306 ep = linearize_symbol(sym);
307 if (ep && ep->entry) {
309 show_entry(ep);
311 check_context(ep);