Lines Matching defs:parent
29 #define chain_for_each_child(child, parent) \
30 list_for_each_entry(child, &parent->children, siblings)
32 #define chain_for_each_child_safe(child, next, parent) \
33 list_for_each_entry_safe(child, next, &parent->children, siblings)
40 struct rb_node *parent = NULL;
47 parent = *p;
48 rnode = rb_entry(parent, struct callchain_node, rb_node);
71 rb_link_node(&chain->rb_node, parent, p);
167 * Create a child for a parent. If inherit_children, then the new child
168 * will become the new parent of it's parent children
171 create_child(struct callchain_node *parent, bool inherit_children)
180 new->parent = parent;
187 list_splice(&parent->children, &new->children);
188 INIT_LIST_HEAD(&parent->children);
191 next->parent = new;
193 list_add_tail(&new->siblings, &parent->children);
232 add_child(struct callchain_node *parent,
238 new = create_child(parent, false);
246 * Split the parent in two parts (a new child is created) and
251 split_add_child(struct callchain_node *parent,
261 new = create_child(parent, true);
264 old_tail = parent->val.prev;
272 new->hit = parent->hit;
273 new->children_hit = parent->children_hit;
274 parent->children_hit = callchain_cumul_hits(new);
275 new->val_nr = parent->val_nr - idx_local;
276 parent->val_nr = idx_local;
280 parent->hit = 0;
281 add_child(parent, cursor, period);
282 parent->children_hit += period;
284 parent->hit = period;
352 /* matches not, relay on the parent */