diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-10-08 01:32:17 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-10-08 01:32:17 +0000 |
commit | 8f70c8003e9d132fc766ed7d92ce805c093d518b (patch) | |
tree | 6d77a3246e3f04605790d410e7630cb910704ced /pkg/sentry/fs/timerfd | |
parent | 8f9d99c812b7599c52ed98f80c1a33717758a5c6 (diff) | |
parent | a55bd73d4802112a7055de8663e947b9c0f42a2e (diff) |
Merge release-20200928.0-66-ga55bd73d4 (automated)
Diffstat (limited to 'pkg/sentry/fs/timerfd')
-rw-r--r-- | pkg/sentry/fs/timerfd/timerfd_state_autogen.go | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/pkg/sentry/fs/timerfd/timerfd_state_autogen.go b/pkg/sentry/fs/timerfd/timerfd_state_autogen.go index 2a411ceab..15f2d63f6 100644 --- a/pkg/sentry/fs/timerfd/timerfd_state_autogen.go +++ b/pkg/sentry/fs/timerfd/timerfd_state_autogen.go @@ -6,33 +6,33 @@ import ( "gvisor.dev/gvisor/pkg/state" ) -func (x *TimerOperations) StateTypeName() string { +func (t *TimerOperations) StateTypeName() string { return "pkg/sentry/fs/timerfd.TimerOperations" } -func (x *TimerOperations) StateFields() []string { +func (t *TimerOperations) StateFields() []string { return []string{ "timer", "val", } } -func (x *TimerOperations) beforeSave() {} +func (t *TimerOperations) beforeSave() {} -func (x *TimerOperations) StateSave(m state.Sink) { - x.beforeSave() - if !state.IsZeroValue(&x.events) { - state.Failf("events is %#v, expected zero", &x.events) +func (t *TimerOperations) StateSave(stateSinkObject state.Sink) { + t.beforeSave() + if !state.IsZeroValue(&t.events) { + state.Failf("events is %#v, expected zero", &t.events) } - m.Save(0, &x.timer) - m.Save(1, &x.val) + stateSinkObject.Save(0, &t.timer) + stateSinkObject.Save(1, &t.val) } -func (x *TimerOperations) afterLoad() {} +func (t *TimerOperations) afterLoad() {} -func (x *TimerOperations) StateLoad(m state.Source) { - m.Load(0, &x.timer) - m.Load(1, &x.val) +func (t *TimerOperations) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &t.timer) + stateSourceObject.Load(1, &t.val) } func init() { |