1 // SPDX-License-Identifier: GPL-2.0-only
3 #define METRICGROUP_H 1
5 #include <linux/list.h>
6 #include <linux/rbtree.h>
16 struct list_head head; /* list of metric_expr */
21 const char *metric_expr;
22 const char *metric_name;
23 const char *metric_unit;
24 struct evsel **metric_events;
28 struct metric_event *metricgroup__lookup(struct rblist *metric_events,
31 int metricgroup__parse_groups(const struct option *opt,
33 struct rblist *metric_events);
35 void metricgroup__print(bool metrics, bool groups, char *filter,
36 bool raw, bool details);
37 bool metricgroup__has_metric(const char *metric);
38 int arch_get_runtimeparam(void);