summaryrefslogtreecommitdiffhomepage
path: root/pkg/cpuid
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-10-08 01:32:17 +0000
committergVisor bot <gvisor-bot@google.com>2020-10-08 01:32:17 +0000
commit8f70c8003e9d132fc766ed7d92ce805c093d518b (patch)
tree6d77a3246e3f04605790d410e7630cb910704ced /pkg/cpuid
parent8f9d99c812b7599c52ed98f80c1a33717758a5c6 (diff)
parenta55bd73d4802112a7055de8663e947b9c0f42a2e (diff)
Merge release-20200928.0-66-ga55bd73d4 (automated)
Diffstat (limited to 'pkg/cpuid')
-rw-r--r--pkg/cpuid/cpuid_arm64_state_autogen.go38
-rw-r--r--pkg/cpuid/cpuid_x86_state_autogen.go112
2 files changed, 75 insertions, 75 deletions
diff --git a/pkg/cpuid/cpuid_arm64_state_autogen.go b/pkg/cpuid/cpuid_arm64_state_autogen.go
index 10569802c..656b8d001 100644
--- a/pkg/cpuid/cpuid_arm64_state_autogen.go
+++ b/pkg/cpuid/cpuid_arm64_state_autogen.go
@@ -8,11 +8,11 @@ import (
"gvisor.dev/gvisor/pkg/state"
)
-func (x *FeatureSet) StateTypeName() string {
+func (f *FeatureSet) StateTypeName() string {
return "pkg/cpuid.FeatureSet"
}
-func (x *FeatureSet) StateFields() []string {
+func (f *FeatureSet) StateFields() []string {
return []string{
"Set",
"CPUImplementer",
@@ -23,27 +23,27 @@ func (x *FeatureSet) StateFields() []string {
}
}
-func (x *FeatureSet) beforeSave() {}
+func (f *FeatureSet) beforeSave() {}
-func (x *FeatureSet) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.Set)
- m.Save(1, &x.CPUImplementer)
- m.Save(2, &x.CPUArchitecture)
- m.Save(3, &x.CPUVariant)
- m.Save(4, &x.CPUPartnum)
- m.Save(5, &x.CPURevision)
+func (f *FeatureSet) StateSave(stateSinkObject state.Sink) {
+ f.beforeSave()
+ stateSinkObject.Save(0, &f.Set)
+ stateSinkObject.Save(1, &f.CPUImplementer)
+ stateSinkObject.Save(2, &f.CPUArchitecture)
+ stateSinkObject.Save(3, &f.CPUVariant)
+ stateSinkObject.Save(4, &f.CPUPartnum)
+ stateSinkObject.Save(5, &f.CPURevision)
}
-func (x *FeatureSet) afterLoad() {}
+func (f *FeatureSet) afterLoad() {}
-func (x *FeatureSet) StateLoad(m state.Source) {
- m.Load(0, &x.Set)
- m.Load(1, &x.CPUImplementer)
- m.Load(2, &x.CPUArchitecture)
- m.Load(3, &x.CPUVariant)
- m.Load(4, &x.CPUPartnum)
- m.Load(5, &x.CPURevision)
+func (f *FeatureSet) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &f.Set)
+ stateSourceObject.Load(1, &f.CPUImplementer)
+ stateSourceObject.Load(2, &f.CPUArchitecture)
+ stateSourceObject.Load(3, &f.CPUVariant)
+ stateSourceObject.Load(4, &f.CPUPartnum)
+ stateSourceObject.Load(5, &f.CPURevision)
}
func init() {
diff --git a/pkg/cpuid/cpuid_x86_state_autogen.go b/pkg/cpuid/cpuid_x86_state_autogen.go
index 14b26bef7..c73dd2291 100644
--- a/pkg/cpuid/cpuid_x86_state_autogen.go
+++ b/pkg/cpuid/cpuid_x86_state_autogen.go
@@ -8,11 +8,11 @@ import (
"gvisor.dev/gvisor/pkg/state"
)
-func (x *Cache) StateTypeName() string {
+func (c *Cache) StateTypeName() string {
return "pkg/cpuid.Cache"
}
-func (x *Cache) StateFields() []string {
+func (c *Cache) StateFields() []string {
return []string{
"Level",
"Type",
@@ -26,40 +26,40 @@ func (x *Cache) StateFields() []string {
}
}
-func (x *Cache) beforeSave() {}
-
-func (x *Cache) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.Level)
- m.Save(1, &x.Type)
- m.Save(2, &x.FullyAssociative)
- m.Save(3, &x.Partitions)
- m.Save(4, &x.Ways)
- m.Save(5, &x.Sets)
- m.Save(6, &x.InvalidateHierarchical)
- m.Save(7, &x.Inclusive)
- m.Save(8, &x.DirectMapped)
+func (c *Cache) beforeSave() {}
+
+func (c *Cache) StateSave(stateSinkObject state.Sink) {
+ c.beforeSave()
+ stateSinkObject.Save(0, &c.Level)
+ stateSinkObject.Save(1, &c.Type)
+ stateSinkObject.Save(2, &c.FullyAssociative)
+ stateSinkObject.Save(3, &c.Partitions)
+ stateSinkObject.Save(4, &c.Ways)
+ stateSinkObject.Save(5, &c.Sets)
+ stateSinkObject.Save(6, &c.InvalidateHierarchical)
+ stateSinkObject.Save(7, &c.Inclusive)
+ stateSinkObject.Save(8, &c.DirectMapped)
}
-func (x *Cache) afterLoad() {}
-
-func (x *Cache) StateLoad(m state.Source) {
- m.Load(0, &x.Level)
- m.Load(1, &x.Type)
- m.Load(2, &x.FullyAssociative)
- m.Load(3, &x.Partitions)
- m.Load(4, &x.Ways)
- m.Load(5, &x.Sets)
- m.Load(6, &x.InvalidateHierarchical)
- m.Load(7, &x.Inclusive)
- m.Load(8, &x.DirectMapped)
+func (c *Cache) afterLoad() {}
+
+func (c *Cache) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &c.Level)
+ stateSourceObject.Load(1, &c.Type)
+ stateSourceObject.Load(2, &c.FullyAssociative)
+ stateSourceObject.Load(3, &c.Partitions)
+ stateSourceObject.Load(4, &c.Ways)
+ stateSourceObject.Load(5, &c.Sets)
+ stateSourceObject.Load(6, &c.InvalidateHierarchical)
+ stateSourceObject.Load(7, &c.Inclusive)
+ stateSourceObject.Load(8, &c.DirectMapped)
}
-func (x *FeatureSet) StateTypeName() string {
+func (f *FeatureSet) StateTypeName() string {
return "pkg/cpuid.FeatureSet"
}
-func (x *FeatureSet) StateFields() []string {
+func (f *FeatureSet) StateFields() []string {
return []string{
"Set",
"VendorID",
@@ -74,35 +74,35 @@ func (x *FeatureSet) StateFields() []string {
}
}
-func (x *FeatureSet) beforeSave() {}
-
-func (x *FeatureSet) StateSave(m state.Sink) {
- x.beforeSave()
- m.Save(0, &x.Set)
- m.Save(1, &x.VendorID)
- m.Save(2, &x.ExtendedFamily)
- m.Save(3, &x.ExtendedModel)
- m.Save(4, &x.ProcessorType)
- m.Save(5, &x.Family)
- m.Save(6, &x.Model)
- m.Save(7, &x.SteppingID)
- m.Save(8, &x.Caches)
- m.Save(9, &x.CacheLine)
+func (f *FeatureSet) beforeSave() {}
+
+func (f *FeatureSet) StateSave(stateSinkObject state.Sink) {
+ f.beforeSave()
+ stateSinkObject.Save(0, &f.Set)
+ stateSinkObject.Save(1, &f.VendorID)
+ stateSinkObject.Save(2, &f.ExtendedFamily)
+ stateSinkObject.Save(3, &f.ExtendedModel)
+ stateSinkObject.Save(4, &f.ProcessorType)
+ stateSinkObject.Save(5, &f.Family)
+ stateSinkObject.Save(6, &f.Model)
+ stateSinkObject.Save(7, &f.SteppingID)
+ stateSinkObject.Save(8, &f.Caches)
+ stateSinkObject.Save(9, &f.CacheLine)
}
-func (x *FeatureSet) afterLoad() {}
-
-func (x *FeatureSet) StateLoad(m state.Source) {
- m.Load(0, &x.Set)
- m.Load(1, &x.VendorID)
- m.Load(2, &x.ExtendedFamily)
- m.Load(3, &x.ExtendedModel)
- m.Load(4, &x.ProcessorType)
- m.Load(5, &x.Family)
- m.Load(6, &x.Model)
- m.Load(7, &x.SteppingID)
- m.Load(8, &x.Caches)
- m.Load(9, &x.CacheLine)
+func (f *FeatureSet) afterLoad() {}
+
+func (f *FeatureSet) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &f.Set)
+ stateSourceObject.Load(1, &f.VendorID)
+ stateSourceObject.Load(2, &f.ExtendedFamily)
+ stateSourceObject.Load(3, &f.ExtendedModel)
+ stateSourceObject.Load(4, &f.ProcessorType)
+ stateSourceObject.Load(5, &f.Family)
+ stateSourceObject.Load(6, &f.Model)
+ stateSourceObject.Load(7, &f.SteppingID)
+ stateSourceObject.Load(8, &f.Caches)
+ stateSourceObject.Load(9, &f.CacheLine)
}
func init() {