.. | .. |
---|
2 | 2 | #ifndef PMU_EVENTS_H |
---|
3 | 3 | #define PMU_EVENTS_H |
---|
4 | 4 | |
---|
| 5 | +enum aggr_mode_class { |
---|
| 6 | + PerChip = 1, |
---|
| 7 | + PerCore |
---|
| 8 | +}; |
---|
| 9 | + |
---|
5 | 10 | /* |
---|
6 | 11 | * Describe each PMU event. Each CPU has a table of PMU events. |
---|
7 | 12 | */ |
---|
.. | .. |
---|
14 | 19 | const char *pmu; |
---|
15 | 20 | const char *unit; |
---|
16 | 21 | const char *perpkg; |
---|
| 22 | + const char *aggr_mode; |
---|
17 | 23 | const char *metric_expr; |
---|
18 | 24 | const char *metric_name; |
---|
19 | 25 | const char *metric_group; |
---|
| 26 | + const char *deprecated; |
---|
| 27 | + const char *metric_constraint; |
---|
20 | 28 | }; |
---|
21 | 29 | |
---|
22 | 30 | /* |
---|
.. | .. |
---|
24 | 32 | * Map a CPU to its table of PMU events. The CPU is identified by the |
---|
25 | 33 | * cpuid field, which is an arch-specific identifier for the CPU. |
---|
26 | 34 | * 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) |
---|
28 | 36 | * |
---|
29 | 37 | * The cpuid can contain any character other than the comma. |
---|
30 | 38 | */ |
---|