metricgroup.h (50282fd57bcd3525c9d81eef58df8718e4337c6d) metricgroup.h (bd3846d0fea2e8e3375fc54a6556561726f466cf)
1// SPDX-License-Identifier: GPL-2.0-only
2#ifndef METRICGROUP_H
3#define METRICGROUP_H 1
4
5#include <linux/list.h>
6#include <linux/rbtree.h>
7#include <stdbool.h>
8#include "pmu-events/pmu-events.h"

--- 66 unchanged lines hidden (view full) ---

75 bool system_wide,
76 struct rblist *metric_events);
77int metricgroup__parse_groups_test(struct evlist *evlist,
78 const struct pmu_metrics_table *table,
79 const char *str,
80 struct rblist *metric_events);
81
82void metricgroup__print(const struct print_callbacks *print_cb, void *print_state);
1// SPDX-License-Identifier: GPL-2.0-only
2#ifndef METRICGROUP_H
3#define METRICGROUP_H 1
4
5#include <linux/list.h>
6#include <linux/rbtree.h>
7#include <stdbool.h>
8#include "pmu-events/pmu-events.h"

--- 66 unchanged lines hidden (view full) ---

75 bool system_wide,
76 struct rblist *metric_events);
77int metricgroup__parse_groups_test(struct evlist *evlist,
78 const struct pmu_metrics_table *table,
79 const char *str,
80 struct rblist *metric_events);
81
82void metricgroup__print(const struct print_callbacks *print_cb, void *print_state);
83bool metricgroup__has_metric(const char *metric);
83bool metricgroup__has_metric(const char *pmu, const char *metric);
84unsigned int metricgroups__topdown_max_level(void);
85int arch_get_runtimeparam(const struct pmu_metric *pm);
86void metricgroup__rblist_exit(struct rblist *metric_events);
87
88int metricgroup__copy_metric_events(struct evlist *evlist, struct cgroup *cgrp,
89 struct rblist *new_metric_events,
90 struct rblist *old_metric_events);
91#endif
84unsigned int metricgroups__topdown_max_level(void);
85int arch_get_runtimeparam(const struct pmu_metric *pm);
86void metricgroup__rblist_exit(struct rblist *metric_events);
87
88int metricgroup__copy_metric_events(struct evlist *evlist, struct cgroup *cgrp,
89 struct rblist *new_metric_events,
90 struct rblist *old_metric_events);
91#endif