1
2#ifndef PMU_EVENTS_H
3#define PMU_EVENTS_H
4
5enum aggr_mode_class {
6 PerChip = 1,
7 PerCore
8};
9
10
11
12
13struct pmu_event {
14 const char *name;
15 const char *compat;
16 const char *event;
17 const char *desc;
18 const char *topic;
19 const char *long_desc;
20 const char *pmu;
21 const char *unit;
22 const char *perpkg;
23 const char *aggr_mode;
24 const char *metric_expr;
25 const char *metric_name;
26 const char *metric_group;
27 const char *deprecated;
28 const char *metric_constraint;
29};
30
31
32
33
34
35
36
37
38
39
40struct pmu_events_map {
41 const char *cpuid;
42 const char *version;
43 const char *type;
44 const struct pmu_event *table;
45};
46
47struct pmu_sys_events {
48 const char *name;
49 const struct pmu_event *table;
50};
51
52
53
54
55
56extern const struct pmu_events_map pmu_events_map[];
57extern const struct pmu_sys_events pmu_sys_event_tables[];
58
59#endif
60