Lines Matching refs:metric_refs
87 free(expr->metric_refs); in metric_event_delete()
125 struct list_head metric_refs; member
313 struct metric_ref *metric_refs = NULL; in metricgroup__setup_events() local
353 metric_refs = zalloc(sizeof(struct metric_ref) * (m->metric_refs_cnt + 1)); in metricgroup__setup_events()
354 if (!metric_refs) { in metricgroup__setup_events()
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()
375 expr->metric_refs = metric_refs; in metricgroup__setup_events()
712 INIT_LIST_HEAD(&m->metric_refs); in __add_metric()
748 list_add(&ref->list, &m->metric_refs); in __add_metric()
1062 list_for_each_entry_safe(ref, tmp, &metric->metric_refs, list) { in metric__free_refs()
1199 if (old_expr->metric_refs) { in metricgroup__copy_metric_events()
1201 for (nr = 0; old_expr->metric_refs[nr].metric_name; nr++) in metricgroup__copy_metric_events()
1203 alloc_size = sizeof(*new_expr->metric_refs); in metricgroup__copy_metric_events()
1204 new_expr->metric_refs = calloc(nr + 1, alloc_size); in metricgroup__copy_metric_events()
1205 if (!new_expr->metric_refs) { in metricgroup__copy_metric_events()
1210 memcpy(new_expr->metric_refs, old_expr->metric_refs, in metricgroup__copy_metric_events()
1213 new_expr->metric_refs = NULL; in metricgroup__copy_metric_events()
1222 free(new_expr->metric_refs); in metricgroup__copy_metric_events()
1233 free(new_expr->metric_refs); in metricgroup__copy_metric_events()