Lines Matching defs:metric
111 * metric list.
119 struct metric {
167 * metric expression. Note, as find_evsel_group is called in the same order as
173 * @pctx: the parse context for the metric expression.
174 * @metric_no_merge: don't attempt to share events for the metric with other
179 * with the metric.
181 * @return the first metric event or NULL on failure.
266 * The metric leader points to the identically named event in
273 * for each pmu. Set the metric leader of such events to be the
303 struct metric *m;
348 * for metric processing.
653 pr_warning("Splitting metric group %s into standalone metrics.\n", name);
661 pr_warning("Try disabling the NMI watchdog to comply NO_NMI_WATCHDOG metric constraint:\n"
690 struct metric **mp,
695 struct metric *m;
729 * We got here for the referenced metric, via the
752 /* Force all found IDs in metric to have us as parent ID. */
758 * all the metric's IDs and add it to the parent context.
771 * so bail out for referenced metric case.
783 struct metric *old = list_entry(pos, struct metric, nd);
806 static struct pmu_event *find_metric(const char *metric, struct pmu_events_map *map)
812 if (match_metric(pe->metric_name, metric))
819 static int recursion_check(struct metric *m, const char *id, struct expr_id **parent,
847 * If we are over the limit of static entris, the metric
866 struct metric **mp,
870 static int __resolve_metric(struct metric *m,
882 * Iterate all the parsed IDs and if there's metric,
900 /* The metric key itself needs to go out.. */
909 * We added new metric to hashmap, so we need
924 struct metric *m;
938 struct metric **m,
942 struct metric *orig = *m;
945 pr_debug("metric expr %s for %s\n", pe->metric_expr, pe->metric_name);
966 static int metricgroup__add_metric(const char *metric, bool metric_no_group,
973 struct metric *m;
978 map_for_each_metric(pe, i, map, metric) {
1045 fprintf(stderr, "Cannot find metric or group `%s'\n",
1058 static void metric__free_refs(struct metric *metric)
1062 list_for_each_entry_safe(ref, tmp, &metric->metric_refs, list) {
1070 struct metric *m, *tmp;
1140 bool metricgroup__has_metric(const char *metric)
1156 if (match_metric(pe->metric_name, metric))
1186 pr_debug("copying metric event for cgroup '%s': %s (idx=%d)\n",