summaryrefslogtreecommitdiffhomepage
path: root/pkg/sentry/usage
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-10-09 19:26:05 +0000
committergVisor bot <gvisor-bot@google.com>2020-10-09 19:26:05 +0000
commit69aa120d401c6d6028aebe4c050cefb4794a60f1 (patch)
tree9b57d56a75d3900b35c7814bf1417057f8fac933 /pkg/sentry/usage
parent578aece760dd47a06a686f82efab5b650807d4c5 (diff)
parent743327817faa1aa46ff3b31f74a0c5c2d047d65a (diff)
Merge release-20200928.0-78-g743327817 (automated)
Diffstat (limited to 'pkg/sentry/usage')
-rw-r--r--pkg/sentry/usage/usage_state_autogen.go26
1 files changed, 13 insertions, 13 deletions
diff --git a/pkg/sentry/usage/usage_state_autogen.go b/pkg/sentry/usage/usage_state_autogen.go
index 0ef018bac..50f6d27ba 100644
--- a/pkg/sentry/usage/usage_state_autogen.go
+++ b/pkg/sentry/usage/usage_state_autogen.go
@@ -6,11 +6,11 @@ import (
"gvisor.dev/gvisor/pkg/state"
)
-func (c *CPUStats) StateTypeName() string {
+func (s *CPUStats) StateTypeName() string {
return "pkg/sentry/usage.CPUStats"
}
-func (c *CPUStats) StateFields() []string {
+func (s *CPUStats) StateFields() []string {
return []string{
"UserTime",
"SysTime",
@@ -18,21 +18,21 @@ func (c *CPUStats) StateFields() []string {
}
}
-func (c *CPUStats) beforeSave() {}
+func (s *CPUStats) beforeSave() {}
-func (c *CPUStats) StateSave(stateSinkObject state.Sink) {
- c.beforeSave()
- stateSinkObject.Save(0, &c.UserTime)
- stateSinkObject.Save(1, &c.SysTime)
- stateSinkObject.Save(2, &c.VoluntarySwitches)
+func (s *CPUStats) StateSave(stateSinkObject state.Sink) {
+ s.beforeSave()
+ stateSinkObject.Save(0, &s.UserTime)
+ stateSinkObject.Save(1, &s.SysTime)
+ stateSinkObject.Save(2, &s.VoluntarySwitches)
}
-func (c *CPUStats) afterLoad() {}
+func (s *CPUStats) afterLoad() {}
-func (c *CPUStats) StateLoad(stateSourceObject state.Source) {
- stateSourceObject.Load(0, &c.UserTime)
- stateSourceObject.Load(1, &c.SysTime)
- stateSourceObject.Load(2, &c.VoluntarySwitches)
+func (s *CPUStats) StateLoad(stateSourceObject state.Source) {
+ stateSourceObject.Load(0, &s.UserTime)
+ stateSourceObject.Load(1, &s.SysTime)
+ stateSourceObject.Load(2, &s.VoluntarySwitches)
}
func (i *IO) StateTypeName() string {