Lines Matching refs:root_metric
799 struct metric *root_metric;
816 struct metric *root_metric,
831 * @root_metric: Metrics may reference other metrics to form a tree. In this
832 * case the root_metric holds all the IDs and a list of referenced
846 struct metric *root_metric,
867 hashmap__for_each_entry(root_metric->pctx->ids, cur, bkt) {
884 expr__del_id(root_metric->pctx, pending[i].key);
893 root_metric, visited, table);
914 * @root_metric: Metrics may reference other metrics to form a tree. In this
915 * case the root_metric holds all the IDs and a list of referenced
930 struct metric *root_metric,
936 bool is_root = !root_metric;
955 root_metric = metric__new(pm, modifier, metric_no_group, runtime,
957 if (!root_metric)
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;
1015 if (expr__find_ids(expr, NULL, root_metric->pctx) < 0) {
1025 system_wide, root_metric, &visited_node,
1030 metric__free(root_metric);
1033 list_add(&root_metric->nd, metric_list);
1083 struct metric *root_metric,
1094 system_wide, root_metric, visited, table);
1108 system_wide, root_metric, visited, table);
1126 d->system_wide, d->root_metric, d->visited, d->table);
1209 data->system_wide, /*root_metric=*/NULL,