2 #define METRICGROUP_H 1
4 #include "linux/list.h"
6 #include <subcmd/parse-options.h>
12 struct perf_evsel *evsel;
13 struct list_head head; /* list of metric_expr */
18 const char *metric_expr;
19 const char *metric_name;
20 struct perf_evsel **metric_events;
23 struct metric_event *metricgroup__lookup(struct rblist *metric_events,
24 struct perf_evsel *evsel,
26 int metricgroup__parse_groups(const struct option *opt,
28 struct rblist *metric_events);
30 void metricgroup__print(bool metrics, bool groups, char *filter, bool raw);
31 bool metricgroup__has_metric(const char *metric);