1 /* SPDX-License-Identifier: GPL-2.0 */
6 * Describe each PMU event. Each CPU has a table of PMU events.
13 const char *long_desc
;
17 const char *metric_expr
;
18 const char *metric_name
;
19 const char *metric_group
;
24 * Map a CPU to its table of PMU events. The CPU is identified by the
25 * cpuid field, which is an arch-specific identifier for the CPU.
26 * 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)
29 * The cpuid can contain any character other than the comma.
31 struct pmu_events_map
{
34 const char *type
; /* core, uncore etc */
35 struct pmu_event
*table
;
39 * Global table mapping each known CPU for the architecture to its
40 * table of PMU events.
42 extern struct pmu_events_map pmu_events_map
[];