Lines Matching refs:metric_refs
95 zfree(&expr->metric_refs);
147 struct metric_ref *metric_refs;
202 zfree(&m->metric_refs);
247 m->metric_refs = NULL;
966 * metric_refs list.
968 if (root_metric->metric_refs) {
969 for (; root_metric->metric_refs[cnt].metric_name; cnt++) {
971 root_metric->metric_refs[cnt].metric_name))
977 root_metric->metric_refs = realloc(root_metric->metric_refs,
979 if (!root_metric->metric_refs)
988 root_metric->metric_refs[cnt].metric_name = pm->metric_name;
989 root_metric->metric_refs[cnt].metric_expr = pm->metric_expr;
992 root_metric->metric_refs[cnt+1].metric_name = NULL;
993 root_metric->metric_refs[cnt+1].metric_expr = NULL;
1642 expr->metric_refs = m->metric_refs;
1643 m->metric_refs = NULL;
1819 if (old_expr->metric_refs) {
1821 for (nr = 0; old_expr->metric_refs[nr].metric_name; nr++)
1823 alloc_size = sizeof(*new_expr->metric_refs);
1824 new_expr->metric_refs = calloc(nr + 1, alloc_size);
1825 if (!new_expr->metric_refs) {
1830 memcpy(new_expr->metric_refs, old_expr->metric_refs,
1833 new_expr->metric_refs = NULL;
1842 zfree(&new_expr->metric_refs);
1853 zfree(&new_expr->metric_refs);