Linux Perf
metricgroup.h
Go to the documentation of this file.
1 #ifndef METRICGROUP_H
2 #define METRICGROUP_H 1
3 
4 #include "linux/list.h"
5 #include "rblist.h"
6 #include <subcmd/parse-options.h>
7 #include "evlist.h"
8 #include "strbuf.h"
9 
10 struct metric_event {
11  struct rb_node nd;
12  struct perf_evsel *evsel;
13  struct list_head head; /* list of metric_expr */
14 };
15 
16 struct metric_expr {
17  struct list_head nd;
18  const char *metric_expr;
19  const char *metric_name;
21 };
22 
24  struct perf_evsel *evsel,
25  bool create);
26 int metricgroup__parse_groups(const struct option *opt,
27  const char *str,
28  struct rblist *metric_events);
29 
30 void metricgroup__print(bool metrics, bool groups, char *filter, bool raw);
31 #endif
struct perf_evsel * evsel
Definition: metricgroup.h:12
const char * metric_name
Definition: metricgroup.h:19
Definition: rblist.h:22
static struct rblist metric_events
Definition: builtin-stat.c:139
const char * metric_expr
Definition: metricgroup.h:18
static int str(yyscan_t scanner, int token)
struct rb_node nd
Definition: metricgroup.h:11
static int raw(yyscan_t scanner)
struct list_head head
Definition: metricgroup.h:13
struct strfilter * filter
Definition: builtin-probe.c:60
struct metric_event * metricgroup__lookup(struct rblist *metric_events, struct perf_evsel *evsel, bool create)
Definition: metricgroup.c:31
struct perf_evsel ** metric_events
Definition: metricgroup.h:20
void metricgroup__print(bool metrics, bool groups, char *filter, bool raw)
Definition: metricgroup.c:272
int metricgroup__parse_groups(const struct option *opt, const char *str, struct rblist *metric_events)
Definition: metricgroup.c:464