Lines Matching full:ids
126 * The expression parse context importantly holding the IDs contained
157 * different metric whose group contains all the IDs necessary for this
281 * to the IDs from a parsed metric expression.
282 * @pmu: The PMU for the IDs.
283 * @ids: the metric IDs to match.
287 static int setup_metric_events(const char *pmu, struct hashmap *ids, in setup_metric_events() argument
298 ids_size = hashmap__size(ids); in setup_metric_events()
326 if (hashmap__find(ids, metric_id, &val_ptr)) { in setup_metric_events()
561 hashmap__for_each_entry(ctx->ids, cur, bkt) { in metricgroup__build_event_string()
717 * case the root_metric holds all the IDs and a list of referenced
741 * The key in the IDs map, this may differ from in case, in resolve_metric()
749 * Iterate all the parsed IDs and if there's a matching metric and it to in resolve_metric()
752 hashmap__for_each_entry(root_metric->pctx->ids, cur, bkt) { in resolve_metric()
769 /* Remove the metric IDs from the context. */ in resolve_metric()
774 * Recursively add all the metrics, IDs are added to the root metric's in resolve_metric()
802 * case the root_metric holds all the IDs and a list of referenced
885 * all the metric's IDs and add it to the root context. in __add_metric()
980 left_count = hashmap__size(left->pctx->ids); in metric_list_cmp()
986 right_count = hashmap__size(right->pctx->ids); in metric_list_cmp()
1198 * metric IDs, as the IDs are held in a set,
1218 hashmap__for_each_entry(m->pctx->ids, cur, bkt) { in build_combined_expr_ctx()
1238 * parse_ids - Build the event string for the ids and parse them creating an
1242 * @ids: the event identifiers parsed from a metric.
1250 struct expr_parse_ctx *ids, const char *modifier, in parse_ids() argument
1260 if (!metric_no_merge || hashmap__size(ids->ids) == 0) { in parse_ids()
1271 * Also, there may be no ids/events in the expression parsing in parse_ids()
1282 ids__insert(ids->ids, tmp); in parse_ids()
1286 if (!added_event && hashmap__size(ids->ids) == 0) { in parse_ids()
1291 ids__insert(ids->ids, tmp); in parse_ids()
1294 ret = metricgroup__build_event_string(&events, ids, modifier, in parse_ids()
1359 if (!ret && combined && hashmap__size(combined->ids)) { in parse_groups()
1387 * See if the IDs for this metric are a subset of an in parse_groups()
1425 ret = setup_metric_events(fake_pmu ? "all" : m->pmu, m->pctx->ids, in parse_groups()
1428 pr_err("Cannot resolve IDs for %s: %s\n", in parse_groups()