14 * Describe each PMU event. Each CPU has a table of PMU events.
22 const char *long_desc;
26 const char *aggr_mode;
27 const char *metric_expr;
28 const char *metric_name;
29 const char *metric_group;
30 const char *deprecated;
31 const char *metric_constraint;
36 * Map a CPU to its table of PMU events. The CPU is identified by the
37 * cpuid field, which is an arch-specific identifier for the CPU.
38 * The identifier specified in tools/perf/pmu-events/arch/xxx/mapfile
39 * must match the get_cpuid_str() in tools/perf/arch/xxx/util/header.c)
41 * The cpuid can contain any character other than the comma.
43 struct pmu_events_map {
46 const char *type; /* core, uncore etc */
47 const struct pmu_event *table;
50 struct pmu_sys_events {
52 const struct pmu_event *table;
56 * Global table mapping each known CPU for the architecture to its
57 * table of PMU events.
59 extern const struct pmu_events_map pmu_events_map[];
60 extern const struct pmu_sys_events pmu_sys_event_tables[];