Lines Matching refs:root_metric

799 	struct metric *root_metric;  member
816 struct metric *root_metric,
846 struct metric *root_metric, in resolve_metric() argument
867 hashmap__for_each_entry(root_metric->pctx->ids, cur, bkt) { in resolve_metric()
884 expr__del_id(root_metric->pctx, pending[i].key); in resolve_metric()
893 root_metric, visited, table); in resolve_metric()
930 struct metric *root_metric, in __add_metric() argument
936 bool is_root = !root_metric; in __add_metric()
955 root_metric = metric__new(pm, modifier, metric_no_group, runtime, in __add_metric()
957 if (!root_metric) in __add_metric()
968 if (root_metric->metric_refs) { in __add_metric()
969 for (; root_metric->metric_refs[cnt].metric_name; cnt++) { in __add_metric()
971 root_metric->metric_refs[cnt].metric_name)) in __add_metric()
977 root_metric->metric_refs = realloc(root_metric->metric_refs, in __add_metric()
979 if (!root_metric->metric_refs) in __add_metric()
988 root_metric->metric_refs[cnt].metric_name = pm->metric_name; in __add_metric()
989 root_metric->metric_refs[cnt].metric_expr = pm->metric_expr; in __add_metric()
992 root_metric->metric_refs[cnt+1].metric_name = NULL; in __add_metric()
993 root_metric->metric_refs[cnt+1].metric_expr = NULL; in __add_metric()
1015 if (expr__find_ids(expr, NULL, root_metric->pctx) < 0) { in __add_metric()
1025 system_wide, root_metric, &visited_node, in __add_metric()
1030 metric__free(root_metric); in __add_metric()
1033 list_add(&root_metric->nd, metric_list); in __add_metric()
1083 struct metric *root_metric, in add_metric() argument
1094 system_wide, root_metric, visited, table); in add_metric()
1108 system_wide, root_metric, visited, table); in add_metric()
1126 d->system_wide, d->root_metric, d->visited, d->table); in metricgroup__add_metric_sys_event_iter()