hc
2024-02-20 102a0743326a03cd1a1202ceda21e175b7d3575c
kernel/tools/perf/pmu-events/pmu-events.h
....@@ -2,6 +2,11 @@
22 #ifndef PMU_EVENTS_H
33 #define PMU_EVENTS_H
44
5
+enum aggr_mode_class {
6
+ PerChip = 1,
7
+ PerCore
8
+};
9
+
510 /*
611 * Describe each PMU event. Each CPU has a table of PMU events.
712 */
....@@ -14,9 +19,12 @@
1419 const char *pmu;
1520 const char *unit;
1621 const char *perpkg;
22
+ const char *aggr_mode;
1723 const char *metric_expr;
1824 const char *metric_name;
1925 const char *metric_group;
26
+ const char *deprecated;
27
+ const char *metric_constraint;
2028 };
2129
2230 /*
....@@ -24,7 +32,7 @@
2432 * Map a CPU to its table of PMU events. The CPU is identified by the
2533 * cpuid field, which is an arch-specific identifier for the CPU.
2634 * The identifier specified in tools/perf/pmu-events/arch/xxx/mapfile
27
- * must match the get_cpustr() in tools/perf/arch/xxx/util/header.c)
35
+ * must match the get_cpuid_str() in tools/perf/arch/xxx/util/header.c)
2836 *
2937 * The cpuid can contain any character other than the comma.
3038 */