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
;
27 struct metric_event
*metricgroup__lookup(struct rblist
*metric_events
,
30 int metricgroup__parse_groups(const struct option
*opt
,
32 struct rblist
*metric_events
);
34 void metricgroup__print(bool metrics
, bool groups
, char *filter
,
35 bool raw
, bool details
);
36 bool metricgroup__has_metric(const char *metric
);