Skip to content

Commit 4188374

Browse files
authored
Merge pull request #196 from intel/ocrregresion
fix regression in metrics command causing error on some AWS m5 and m6 instance types
2 parents c93632d + 4710232 commit 4188374

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cmd/metrics/event_defs.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ func isCollectableEvent(event EventDefinition, metadata Metadata) bool {
144144
}
145145
// off-core response events
146146
if event.Device == "cpu" && (strings.HasPrefix(event.Name, "OCR") || strings.HasPrefix(event.Name, "OFFCORE_REQUESTS_OUTSTANDING")) {
147-
if !metadata.SupportsOCR {
147+
if !(metadata.SupportsOCR && metadata.SupportsUncore) {
148148
slog.Debug("Off-core response events not supported on target", slog.String("event", event.Name))
149149
return false
150150
} else if flagScope == scopeProcess || flagScope == scopeCgroup {

0 commit comments

Comments
 (0)