Lines Matching refs:ref
351 struct metric_ref_node *ref; in metricgroup__setup_events() local
362 list_for_each_entry(ref, &m->metric_refs, list) { in metricgroup__setup_events()
369 metric_refs[i].metric_name = ref->metric_name; in metricgroup__setup_events()
370 metric_refs[i].metric_expr = ref->metric_expr; in metricgroup__setup_events()
694 struct metric_ref_node *ref; in __add_metric() local
735 ref = malloc(sizeof(*ref)); in __add_metric()
736 if (!ref) in __add_metric()
745 ref->metric_name = pe->metric_name; in __add_metric()
746 ref->metric_expr = pe->metric_expr; in __add_metric()
748 list_add(&ref->list, &m->metric_refs); in __add_metric()
1060 struct metric_ref_node *ref, *tmp; in metric__free_refs() local
1062 list_for_each_entry_safe(ref, tmp, &metric->metric_refs, list) { in metric__free_refs()
1063 list_del(&ref->list); in metric__free_refs()
1064 free(ref); in metric__free_refs()