summaryrefslogtreecommitdiff
path: root/tools/perf/util/pmus.h
diff options
context:
space:
mode:
Diffstat (limited to 'tools/perf/util/pmus.h')
-rw-r--r--tools/perf/util/pmus.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/perf/util/pmus.h b/tools/perf/util/pmus.h
new file mode 100644
index 000000000000..5ec12007eb5c
--- /dev/null
+++ b/tools/perf/util/pmus.h
@@ -0,0 +1,9 @@
+/* SPDX-License-Identifier: GPL-2.0 */
+#ifndef __PMUS_H
+#define __PMUS_H
+
+extern struct list_head pmus;
+
+#define perf_pmus__for_each_pmu(pmu) list_for_each_entry(pmu, &pmus, list)
+
+#endif /* __PMUS_H */