Lines Matching refs:arc

61   Arc *arc;  in arc_lookup()  local
70 for (arc = parent->cg.children; arc; arc = arc->next_child) in arc_lookup()
73 arc->parent->name, arc->child->name)); in arc_lookup()
74 if (child->addr >= arc->child->addr in arc_lookup()
75 && child->end_addr <= arc->child->end_addr) in arc_lookup()
77 return arc; in arc_lookup()
91 Arc *arc, **newarcs; in arc_add() local
95 arc = arc_lookup (parent, child); in arc_add()
96 if (arc) in arc_add()
102 arc->count, count)); in arc_add()
103 arc->count += count; in arc_add()
106 arc = (Arc *) xmalloc (sizeof (*arc)); in arc_add()
107 memset (arc, 0, sizeof (*arc)); in arc_add()
108 arc->parent = parent; in arc_add()
109 arc->child = child; in arc_add()
110 arc->count = count; in arc_add()
140 arcs[numarcs++] = arc; in arc_add()
144 arc->next_child = parent->cg.children; in arc_add()
145 parent->cg.children = arc; in arc_add()
148 arc->next_parent = child->cg.parents; in arc_add()
149 child->cg.parents = arc; in arc_add()
166 Arc *arc; in propagate_time() local
177 for (arc = parent->cg.children; arc; arc = arc->next_child) in propagate_time()
179 child = arc->child; in propagate_time()
180 if (arc->count == 0 || child == parent || child->cg.prop.fract == 0) in propagate_time()
210 arc->time = child->hist.time * (((double) arc->count) in propagate_time()
212 arc->child_time = child->cg.child_time in propagate_time()
213 * (((double) arc->count) / ((double) child->ncalls)); in propagate_time()
214 share = arc->time + arc->child_time; in propagate_time()
222 arc->time *= parent->cg.prop.fract; in propagate_time()
223 arc->child_time *= parent->cg.prop.fract; in propagate_time()
235 child->cg.child_time, arc->count, child->ncalls); in propagate_time()
275 Arc *arc; in cycle_link() local
333 for (arc = member->cg.parents; arc; arc = arc->next_parent) in cycle_link()
335 if (arc->parent == member) in cycle_link()
339 if (arc->parent->cg.cyc.num == num) in cycle_link()
341 cyc->cg.self_calls += arc->count; in cycle_link()
345 cyc->ncalls += arc->count; in cycle_link()
363 Arc *arc; in inherit_flags() local
371 for (arc = child->cg.parents; arc; arc = arc->next_parent) in inherit_flags()
373 parent = arc->parent; in inherit_flags()
387 * (((double) arc->count) / ((double) child->ncalls)); in inherit_flags()
401 for (arc = member->cg.parents; arc; arc = arc->next_parent) in inherit_flags()
403 if (arc->parent->cg.cyc.head == head) in inherit_flags()
407 parent = arc->parent; in inherit_flags()
417 * (((double) arc->count) / ((double) head->ncalls)); in inherit_flags()
598 Arc *arc; in cg_assemble() local
607 arc = arc_lookup (parent, parent); in cg_assemble()
608 if (arc && parent == arc->child) in cg_assemble()
610 parent->ncalls -= arc->count; in cg_assemble()
611 parent->cg.self_calls = arc->count; in cg_assemble()