Home
last modified time | relevance | path

Searched refs:new_expr (Results 1 – 1 of 1) sorted by relevance

/Linux-v6.1/tools/perf/util/
Dmetricgroup.c1754 struct metric_expr *old_expr, *new_expr; in metricgroup__copy_metric_events() local
1773 new_expr = malloc(sizeof(*new_expr)); in metricgroup__copy_metric_events()
1774 if (!new_expr) in metricgroup__copy_metric_events()
1777 new_expr->metric_expr = old_expr->metric_expr; in metricgroup__copy_metric_events()
1778 new_expr->metric_name = strdup(old_expr->metric_name); in metricgroup__copy_metric_events()
1779 if (!new_expr->metric_name) in metricgroup__copy_metric_events()
1782 new_expr->metric_unit = old_expr->metric_unit; in metricgroup__copy_metric_events()
1783 new_expr->runtime = old_expr->runtime; in metricgroup__copy_metric_events()
1789 alloc_size = sizeof(*new_expr->metric_refs); in metricgroup__copy_metric_events()
1790 new_expr->metric_refs = calloc(nr + 1, alloc_size); in metricgroup__copy_metric_events()
[all …]