You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
refactor uncore event collection and handling (#462)
* don't adjust core c6 residency event if in cpu granularity
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
* don't expand uncore events
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
* refactor: optimize uncore event aggregation in bucketed events
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
* manual merge
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
---------
Signed-off-by: Harper, Jason M <jason.m.harper@intel.com>
slog.Debug("Events not collectable on target", slog.String("events", uncollectable.String()))
103
97
}
104
98
return
105
99
}
106
100
107
-
// abbreviateEventName replaces long event names with abbreviations to reduce the length of the perf command.
108
-
// focus is on uncore events because they are repeated for each uncore device
109
-
funcabbreviateEventName(eventstring) string {
110
-
// Abbreviations must be unique and in order. And, if replacing UNC_*, the abbreviation must begin with "UNC" because this is how we identify uncore events when collapsing them.
111
-
varabbreviations= [][]string{
112
-
{"UNC_CHA_TOR_INSERTS", "UNCCTI"},
113
-
{"UNC_CHA_TOR_OCCUPANCY", "UNCCTO"},
114
-
{"UNC_CHA_CLOCKTICKS", "UNCCCT"},
115
-
{"UNC_M_CAS_COUNT_SCH", "UNCMCC"},
116
-
{"IA_MISS_DRD_REMOTE", "IMDR"},
117
-
{"IA_MISS_DRD_LOCAL", "IMDL"},
118
-
{"IA_MISS_LLCPREFDATA", "IMLP"},
119
-
{"IA_MISS_LLCPREFRFO", "IMLR"},
120
-
{"IA_MISS_DRD_PREF_LOCAL", "IMDPL"},
121
-
{"IA_MISS_DRD_PREF_REMOTE", "IMDRP"},
122
-
{"IA_MISS_CRD_PREF", "IMCP"},
123
-
{"IA_MISS_RFO_PREF", "IMRP"},
124
-
{"IA_MISS_RFO", "IMRF"},
125
-
{"IA_MISS_CRD", "IMC"},
126
-
{"IA_MISS_DRD", "IMD"},
127
-
{"IO_PCIRDCUR", "IPCI"},
128
-
{"IO_ITOMCACHENEAR", "IITN"},
129
-
{"IO_ITOM", "IITO"},
130
-
{"IMD_OPT", "IMDO"},
131
-
}
132
-
// if an abbreviation key is found in the event, replace the matching portion of the event with the abbreviation
0 commit comments