Lines Matching refs:nd
35 struct rb_node *nd; in metricgroup__lookup() local
43 nd = rblist__find(metric_events, &me); in metricgroup__lookup()
44 if (nd) in metricgroup__lookup()
45 return container_of(nd, struct metric_event, nd); in metricgroup__lookup()
48 nd = rblist__find(metric_events, &me); in metricgroup__lookup()
49 if (nd) in metricgroup__lookup()
50 return container_of(nd, struct metric_event, nd); in metricgroup__lookup()
59 nd); in metric_event_cmp()
79 return &me->nd; in metric_event_new()
85 struct metric_event *me = container_of(rb_node, struct metric_event, nd); in metric_event_delete()
88 list_for_each_entry_safe(expr, tmp, &me->head, nd) { in metric_event_delete()
127 struct list_head nd; member
353 struct rb_node nd; member
360 struct mep *a = container_of(rb_node, struct mep, nd); in mep_cmp()
380 return &me->nd; in mep_new()
390 struct rb_node *nd; in mep_lookup() local
394 nd = rblist__find(groups, &me); in mep_lookup()
395 if (nd) in mep_lookup()
396 return container_of(nd, struct mep, nd); in mep_lookup()
398 nd = rblist__find(groups, &me); in mep_lookup()
399 if (nd) in mep_lookup()
400 return container_of(nd, struct mep, nd); in mep_lookup()
405 struct rb_node *nd) in mep_delete() argument
407 struct mep *me = container_of(nd, struct mep, nd); in mep_delete()
600 struct mep *me = container_of(node, struct mep, nd); in metricgroup__print()
1033 list_add(&root_metric->nd, metric_list); in __add_metric()
1121 const struct metric *left = container_of(l, struct metric, nd); in metric_list_cmp()
1122 const struct metric *right = container_of(r, struct metric, nd); in metric_list_cmp()
1252 list_for_each_entry_safe (m, tmp, metric_list, nd) { in metricgroup__free_metrics()
1253 list_del_init(&m->nd); in metricgroup__free_metrics()
1278 list_for_each_entry(m, metric_list, nd) { in build_combined_expr_ctx()
1401 list_for_each_entry(m, &metric_list, nd) { in parse_groups()
1415 list_for_each_entry(n, &metric_list, nd) { in parse_groups()
1482 list_add(&expr->nd, &me->head); in parse_groups()
1491 list_for_each_entry(m, &metric_list, nd) { in parse_groups()
1554 struct rb_node *nd; in metricgroup__copy_metric_events() local
1561 nd = rblist__entry(old_metric_events, i); in metricgroup__copy_metric_events()
1562 old_me = container_of(nd, struct metric_event, nd); in metricgroup__copy_metric_events()
1574 list_for_each_entry(old_expr, &old_me->head, nd) { in metricgroup__copy_metric_events()
1628 list_add(&new_expr->nd, &new_me->head); in metricgroup__copy_metric_events()