Lines Matching refs:nd
39 struct rb_node *nd; in metricgroup__lookup() local
47 nd = rblist__find(metric_events, &me); in metricgroup__lookup()
48 if (nd) in metricgroup__lookup()
49 return container_of(nd, struct metric_event, nd); in metricgroup__lookup()
52 nd = rblist__find(metric_events, &me); in metricgroup__lookup()
53 if (nd) in metricgroup__lookup()
54 return container_of(nd, struct metric_event, nd); in metricgroup__lookup()
63 nd); in metric_event_cmp()
84 return &me->nd; in metric_event_new()
90 struct metric_event *me = container_of(rb_node, struct metric_event, nd); in metric_event_delete()
93 list_for_each_entry_safe(expr, tmp, &me->head, nd) { in metric_event_delete()
121 struct list_head nd; member
388 struct rb_node nd; member
401 struct mep *a = container_of(rb_node, struct mep, nd); in mep_cmp()
420 return &me->nd; in mep_new()
424 struct rb_node *nd) in mep_delete() argument
426 struct mep *me = container_of(nd, struct mep, nd); in mep_delete()
435 struct rb_node *nd; in mep_lookup() local
440 nd = rblist__find(groups, &me); in mep_lookup()
441 if (nd) { in mep_lookup()
443 return container_of(nd, struct mep, nd); in mep_lookup()
446 nd = rblist__find(groups, &me); in mep_lookup()
447 if (nd) in mep_lookup()
448 return container_of(nd, struct mep, nd); in mep_lookup()
543 struct mep *me = container_of(node, struct mep, nd); in metricgroup__print()
1033 list_add(&root_metric->nd, metric_list); in __add_metric()
1144 const struct metric *left = container_of(l, struct metric, nd); in metric_list_cmp()
1145 const struct metric *right = container_of(r, struct metric, nd); in metric_list_cmp()
1173 const struct metric *left = container_of(l, struct metric, nd); in default_metricgroup_cmp()
1174 const struct metric *right = container_of(r, struct metric, nd); in default_metricgroup_cmp()
1364 list_for_each_entry_safe (m, tmp, metric_list, nd) { in metricgroup__free_metrics()
1365 list_del_init(&m->nd); in metricgroup__free_metrics()
1381 list_for_each_entry(m, metric_list, nd) { in find_tool_events()
1414 list_for_each_entry(m, metric_list, nd) { in build_combined_expr_ctx()
1576 list_for_each_entry(m, &metric_list, nd) { in parse_groups()
1590 list_for_each_entry(n, &metric_list, nd) { in parse_groups()
1666 list_add(&expr->nd, &me->head); in parse_groups()
1675 list_for_each_entry(m, &metric_list, nd) { in parse_groups()
1785 struct rb_node *nd; in metricgroup__copy_metric_events() local
1792 nd = rblist__entry(old_metric_events, i); in metricgroup__copy_metric_events()
1793 old_me = container_of(nd, struct metric_event, nd); in metricgroup__copy_metric_events()
1805 list_for_each_entry(old_expr, &old_me->head, nd) { in metricgroup__copy_metric_events()
1860 list_add(&new_expr->nd, &new_me->head); in metricgroup__copy_metric_events()