pmu.h (29be2fe0c157ee5c8c5d9571f42dc1f0f5d8f67b) pmu.h (1ba3752aec30c04bfb7c82b44332ff98294ec0b8)
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __PMU_H
3#define __PMU_H
4
5#include <linux/bitmap.h>
6#include <linux/compiler.h>
7#include <linux/perf_event.h>
8#include <linux/list.h>

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

121bool pmu_have_event(const char *pname, const char *name);
122
123int perf_pmu__scan_file(struct perf_pmu *pmu, const char *name, const char *fmt, ...) __scanf(3, 4);
124
125int perf_pmu__test(void);
126
127struct perf_event_attr *perf_pmu__get_default_config(struct perf_pmu *pmu);
128void pmu_add_cpu_aliases_table(struct list_head *head, struct perf_pmu *pmu,
1/* SPDX-License-Identifier: GPL-2.0 */
2#ifndef __PMU_H
3#define __PMU_H
4
5#include <linux/bitmap.h>
6#include <linux/compiler.h>
7#include <linux/perf_event.h>
8#include <linux/list.h>

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

121bool pmu_have_event(const char *pname, const char *name);
122
123int perf_pmu__scan_file(struct perf_pmu *pmu, const char *name, const char *fmt, ...) __scanf(3, 4);
124
125int perf_pmu__test(void);
126
127struct perf_event_attr *perf_pmu__get_default_config(struct perf_pmu *pmu);
128void pmu_add_cpu_aliases_table(struct list_head *head, struct perf_pmu *pmu,
129 const struct pmu_event *table);
129 const struct pmu_events_table *table);
130
131char *perf_pmu__getcpuid(struct perf_pmu *pmu);
130
131char *perf_pmu__getcpuid(struct perf_pmu *pmu);
132const struct pmu_event *pmu_events_table__find(void);
132const struct pmu_events_table *pmu_events_table__find(void);
133bool pmu_uncore_alias_match(const char *pmu_name, const char *name);
134void perf_pmu_free_alias(struct perf_pmu_alias *alias);
135
136int perf_pmu__convert_scale(const char *scale, char **end, double *sval);
137
138int perf_pmu__caps_parse(struct perf_pmu *pmu);
139
140void perf_pmu__warn_invalid_config(struct perf_pmu *pmu, __u64 config,

--- 12 unchanged lines hidden ---
133bool pmu_uncore_alias_match(const char *pmu_name, const char *name);
134void perf_pmu_free_alias(struct perf_pmu_alias *alias);
135
136int perf_pmu__convert_scale(const char *scale, char **end, double *sval);
137
138int perf_pmu__caps_parse(struct perf_pmu *pmu);
139
140void perf_pmu__warn_invalid_config(struct perf_pmu *pmu, __u64 config,

--- 12 unchanged lines hidden ---