summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--pkg/cpuid/cpuid.go4
-rw-r--r--pkg/cpuid/cpuid_parse_test.go5
2 files changed, 7 insertions, 2 deletions
diff --git a/pkg/cpuid/cpuid.go b/pkg/cpuid/cpuid.go
index 9b296eb3e..0571b7cde 100644
--- a/pkg/cpuid/cpuid.go
+++ b/pkg/cpuid/cpuid.go
@@ -226,7 +226,7 @@ const (
_ // ecx bit 25 is reserved.
X86FeatureBPEXT
X86FeaturePERFCTR_TSC
- X86FeaturePERFCTR_L2
+ X86FeaturePERFCTR_LLC
X86FeatureMWAITX
// ECX[31:30] are reserved.
)
@@ -387,7 +387,7 @@ var x86FeatureStrings = map[Feature]string{
X86FeaturePERFCTR_NB: "perfctr_nb",
X86FeatureBPEXT: "bpext",
X86FeaturePERFCTR_TSC: "ptsc",
- X86FeaturePERFCTR_L2: "perfctr_l2",
+ X86FeaturePERFCTR_LLC: "perfctr_llc",
X86FeatureMWAITX: "mwaitx",
// Block 6.
diff --git a/pkg/cpuid/cpuid_parse_test.go b/pkg/cpuid/cpuid_parse_test.go
index 17cd43a1e..e8f87a10e 100644
--- a/pkg/cpuid/cpuid_parse_test.go
+++ b/pkg/cpuid/cpuid_parse_test.go
@@ -124,6 +124,11 @@ func TestHostFeatureFlags(t *testing.T) {
// XSAVES only exposed in
// b8be15d588060a03569ac85dc4a0247460988f5b (4.8).
continue
+ // Block 5.
+ case f == X86FeaturePERFCTR_LLC && (major < 4 || major == 4 && minor < 14):
+ // PERFCTR_LLC renamed in
+ // 910448bbed066ab1082b510eef1ae61bb792d854 (4.14).
+ continue
}
hidden := f.flagString(true) == ""