diff options
author | gVisor bot <gvisor-bot@google.com> | 2021-03-23 19:03:20 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-03-23 19:03:20 +0000 |
commit | e48ad2ada0357cb8ee9185074aaff7ab44d84631 (patch) | |
tree | f8848b871cd5e3a0d07853083e024a231438085c /pkg/sentry/kernel | |
parent | 0fea1c57d9bc63416cc366720b2f53139468352f (diff) | |
parent | acb4c62885629d6d3ee977b93c27282abed0b33f (diff) |
Merge release-20210315.0-15-gacb4c6288 (automated)
Diffstat (limited to 'pkg/sentry/kernel')
-rw-r--r-- | pkg/sentry/kernel/auth/auth_state_autogen.go | 14 | ||||
-rw-r--r-- | pkg/sentry/kernel/auth/auth_unsafe_state_autogen.go | 2 | ||||
-rw-r--r-- | pkg/sentry/kernel/epoll/epoll_state_autogen.go | 10 | ||||
-rw-r--r-- | pkg/sentry/kernel/eventfd/eventfd_state_autogen.go | 2 | ||||
-rw-r--r-- | pkg/sentry/kernel/fasync/fasync_state_autogen.go | 2 | ||||
-rw-r--r-- | pkg/sentry/kernel/futex/futex_state_autogen.go | 8 | ||||
-rw-r--r-- | pkg/sentry/kernel/futex/futex_unsafe_state_autogen.go | 2 | ||||
-rw-r--r-- | pkg/sentry/kernel/kernel_opts_state_autogen.go | 2 | ||||
-rw-r--r-- | pkg/sentry/kernel/kernel_state_autogen.go | 142 | ||||
-rw-r--r-- | pkg/sentry/kernel/pipe/pipe_state_autogen.go | 14 | ||||
-rw-r--r-- | pkg/sentry/kernel/semaphore/semaphore_state_autogen.go | 12 | ||||
-rw-r--r-- | pkg/sentry/kernel/shm/shm_state_autogen.go | 6 | ||||
-rw-r--r-- | pkg/sentry/kernel/signalfd/signalfd_state_autogen.go | 2 | ||||
-rw-r--r-- | pkg/sentry/kernel/time/time_state_autogen.go | 6 |
14 files changed, 224 insertions, 0 deletions
diff --git a/pkg/sentry/kernel/auth/auth_state_autogen.go b/pkg/sentry/kernel/auth/auth_state_autogen.go index b844c1fdc..5a7f55933 100644 --- a/pkg/sentry/kernel/auth/auth_state_autogen.go +++ b/pkg/sentry/kernel/auth/auth_state_autogen.go @@ -30,6 +30,7 @@ func (c *Credentials) StateFields() []string { func (c *Credentials) beforeSave() {} +// +checklocksignore func (c *Credentials) StateSave(stateSinkObject state.Sink) { c.beforeSave() stateSinkObject.Save(0, &c.RealKUID) @@ -49,6 +50,7 @@ func (c *Credentials) StateSave(stateSinkObject state.Sink) { func (c *Credentials) afterLoad() {} +// +checklocksignore func (c *Credentials) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &c.RealKUID) stateSourceObject.Load(1, &c.EffectiveKUID) @@ -79,6 +81,7 @@ func (i *IDMapEntry) StateFields() []string { func (i *IDMapEntry) beforeSave() {} +// +checklocksignore func (i *IDMapEntry) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.FirstID) @@ -88,6 +91,7 @@ func (i *IDMapEntry) StateSave(stateSinkObject state.Sink) { func (i *IDMapEntry) afterLoad() {} +// +checklocksignore func (i *IDMapEntry) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.FirstID) stateSourceObject.Load(1, &i.FirstParentID) @@ -107,6 +111,7 @@ func (r *idMapRange) StateFields() []string { func (r *idMapRange) beforeSave() {} +// +checklocksignore func (r *idMapRange) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.Start) @@ -115,6 +120,7 @@ func (r *idMapRange) StateSave(stateSinkObject state.Sink) { func (r *idMapRange) afterLoad() {} +// +checklocksignore func (r *idMapRange) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.Start) stateSourceObject.Load(1, &r.End) @@ -132,6 +138,7 @@ func (s *idMapSet) StateFields() []string { func (s *idMapSet) beforeSave() {} +// +checklocksignore func (s *idMapSet) StateSave(stateSinkObject state.Sink) { s.beforeSave() var rootValue *idMapSegmentDataSlices = s.saveRoot() @@ -140,6 +147,7 @@ func (s *idMapSet) StateSave(stateSinkObject state.Sink) { func (s *idMapSet) afterLoad() {} +// +checklocksignore func (s *idMapSet) StateLoad(stateSourceObject state.Source) { stateSourceObject.LoadValue(0, new(*idMapSegmentDataSlices), func(y interface{}) { s.loadRoot(y.(*idMapSegmentDataSlices)) }) } @@ -163,6 +171,7 @@ func (n *idMapnode) StateFields() []string { func (n *idMapnode) beforeSave() {} +// +checklocksignore func (n *idMapnode) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.nrSegments) @@ -177,6 +186,7 @@ func (n *idMapnode) StateSave(stateSinkObject state.Sink) { func (n *idMapnode) afterLoad() {} +// +checklocksignore func (n *idMapnode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.nrSegments) stateSourceObject.Load(1, &n.parent) @@ -202,6 +212,7 @@ func (i *idMapSegmentDataSlices) StateFields() []string { func (i *idMapSegmentDataSlices) beforeSave() {} +// +checklocksignore func (i *idMapSegmentDataSlices) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.Start) @@ -211,6 +222,7 @@ func (i *idMapSegmentDataSlices) StateSave(stateSinkObject state.Sink) { func (i *idMapSegmentDataSlices) afterLoad() {} +// +checklocksignore func (i *idMapSegmentDataSlices) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.Start) stateSourceObject.Load(1, &i.End) @@ -234,6 +246,7 @@ func (ns *UserNamespace) StateFields() []string { func (ns *UserNamespace) beforeSave() {} +// +checklocksignore func (ns *UserNamespace) StateSave(stateSinkObject state.Sink) { ns.beforeSave() stateSinkObject.Save(0, &ns.parent) @@ -246,6 +259,7 @@ func (ns *UserNamespace) StateSave(stateSinkObject state.Sink) { func (ns *UserNamespace) afterLoad() {} +// +checklocksignore func (ns *UserNamespace) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &ns.parent) stateSourceObject.Load(1, &ns.owner) diff --git a/pkg/sentry/kernel/auth/auth_unsafe_state_autogen.go b/pkg/sentry/kernel/auth/auth_unsafe_state_autogen.go index 7b4e62296..61f7e4ce9 100644 --- a/pkg/sentry/kernel/auth/auth_unsafe_state_autogen.go +++ b/pkg/sentry/kernel/auth/auth_unsafe_state_autogen.go @@ -18,6 +18,7 @@ func (p *AtomicPtrCredentials) StateFields() []string { func (p *AtomicPtrCredentials) beforeSave() {} +// +checklocksignore func (p *AtomicPtrCredentials) StateSave(stateSinkObject state.Sink) { p.beforeSave() var ptrValue *Credentials = p.savePtr() @@ -26,6 +27,7 @@ func (p *AtomicPtrCredentials) StateSave(stateSinkObject state.Sink) { func (p *AtomicPtrCredentials) afterLoad() {} +// +checklocksignore func (p *AtomicPtrCredentials) StateLoad(stateSourceObject state.Source) { stateSourceObject.LoadValue(0, new(*Credentials), func(y interface{}) { p.loadPtr(y.(*Credentials)) }) } diff --git a/pkg/sentry/kernel/epoll/epoll_state_autogen.go b/pkg/sentry/kernel/epoll/epoll_state_autogen.go index ba00fe082..44bd520ac 100644 --- a/pkg/sentry/kernel/epoll/epoll_state_autogen.go +++ b/pkg/sentry/kernel/epoll/epoll_state_autogen.go @@ -19,6 +19,7 @@ func (f *FileIdentifier) StateFields() []string { func (f *FileIdentifier) beforeSave() {} +// +checklocksignore func (f *FileIdentifier) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.File) @@ -27,6 +28,7 @@ func (f *FileIdentifier) StateSave(stateSinkObject state.Sink) { func (f *FileIdentifier) afterLoad() {} +// +checklocksignore func (f *FileIdentifier) StateLoad(stateSourceObject state.Source) { stateSourceObject.LoadWait(0, &f.File) stateSourceObject.Load(1, &f.Fd) @@ -49,6 +51,7 @@ func (p *pollEntry) StateFields() []string { func (p *pollEntry) beforeSave() {} +// +checklocksignore func (p *pollEntry) StateSave(stateSinkObject state.Sink) { p.beforeSave() stateSinkObject.Save(0, &p.pollEntryEntry) @@ -59,6 +62,7 @@ func (p *pollEntry) StateSave(stateSinkObject state.Sink) { stateSinkObject.Save(5, &p.epoll) } +// +checklocksignore func (p *pollEntry) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &p.pollEntryEntry) stateSourceObject.LoadWait(1, &p.id) @@ -84,6 +88,7 @@ func (e *EventPoll) StateFields() []string { func (e *EventPoll) beforeSave() {} +// +checklocksignore func (e *EventPoll) StateSave(stateSinkObject state.Sink) { e.beforeSave() if !state.IsZeroValue(&e.FilePipeSeek) { @@ -113,6 +118,7 @@ func (e *EventPoll) StateSave(stateSinkObject state.Sink) { stateSinkObject.Save(3, &e.disabledList) } +// +checklocksignore func (e *EventPoll) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &e.files) stateSourceObject.Load(1, &e.readyList) @@ -134,6 +140,7 @@ func (l *pollEntryList) StateFields() []string { func (l *pollEntryList) beforeSave() {} +// +checklocksignore func (l *pollEntryList) StateSave(stateSinkObject state.Sink) { l.beforeSave() stateSinkObject.Save(0, &l.head) @@ -142,6 +149,7 @@ func (l *pollEntryList) StateSave(stateSinkObject state.Sink) { func (l *pollEntryList) afterLoad() {} +// +checklocksignore func (l *pollEntryList) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.head) stateSourceObject.Load(1, &l.tail) @@ -160,6 +168,7 @@ func (e *pollEntryEntry) StateFields() []string { func (e *pollEntryEntry) beforeSave() {} +// +checklocksignore func (e *pollEntryEntry) StateSave(stateSinkObject state.Sink) { e.beforeSave() stateSinkObject.Save(0, &e.next) @@ -168,6 +177,7 @@ func (e *pollEntryEntry) StateSave(stateSinkObject state.Sink) { func (e *pollEntryEntry) afterLoad() {} +// +checklocksignore func (e *pollEntryEntry) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &e.next) stateSourceObject.Load(1, &e.prev) diff --git a/pkg/sentry/kernel/eventfd/eventfd_state_autogen.go b/pkg/sentry/kernel/eventfd/eventfd_state_autogen.go index 336262eed..596920c42 100644 --- a/pkg/sentry/kernel/eventfd/eventfd_state_autogen.go +++ b/pkg/sentry/kernel/eventfd/eventfd_state_autogen.go @@ -20,6 +20,7 @@ func (e *EventOperations) StateFields() []string { func (e *EventOperations) beforeSave() {} +// +checklocksignore func (e *EventOperations) StateSave(stateSinkObject state.Sink) { e.beforeSave() if !state.IsZeroValue(&e.wq) { @@ -32,6 +33,7 @@ func (e *EventOperations) StateSave(stateSinkObject state.Sink) { func (e *EventOperations) afterLoad() {} +// +checklocksignore func (e *EventOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &e.val) stateSourceObject.Load(1, &e.semMode) diff --git a/pkg/sentry/kernel/fasync/fasync_state_autogen.go b/pkg/sentry/kernel/fasync/fasync_state_autogen.go index 6ddebc7bb..8ec069b92 100644 --- a/pkg/sentry/kernel/fasync/fasync_state_autogen.go +++ b/pkg/sentry/kernel/fasync/fasync_state_autogen.go @@ -25,6 +25,7 @@ func (a *FileAsync) StateFields() []string { func (a *FileAsync) beforeSave() {} +// +checklocksignore func (a *FileAsync) StateSave(stateSinkObject state.Sink) { a.beforeSave() stateSinkObject.Save(0, &a.e) @@ -39,6 +40,7 @@ func (a *FileAsync) StateSave(stateSinkObject state.Sink) { func (a *FileAsync) afterLoad() {} +// +checklocksignore func (a *FileAsync) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &a.e) stateSourceObject.Load(1, &a.fd) diff --git a/pkg/sentry/kernel/futex/futex_state_autogen.go b/pkg/sentry/kernel/futex/futex_state_autogen.go index f31e571f4..6e22b313a 100644 --- a/pkg/sentry/kernel/futex/futex_state_autogen.go +++ b/pkg/sentry/kernel/futex/futex_state_autogen.go @@ -16,6 +16,7 @@ func (b *bucket) StateFields() []string { func (b *bucket) beforeSave() {} +// +checklocksignore func (b *bucket) StateSave(stateSinkObject state.Sink) { b.beforeSave() if !state.IsZeroValue(&b.waiters) { @@ -25,6 +26,7 @@ func (b *bucket) StateSave(stateSinkObject state.Sink) { func (b *bucket) afterLoad() {} +// +checklocksignore func (b *bucket) StateLoad(stateSourceObject state.Source) { } @@ -40,6 +42,7 @@ func (m *Manager) StateFields() []string { func (m *Manager) beforeSave() {} +// +checklocksignore func (m *Manager) StateSave(stateSinkObject state.Sink) { m.beforeSave() if !state.IsZeroValue(&m.privateBuckets) { @@ -50,6 +53,7 @@ func (m *Manager) StateSave(stateSinkObject state.Sink) { func (m *Manager) afterLoad() {} +// +checklocksignore func (m *Manager) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &m.sharedBucket) } @@ -67,6 +71,7 @@ func (l *waiterList) StateFields() []string { func (l *waiterList) beforeSave() {} +// +checklocksignore func (l *waiterList) StateSave(stateSinkObject state.Sink) { l.beforeSave() stateSinkObject.Save(0, &l.head) @@ -75,6 +80,7 @@ func (l *waiterList) StateSave(stateSinkObject state.Sink) { func (l *waiterList) afterLoad() {} +// +checklocksignore func (l *waiterList) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.head) stateSourceObject.Load(1, &l.tail) @@ -93,6 +99,7 @@ func (e *waiterEntry) StateFields() []string { func (e *waiterEntry) beforeSave() {} +// +checklocksignore func (e *waiterEntry) StateSave(stateSinkObject state.Sink) { e.beforeSave() stateSinkObject.Save(0, &e.next) @@ -101,6 +108,7 @@ func (e *waiterEntry) StateSave(stateSinkObject state.Sink) { func (e *waiterEntry) afterLoad() {} +// +checklocksignore func (e *waiterEntry) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &e.next) stateSourceObject.Load(1, &e.prev) diff --git a/pkg/sentry/kernel/futex/futex_unsafe_state_autogen.go b/pkg/sentry/kernel/futex/futex_unsafe_state_autogen.go index 19e23104f..84bb180fc 100644 --- a/pkg/sentry/kernel/futex/futex_unsafe_state_autogen.go +++ b/pkg/sentry/kernel/futex/futex_unsafe_state_autogen.go @@ -18,6 +18,7 @@ func (p *AtomicPtrBucket) StateFields() []string { func (p *AtomicPtrBucket) beforeSave() {} +// +checklocksignore func (p *AtomicPtrBucket) StateSave(stateSinkObject state.Sink) { p.beforeSave() var ptrValue *bucket = p.savePtr() @@ -26,6 +27,7 @@ func (p *AtomicPtrBucket) StateSave(stateSinkObject state.Sink) { func (p *AtomicPtrBucket) afterLoad() {} +// +checklocksignore func (p *AtomicPtrBucket) StateLoad(stateSourceObject state.Source) { stateSourceObject.LoadValue(0, new(*bucket), func(y interface{}) { p.loadPtr(y.(*bucket)) }) } diff --git a/pkg/sentry/kernel/kernel_opts_state_autogen.go b/pkg/sentry/kernel/kernel_opts_state_autogen.go index 7780c995f..73334db4c 100644 --- a/pkg/sentry/kernel/kernel_opts_state_autogen.go +++ b/pkg/sentry/kernel/kernel_opts_state_autogen.go @@ -16,12 +16,14 @@ func (s *SpecialOpts) StateFields() []string { func (s *SpecialOpts) beforeSave() {} +// +checklocksignore func (s *SpecialOpts) StateSave(stateSinkObject state.Sink) { s.beforeSave() } func (s *SpecialOpts) afterLoad() {} +// +checklocksignore func (s *SpecialOpts) StateLoad(stateSourceObject state.Source) { } diff --git a/pkg/sentry/kernel/kernel_state_autogen.go b/pkg/sentry/kernel/kernel_state_autogen.go index 12b076fc6..bd531fe00 100644 --- a/pkg/sentry/kernel/kernel_state_autogen.go +++ b/pkg/sentry/kernel/kernel_state_autogen.go @@ -24,6 +24,7 @@ func (a *abstractEndpoint) StateFields() []string { func (a *abstractEndpoint) beforeSave() {} +// +checklocksignore func (a *abstractEndpoint) StateSave(stateSinkObject state.Sink) { a.beforeSave() stateSinkObject.Save(0, &a.ep) @@ -34,6 +35,7 @@ func (a *abstractEndpoint) StateSave(stateSinkObject state.Sink) { func (a *abstractEndpoint) afterLoad() {} +// +checklocksignore func (a *abstractEndpoint) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &a.ep) stateSourceObject.Load(1, &a.socket) @@ -53,6 +55,7 @@ func (a *AbstractSocketNamespace) StateFields() []string { func (a *AbstractSocketNamespace) beforeSave() {} +// +checklocksignore func (a *AbstractSocketNamespace) StateSave(stateSinkObject state.Sink) { a.beforeSave() stateSinkObject.Save(0, &a.endpoints) @@ -60,6 +63,7 @@ func (a *AbstractSocketNamespace) StateSave(stateSinkObject state.Sink) { func (a *AbstractSocketNamespace) afterLoad() {} +// +checklocksignore func (a *AbstractSocketNamespace) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &a.endpoints) } @@ -76,6 +80,7 @@ func (f *FDFlags) StateFields() []string { func (f *FDFlags) beforeSave() {} +// +checklocksignore func (f *FDFlags) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.CloseOnExec) @@ -83,6 +88,7 @@ func (f *FDFlags) StateSave(stateSinkObject state.Sink) { func (f *FDFlags) afterLoad() {} +// +checklocksignore func (f *FDFlags) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.CloseOnExec) } @@ -101,6 +107,7 @@ func (d *descriptor) StateFields() []string { func (d *descriptor) beforeSave() {} +// +checklocksignore func (d *descriptor) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.file) @@ -110,6 +117,7 @@ func (d *descriptor) StateSave(stateSinkObject state.Sink) { func (d *descriptor) afterLoad() {} +// +checklocksignore func (d *descriptor) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.file) stateSourceObject.Load(1, &d.fileVFS2) @@ -132,6 +140,7 @@ func (f *FDTable) StateFields() []string { func (f *FDTable) beforeSave() {} +// +checklocksignore func (f *FDTable) StateSave(stateSinkObject state.Sink) { f.beforeSave() var descriptorTableValue map[int32]descriptor = f.saveDescriptorTable() @@ -144,6 +153,7 @@ func (f *FDTable) StateSave(stateSinkObject state.Sink) { func (f *FDTable) afterLoad() {} +// +checklocksignore func (f *FDTable) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.FDTableRefs) stateSourceObject.Load(1, &f.k) @@ -164,11 +174,13 @@ func (r *FDTableRefs) StateFields() []string { func (r *FDTableRefs) beforeSave() {} +// +checklocksignore func (r *FDTableRefs) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.refCount) } +// +checklocksignore func (r *FDTableRefs) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.refCount) stateSourceObject.AfterLoad(r.afterLoad) @@ -191,6 +203,7 @@ func (f *FSContext) StateFields() []string { func (f *FSContext) beforeSave() {} +// +checklocksignore func (f *FSContext) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.FSContextRefs) @@ -203,6 +216,7 @@ func (f *FSContext) StateSave(stateSinkObject state.Sink) { func (f *FSContext) afterLoad() {} +// +checklocksignore func (f *FSContext) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.FSContextRefs) stateSourceObject.Load(1, &f.root) @@ -224,11 +238,13 @@ func (r *FSContextRefs) StateFields() []string { func (r *FSContextRefs) beforeSave() {} +// +checklocksignore func (r *FSContextRefs) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.refCount) } +// +checklocksignore func (r *FSContextRefs) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.refCount) stateSourceObject.AfterLoad(r.afterLoad) @@ -249,6 +265,7 @@ func (i *IPCNamespace) StateFields() []string { func (i *IPCNamespace) beforeSave() {} +// +checklocksignore func (i *IPCNamespace) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.IPCNamespaceRefs) @@ -259,6 +276,7 @@ func (i *IPCNamespace) StateSave(stateSinkObject state.Sink) { func (i *IPCNamespace) afterLoad() {} +// +checklocksignore func (i *IPCNamespace) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.IPCNamespaceRefs) stateSourceObject.Load(1, &i.userNS) @@ -278,11 +296,13 @@ func (r *IPCNamespaceRefs) StateFields() []string { func (r *IPCNamespaceRefs) beforeSave() {} +// +checklocksignore func (r *IPCNamespaceRefs) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.refCount) } +// +checklocksignore func (r *IPCNamespaceRefs) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.refCount) stateSourceObject.AfterLoad(r.afterLoad) @@ -338,6 +358,7 @@ func (k *Kernel) StateFields() []string { func (k *Kernel) beforeSave() {} +// +checklocksignore func (k *Kernel) StateSave(stateSinkObject state.Sink) { k.beforeSave() var danglingEndpointsValue []tcpip.Endpoint = k.saveDanglingEndpoints() @@ -385,6 +406,7 @@ func (k *Kernel) StateSave(stateSinkObject state.Sink) { func (k *Kernel) afterLoad() {} +// +checklocksignore func (k *Kernel) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &k.featureSet) stateSourceObject.Load(1, &k.timekeeper) @@ -442,6 +464,7 @@ func (s *SocketRecord) StateFields() []string { func (s *SocketRecord) beforeSave() {} +// +checklocksignore func (s *SocketRecord) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.k) @@ -452,6 +475,7 @@ func (s *SocketRecord) StateSave(stateSinkObject state.Sink) { func (s *SocketRecord) afterLoad() {} +// +checklocksignore func (s *SocketRecord) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.k) stateSourceObject.Load(1, &s.Sock) @@ -472,6 +496,7 @@ func (s *SocketRecordVFS1) StateFields() []string { func (s *SocketRecordVFS1) beforeSave() {} +// +checklocksignore func (s *SocketRecordVFS1) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.socketEntry) @@ -480,6 +505,7 @@ func (s *SocketRecordVFS1) StateSave(stateSinkObject state.Sink) { func (s *SocketRecordVFS1) afterLoad() {} +// +checklocksignore func (s *SocketRecordVFS1) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.socketEntry) stateSourceObject.Load(1, &s.SocketRecord) @@ -497,6 +523,7 @@ func (p *pendingSignals) StateFields() []string { func (p *pendingSignals) beforeSave() {} +// +checklocksignore func (p *pendingSignals) StateSave(stateSinkObject state.Sink) { p.beforeSave() var signalsValue []savedPendingSignal = p.saveSignals() @@ -505,6 +532,7 @@ func (p *pendingSignals) StateSave(stateSinkObject state.Sink) { func (p *pendingSignals) afterLoad() {} +// +checklocksignore func (p *pendingSignals) StateLoad(stateSourceObject state.Source) { stateSourceObject.LoadValue(0, new([]savedPendingSignal), func(y interface{}) { p.loadSignals(y.([]savedPendingSignal)) }) } @@ -522,6 +550,7 @@ func (p *pendingSignalQueue) StateFields() []string { func (p *pendingSignalQueue) beforeSave() {} +// +checklocksignore func (p *pendingSignalQueue) StateSave(stateSinkObject state.Sink) { p.beforeSave() stateSinkObject.Save(0, &p.pendingSignalList) @@ -530,6 +559,7 @@ func (p *pendingSignalQueue) StateSave(stateSinkObject state.Sink) { func (p *pendingSignalQueue) afterLoad() {} +// +checklocksignore func (p *pendingSignalQueue) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &p.pendingSignalList) stateSourceObject.Load(1, &p.length) @@ -549,6 +579,7 @@ func (p *pendingSignal) StateFields() []string { func (p *pendingSignal) beforeSave() {} +// +checklocksignore func (p *pendingSignal) StateSave(stateSinkObject state.Sink) { p.beforeSave() stateSinkObject.Save(0, &p.pendingSignalEntry) @@ -558,6 +589,7 @@ func (p *pendingSignal) StateSave(stateSinkObject state.Sink) { func (p *pendingSignal) afterLoad() {} +// +checklocksignore func (p *pendingSignal) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &p.pendingSignalEntry) stateSourceObject.Load(1, &p.SignalInfo) @@ -577,6 +609,7 @@ func (l *pendingSignalList) StateFields() []string { func (l *pendingSignalList) beforeSave() {} +// +checklocksignore func (l *pendingSignalList) StateSave(stateSinkObject state.Sink) { l.beforeSave() stateSinkObject.Save(0, &l.head) @@ -585,6 +618,7 @@ func (l *pendingSignalList) StateSave(stateSinkObject state.Sink) { func (l *pendingSignalList) afterLoad() {} +// +checklocksignore func (l *pendingSignalList) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.head) stateSourceObject.Load(1, &l.tail) @@ -603,6 +637,7 @@ func (e *pendingSignalEntry) StateFields() []string { func (e *pendingSignalEntry) beforeSave() {} +// +checklocksignore func (e *pendingSignalEntry) StateSave(stateSinkObject state.Sink) { e.beforeSave() stateSinkObject.Save(0, &e.next) @@ -611,6 +646,7 @@ func (e *pendingSignalEntry) StateSave(stateSinkObject state.Sink) { func (e *pendingSignalEntry) afterLoad() {} +// +checklocksignore func (e *pendingSignalEntry) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &e.next) stateSourceObject.Load(1, &e.prev) @@ -629,6 +665,7 @@ func (s *savedPendingSignal) StateFields() []string { func (s *savedPendingSignal) beforeSave() {} +// +checklocksignore func (s *savedPendingSignal) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.si) @@ -637,6 +674,7 @@ func (s *savedPendingSignal) StateSave(stateSinkObject state.Sink) { func (s *savedPendingSignal) afterLoad() {} +// +checklocksignore func (s *savedPendingSignal) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.si) stateSourceObject.Load(1, &s.timer) @@ -663,6 +701,7 @@ func (it *IntervalTimer) StateFields() []string { func (it *IntervalTimer) beforeSave() {} +// +checklocksignore func (it *IntervalTimer) StateSave(stateSinkObject state.Sink) { it.beforeSave() stateSinkObject.Save(0, &it.timer) @@ -679,6 +718,7 @@ func (it *IntervalTimer) StateSave(stateSinkObject state.Sink) { func (it *IntervalTimer) afterLoad() {} +// +checklocksignore func (it *IntervalTimer) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &it.timer) stateSourceObject.Load(1, &it.target) @@ -705,6 +745,7 @@ func (l *processGroupList) StateFields() []string { func (l *processGroupList) beforeSave() {} +// +checklocksignore func (l *processGroupList) StateSave(stateSinkObject state.Sink) { l.beforeSave() stateSinkObject.Save(0, &l.head) @@ -713,6 +754,7 @@ func (l *processGroupList) StateSave(stateSinkObject state.Sink) { func (l *processGroupList) afterLoad() {} +// +checklocksignore func (l *processGroupList) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.head) stateSourceObject.Load(1, &l.tail) @@ -731,6 +773,7 @@ func (e *processGroupEntry) StateFields() []string { func (e *processGroupEntry) beforeSave() {} +// +checklocksignore func (e *processGroupEntry) StateSave(stateSinkObject state.Sink) { e.beforeSave() stateSinkObject.Save(0, &e.next) @@ -739,6 +782,7 @@ func (e *processGroupEntry) StateSave(stateSinkObject state.Sink) { func (e *processGroupEntry) afterLoad() {} +// +checklocksignore func (e *processGroupEntry) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &e.next) stateSourceObject.Load(1, &e.prev) @@ -756,11 +800,13 @@ func (r *ProcessGroupRefs) StateFields() []string { func (r *ProcessGroupRefs) beforeSave() {} +// +checklocksignore func (r *ProcessGroupRefs) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.refCount) } +// +checklocksignore func (r *ProcessGroupRefs) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.refCount) stateSourceObject.AfterLoad(r.afterLoad) @@ -786,6 +832,7 @@ func (p *ptraceOptions) StateFields() []string { func (p *ptraceOptions) beforeSave() {} +// +checklocksignore func (p *ptraceOptions) StateSave(stateSinkObject state.Sink) { p.beforeSave() stateSinkObject.Save(0, &p.ExitKill) @@ -801,6 +848,7 @@ func (p *ptraceOptions) StateSave(stateSinkObject state.Sink) { func (p *ptraceOptions) afterLoad() {} +// +checklocksignore func (p *ptraceOptions) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &p.ExitKill) stateSourceObject.Load(1, &p.SysGood) @@ -826,6 +874,7 @@ func (s *ptraceStop) StateFields() []string { func (s *ptraceStop) beforeSave() {} +// +checklocksignore func (s *ptraceStop) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.frozen) @@ -834,6 +883,7 @@ func (s *ptraceStop) StateSave(stateSinkObject state.Sink) { func (s *ptraceStop) afterLoad() {} +// +checklocksignore func (s *ptraceStop) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.frozen) stateSourceObject.Load(1, &s.listen) @@ -852,6 +902,7 @@ func (o *OldRSeqCriticalRegion) StateFields() []string { func (o *OldRSeqCriticalRegion) beforeSave() {} +// +checklocksignore func (o *OldRSeqCriticalRegion) StateSave(stateSinkObject state.Sink) { o.beforeSave() stateSinkObject.Save(0, &o.CriticalSection) @@ -860,6 +911,7 @@ func (o *OldRSeqCriticalRegion) StateSave(stateSinkObject state.Sink) { func (o *OldRSeqCriticalRegion) afterLoad() {} +// +checklocksignore func (o *OldRSeqCriticalRegion) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &o.CriticalSection) stateSourceObject.Load(1, &o.Restart) @@ -878,6 +930,7 @@ func (l *sessionList) StateFields() []string { func (l *sessionList) beforeSave() {} +// +checklocksignore func (l *sessionList) StateSave(stateSinkObject state.Sink) { l.beforeSave() stateSinkObject.Save(0, &l.head) @@ -886,6 +939,7 @@ func (l *sessionList) StateSave(stateSinkObject state.Sink) { func (l *sessionList) afterLoad() {} +// +checklocksignore func (l *sessionList) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.head) stateSourceObject.Load(1, &l.tail) @@ -904,6 +958,7 @@ func (e *sessionEntry) StateFields() []string { func (e *sessionEntry) beforeSave() {} +// +checklocksignore func (e *sessionEntry) StateSave(stateSinkObject state.Sink) { e.beforeSave() stateSinkObject.Save(0, &e.next) @@ -912,6 +967,7 @@ func (e *sessionEntry) StateSave(stateSinkObject state.Sink) { func (e *sessionEntry) afterLoad() {} +// +checklocksignore func (e *sessionEntry) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &e.next) stateSourceObject.Load(1, &e.prev) @@ -929,11 +985,13 @@ func (r *SessionRefs) StateFields() []string { func (r *SessionRefs) beforeSave() {} +// +checklocksignore func (r *SessionRefs) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.refCount) } +// +checklocksignore func (r *SessionRefs) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.refCount) stateSourceObject.AfterLoad(r.afterLoad) @@ -956,6 +1014,7 @@ func (s *Session) StateFields() []string { func (s *Session) beforeSave() {} +// +checklocksignore func (s *Session) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.SessionRefs) @@ -968,6 +1027,7 @@ func (s *Session) StateSave(stateSinkObject state.Sink) { func (s *Session) afterLoad() {} +// +checklocksignore func (s *Session) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.SessionRefs) stateSourceObject.Load(1, &s.leader) @@ -994,6 +1054,7 @@ func (pg *ProcessGroup) StateFields() []string { func (pg *ProcessGroup) beforeSave() {} +// +checklocksignore func (pg *ProcessGroup) StateSave(stateSinkObject state.Sink) { pg.beforeSave() stateSinkObject.Save(0, &pg.refs) @@ -1006,6 +1067,7 @@ func (pg *ProcessGroup) StateSave(stateSinkObject state.Sink) { func (pg *ProcessGroup) afterLoad() {} +// +checklocksignore func (pg *ProcessGroup) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &pg.refs) stateSourceObject.Load(1, &pg.originator) @@ -1027,6 +1089,7 @@ func (sh *SignalHandlers) StateFields() []string { func (sh *SignalHandlers) beforeSave() {} +// +checklocksignore func (sh *SignalHandlers) StateSave(stateSinkObject state.Sink) { sh.beforeSave() stateSinkObject.Save(0, &sh.actions) @@ -1034,6 +1097,7 @@ func (sh *SignalHandlers) StateSave(stateSinkObject state.Sink) { func (sh *SignalHandlers) afterLoad() {} +// +checklocksignore func (sh *SignalHandlers) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &sh.actions) } @@ -1051,6 +1115,7 @@ func (l *socketList) StateFields() []string { func (l *socketList) beforeSave() {} +// +checklocksignore func (l *socketList) StateSave(stateSinkObject state.Sink) { l.beforeSave() stateSinkObject.Save(0, &l.head) @@ -1059,6 +1124,7 @@ func (l *socketList) StateSave(stateSinkObject state.Sink) { func (l *socketList) afterLoad() {} +// +checklocksignore func (l *socketList) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.head) stateSourceObject.Load(1, &l.tail) @@ -1077,6 +1143,7 @@ func (e *socketEntry) StateFields() []string { func (e *socketEntry) beforeSave() {} +// +checklocksignore func (e *socketEntry) StateSave(stateSinkObject state.Sink) { e.beforeSave() stateSinkObject.Save(0, &e.next) @@ -1085,6 +1152,7 @@ func (e *socketEntry) StateSave(stateSinkObject state.Sink) { func (e *socketEntry) afterLoad() {} +// +checklocksignore func (e *socketEntry) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &e.next) stateSourceObject.Load(1, &e.prev) @@ -1103,6 +1171,7 @@ func (s *syscallTableInfo) StateFields() []string { func (s *syscallTableInfo) beforeSave() {} +// +checklocksignore func (s *syscallTableInfo) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.OS) @@ -1111,6 +1180,7 @@ func (s *syscallTableInfo) StateSave(stateSinkObject state.Sink) { func (s *syscallTableInfo) afterLoad() {} +// +checklocksignore func (s *syscallTableInfo) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.OS) stateSourceObject.Load(1, &s.Arch) @@ -1128,6 +1198,7 @@ func (s *syslog) StateFields() []string { func (s *syslog) beforeSave() {} +// +checklocksignore func (s *syslog) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.msg) @@ -1135,6 +1206,7 @@ func (s *syslog) StateSave(stateSinkObject state.Sink) { func (s *syslog) afterLoad() {} +// +checklocksignore func (s *syslog) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.msg) } @@ -1213,6 +1285,7 @@ func (t *Task) StateFields() []string { func (t *Task) beforeSave() {} +// +checklocksignore func (t *Task) StateSave(stateSinkObject state.Sink) { t.beforeSave() if !state.IsZeroValue(&t.signalQueue) { @@ -1285,6 +1358,7 @@ func (t *Task) StateSave(stateSinkObject state.Sink) { stateSinkObject.Save(62, &t.kcov) } +// +checklocksignore func (t *Task) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &t.taskNode) stateSourceObject.Load(1, &t.runState) @@ -1365,6 +1439,7 @@ func (r *runSyscallAfterPtraceEventClone) StateFields() []string { func (r *runSyscallAfterPtraceEventClone) beforeSave() {} +// +checklocksignore func (r *runSyscallAfterPtraceEventClone) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.vforkChild) @@ -1373,6 +1448,7 @@ func (r *runSyscallAfterPtraceEventClone) StateSave(stateSinkObject state.Sink) func (r *runSyscallAfterPtraceEventClone) afterLoad() {} +// +checklocksignore func (r *runSyscallAfterPtraceEventClone) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.vforkChild) stateSourceObject.Load(1, &r.vforkChildTID) @@ -1390,6 +1466,7 @@ func (r *runSyscallAfterVforkStop) StateFields() []string { func (r *runSyscallAfterVforkStop) beforeSave() {} +// +checklocksignore func (r *runSyscallAfterVforkStop) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.childTID) @@ -1397,6 +1474,7 @@ func (r *runSyscallAfterVforkStop) StateSave(stateSinkObject state.Sink) { func (r *runSyscallAfterVforkStop) afterLoad() {} +// +checklocksignore func (r *runSyscallAfterVforkStop) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.childTID) } @@ -1411,12 +1489,14 @@ func (v *vforkStop) StateFields() []string { func (v *vforkStop) beforeSave() {} +// +checklocksignore func (v *vforkStop) StateSave(stateSinkObject state.Sink) { v.beforeSave() } func (v *vforkStop) afterLoad() {} +// +checklocksignore func (v *vforkStop) StateLoad(stateSourceObject state.Source) { } @@ -1430,12 +1510,14 @@ func (e *execStop) StateFields() []string { func (e *execStop) beforeSave() {} +// +checklocksignore func (e *execStop) StateSave(stateSinkObject state.Sink) { e.beforeSave() } func (e *execStop) afterLoad() {} +// +checklocksignore func (e *execStop) StateLoad(stateSourceObject state.Source) { } @@ -1451,6 +1533,7 @@ func (r *runSyscallAfterExecStop) StateFields() []string { func (r *runSyscallAfterExecStop) beforeSave() {} +// +checklocksignore func (r *runSyscallAfterExecStop) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.image) @@ -1458,6 +1541,7 @@ func (r *runSyscallAfterExecStop) StateSave(stateSinkObject state.Sink) { func (r *runSyscallAfterExecStop) afterLoad() {} +// +checklocksignore func (r *runSyscallAfterExecStop) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.image) } @@ -1475,6 +1559,7 @@ func (es *ExitStatus) StateFields() []string { func (es *ExitStatus) beforeSave() {} +// +checklocksignore func (es *ExitStatus) StateSave(stateSinkObject state.Sink) { es.beforeSave() stateSinkObject.Save(0, &es.Code) @@ -1483,6 +1568,7 @@ func (es *ExitStatus) StateSave(stateSinkObject state.Sink) { func (es *ExitStatus) afterLoad() {} +// +checklocksignore func (es *ExitStatus) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &es.Code) stateSourceObject.Load(1, &es.Signo) @@ -1498,12 +1584,14 @@ func (r *runExit) StateFields() []string { func (r *runExit) beforeSave() {} +// +checklocksignore func (r *runExit) StateSave(stateSinkObject state.Sink) { r.beforeSave() } func (r *runExit) afterLoad() {} +// +checklocksignore func (r *runExit) StateLoad(stateSourceObject state.Source) { } @@ -1517,12 +1605,14 @@ func (r *runExitMain) StateFields() []string { func (r *runExitMain) beforeSave() {} +// +checklocksignore func (r *runExitMain) StateSave(stateSinkObject state.Sink) { r.beforeSave() } func (r *runExitMain) afterLoad() {} +// +checklocksignore func (r *runExitMain) StateLoad(stateSourceObject state.Source) { } @@ -1536,12 +1626,14 @@ func (r *runExitNotify) StateFields() []string { func (r *runExitNotify) beforeSave() {} +// +checklocksignore func (r *runExitNotify) StateSave(stateSinkObject state.Sink) { r.beforeSave() } func (r *runExitNotify) afterLoad() {} +// +checklocksignore func (r *runExitNotify) StateLoad(stateSourceObject state.Source) { } @@ -1561,6 +1653,7 @@ func (image *TaskImage) StateFields() []string { func (image *TaskImage) beforeSave() {} +// +checklocksignore func (image *TaskImage) StateSave(stateSinkObject state.Sink) { image.beforeSave() var stValue syscallTableInfo = image.saveSt() @@ -1573,6 +1666,7 @@ func (image *TaskImage) StateSave(stateSinkObject state.Sink) { func (image *TaskImage) afterLoad() {} +// +checklocksignore func (image *TaskImage) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &image.Name) stateSourceObject.Load(1, &image.Arch) @@ -1594,6 +1688,7 @@ func (l *taskList) StateFields() []string { func (l *taskList) beforeSave() {} +// +checklocksignore func (l *taskList) StateSave(stateSinkObject state.Sink) { l.beforeSave() stateSinkObject.Save(0, &l.head) @@ -1602,6 +1697,7 @@ func (l *taskList) StateSave(stateSinkObject state.Sink) { func (l *taskList) afterLoad() {} +// +checklocksignore func (l *taskList) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.head) stateSourceObject.Load(1, &l.tail) @@ -1620,6 +1716,7 @@ func (e *taskEntry) StateFields() []string { func (e *taskEntry) beforeSave() {} +// +checklocksignore func (e *taskEntry) StateSave(stateSinkObject state.Sink) { e.beforeSave() stateSinkObject.Save(0, &e.next) @@ -1628,6 +1725,7 @@ func (e *taskEntry) StateSave(stateSinkObject state.Sink) { func (e *taskEntry) afterLoad() {} +// +checklocksignore func (e *taskEntry) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &e.next) stateSourceObject.Load(1, &e.prev) @@ -1643,12 +1741,14 @@ func (app *runApp) StateFields() []string { func (app *runApp) beforeSave() {} +// +checklocksignore func (app *runApp) StateSave(stateSinkObject state.Sink) { app.beforeSave() } func (app *runApp) afterLoad() {} +// +checklocksignore func (app *runApp) StateLoad(stateSourceObject state.Source) { } @@ -1667,6 +1767,7 @@ func (ts *TaskGoroutineSchedInfo) StateFields() []string { func (ts *TaskGoroutineSchedInfo) beforeSave() {} +// +checklocksignore func (ts *TaskGoroutineSchedInfo) StateSave(stateSinkObject state.Sink) { ts.beforeSave() stateSinkObject.Save(0, &ts.Timestamp) @@ -1677,6 +1778,7 @@ func (ts *TaskGoroutineSchedInfo) StateSave(stateSinkObject state.Sink) { func (ts *TaskGoroutineSchedInfo) afterLoad() {} +// +checklocksignore func (ts *TaskGoroutineSchedInfo) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &ts.Timestamp) stateSourceObject.Load(1, &ts.State) @@ -1697,6 +1799,7 @@ func (tc *taskClock) StateFields() []string { func (tc *taskClock) beforeSave() {} +// +checklocksignore func (tc *taskClock) StateSave(stateSinkObject state.Sink) { tc.beforeSave() stateSinkObject.Save(0, &tc.t) @@ -1705,6 +1808,7 @@ func (tc *taskClock) StateSave(stateSinkObject state.Sink) { func (tc *taskClock) afterLoad() {} +// +checklocksignore func (tc *taskClock) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &tc.t) stateSourceObject.Load(1, &tc.includeSys) @@ -1723,6 +1827,7 @@ func (tgc *tgClock) StateFields() []string { func (tgc *tgClock) beforeSave() {} +// +checklocksignore func (tgc *tgClock) StateSave(stateSinkObject state.Sink) { tgc.beforeSave() stateSinkObject.Save(0, &tgc.tg) @@ -1731,6 +1836,7 @@ func (tgc *tgClock) StateSave(stateSinkObject state.Sink) { func (tgc *tgClock) afterLoad() {} +// +checklocksignore func (tgc *tgClock) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &tgc.tg) stateSourceObject.Load(1, &tgc.includeSys) @@ -1746,12 +1852,14 @@ func (g *groupStop) StateFields() []string { func (g *groupStop) beforeSave() {} +// +checklocksignore func (g *groupStop) StateSave(stateSinkObject state.Sink) { g.beforeSave() } func (g *groupStop) afterLoad() {} +// +checklocksignore func (g *groupStop) StateLoad(stateSourceObject state.Source) { } @@ -1765,12 +1873,14 @@ func (r *runInterrupt) StateFields() []string { func (r *runInterrupt) beforeSave() {} +// +checklocksignore func (r *runInterrupt) StateSave(stateSinkObject state.Sink) { r.beforeSave() } func (r *runInterrupt) afterLoad() {} +// +checklocksignore func (r *runInterrupt) StateLoad(stateSourceObject state.Source) { } @@ -1784,12 +1894,14 @@ func (r *runInterruptAfterSignalDeliveryStop) StateFields() []string { func (r *runInterruptAfterSignalDeliveryStop) beforeSave() {} +// +checklocksignore func (r *runInterruptAfterSignalDeliveryStop) StateSave(stateSinkObject state.Sink) { r.beforeSave() } func (r *runInterruptAfterSignalDeliveryStop) afterLoad() {} +// +checklocksignore func (r *runInterruptAfterSignalDeliveryStop) StateLoad(stateSourceObject state.Source) { } @@ -1803,12 +1915,14 @@ func (r *runSyscallAfterSyscallEnterStop) StateFields() []string { func (r *runSyscallAfterSyscallEnterStop) beforeSave() {} +// +checklocksignore func (r *runSyscallAfterSyscallEnterStop) StateSave(stateSinkObject state.Sink) { r.beforeSave() } func (r *runSyscallAfterSyscallEnterStop) afterLoad() {} +// +checklocksignore func (r *runSyscallAfterSyscallEnterStop) StateLoad(stateSourceObject state.Source) { } @@ -1822,12 +1936,14 @@ func (r *runSyscallAfterSysemuStop) StateFields() []string { func (r *runSyscallAfterSysemuStop) beforeSave() {} +// +checklocksignore func (r *runSyscallAfterSysemuStop) StateSave(stateSinkObject state.Sink) { r.beforeSave() } func (r *runSyscallAfterSysemuStop) afterLoad() {} +// +checklocksignore func (r *runSyscallAfterSysemuStop) StateLoad(stateSourceObject state.Source) { } @@ -1841,12 +1957,14 @@ func (r *runSyscallReinvoke) StateFields() []string { func (r *runSyscallReinvoke) beforeSave() {} +// +checklocksignore func (r *runSyscallReinvoke) StateSave(stateSinkObject state.Sink) { r.beforeSave() } func (r *runSyscallReinvoke) afterLoad() {} +// +checklocksignore func (r *runSyscallReinvoke) StateLoad(stateSourceObject state.Source) { } @@ -1860,12 +1978,14 @@ func (r *runSyscallExit) StateFields() []string { func (r *runSyscallExit) beforeSave() {} +// +checklocksignore func (r *runSyscallExit) StateSave(stateSinkObject state.Sink) { r.beforeSave() } func (r *runSyscallExit) afterLoad() {} +// +checklocksignore func (r *runSyscallExit) StateLoad(stateSourceObject state.Source) { } @@ -1913,6 +2033,7 @@ func (tg *ThreadGroup) StateFields() []string { func (tg *ThreadGroup) beforeSave() {} +// +checklocksignore func (tg *ThreadGroup) StateSave(stateSinkObject state.Sink) { tg.beforeSave() var oldRSeqCriticalValue *OldRSeqCriticalRegion = tg.saveOldRSeqCritical() @@ -1953,6 +2074,7 @@ func (tg *ThreadGroup) StateSave(stateSinkObject state.Sink) { func (tg *ThreadGroup) afterLoad() {} +// +checklocksignore func (tg *ThreadGroup) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &tg.threadGroupNode) stateSourceObject.Load(1, &tg.signalHandlers) @@ -2001,6 +2123,7 @@ func (l *itimerRealListener) StateFields() []string { func (l *itimerRealListener) beforeSave() {} +// +checklocksignore func (l *itimerRealListener) StateSave(stateSinkObject state.Sink) { l.beforeSave() stateSinkObject.Save(0, &l.tg) @@ -2008,6 +2131,7 @@ func (l *itimerRealListener) StateSave(stateSinkObject state.Sink) { func (l *itimerRealListener) afterLoad() {} +// +checklocksignore func (l *itimerRealListener) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.tg) } @@ -2025,6 +2149,7 @@ func (ts *TaskSet) StateFields() []string { func (ts *TaskSet) beforeSave() {} +// +checklocksignore func (ts *TaskSet) StateSave(stateSinkObject state.Sink) { ts.beforeSave() stateSinkObject.Save(0, &ts.Root) @@ -2033,6 +2158,7 @@ func (ts *TaskSet) StateSave(stateSinkObject state.Sink) { func (ts *TaskSet) afterLoad() {} +// +checklocksignore func (ts *TaskSet) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &ts.Root) stateSourceObject.Load(1, &ts.sessions) @@ -2061,6 +2187,7 @@ func (ns *PIDNamespace) StateFields() []string { func (ns *PIDNamespace) beforeSave() {} +// +checklocksignore func (ns *PIDNamespace) StateSave(stateSinkObject state.Sink) { ns.beforeSave() stateSinkObject.Save(0, &ns.owner) @@ -2079,6 +2206,7 @@ func (ns *PIDNamespace) StateSave(stateSinkObject state.Sink) { func (ns *PIDNamespace) afterLoad() {} +// +checklocksignore func (ns *PIDNamespace) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &ns.owner) stateSourceObject.Load(1, &ns.parent) @@ -2112,6 +2240,7 @@ func (t *threadGroupNode) StateFields() []string { func (t *threadGroupNode) beforeSave() {} +// +checklocksignore func (t *threadGroupNode) StateSave(stateSinkObject state.Sink) { t.beforeSave() stateSinkObject.Save(0, &t.pidns) @@ -2125,6 +2254,7 @@ func (t *threadGroupNode) StateSave(stateSinkObject state.Sink) { func (t *threadGroupNode) afterLoad() {} +// +checklocksignore func (t *threadGroupNode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &t.pidns) stateSourceObject.Load(1, &t.leader) @@ -2151,6 +2281,7 @@ func (t *taskNode) StateFields() []string { func (t *taskNode) beforeSave() {} +// +checklocksignore func (t *taskNode) StateSave(stateSinkObject state.Sink) { t.beforeSave() stateSinkObject.Save(0, &t.tg) @@ -2162,6 +2293,7 @@ func (t *taskNode) StateSave(stateSinkObject state.Sink) { func (t *taskNode) afterLoad() {} +// +checklocksignore func (t *taskNode) StateLoad(stateSourceObject state.Source) { stateSourceObject.LoadWait(0, &t.tg) stateSourceObject.Load(1, &t.taskEntry) @@ -2183,6 +2315,7 @@ func (t *Timekeeper) StateFields() []string { } } +// +checklocksignore func (t *Timekeeper) StateSave(stateSinkObject state.Sink) { t.beforeSave() stateSinkObject.Save(0, &t.bootTime) @@ -2191,6 +2324,7 @@ func (t *Timekeeper) StateSave(stateSinkObject state.Sink) { stateSinkObject.Save(3, &t.params) } +// +checklocksignore func (t *Timekeeper) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &t.bootTime) stateSourceObject.Load(1, &t.saveMonotonic) @@ -2212,6 +2346,7 @@ func (tc *timekeeperClock) StateFields() []string { func (tc *timekeeperClock) beforeSave() {} +// +checklocksignore func (tc *timekeeperClock) StateSave(stateSinkObject state.Sink) { tc.beforeSave() stateSinkObject.Save(0, &tc.tk) @@ -2220,6 +2355,7 @@ func (tc *timekeeperClock) StateSave(stateSinkObject state.Sink) { func (tc *timekeeperClock) afterLoad() {} +// +checklocksignore func (tc *timekeeperClock) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &tc.tk) stateSourceObject.Load(1, &tc.c) @@ -2238,6 +2374,7 @@ func (t *TTY) StateFields() []string { func (t *TTY) beforeSave() {} +// +checklocksignore func (t *TTY) StateSave(stateSinkObject state.Sink) { t.beforeSave() stateSinkObject.Save(0, &t.Index) @@ -2246,6 +2383,7 @@ func (t *TTY) StateSave(stateSinkObject state.Sink) { func (t *TTY) afterLoad() {} +// +checklocksignore func (t *TTY) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &t.Index) stateSourceObject.Load(1, &t.tg) @@ -2265,6 +2403,7 @@ func (u *UTSNamespace) StateFields() []string { func (u *UTSNamespace) beforeSave() {} +// +checklocksignore func (u *UTSNamespace) StateSave(stateSinkObject state.Sink) { u.beforeSave() stateSinkObject.Save(0, &u.hostName) @@ -2274,6 +2413,7 @@ func (u *UTSNamespace) StateSave(stateSinkObject state.Sink) { func (u *UTSNamespace) afterLoad() {} +// +checklocksignore func (u *UTSNamespace) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &u.hostName) stateSourceObject.Load(1, &u.domainName) @@ -2295,6 +2435,7 @@ func (v *VDSOParamPage) StateFields() []string { func (v *VDSOParamPage) beforeSave() {} +// +checklocksignore func (v *VDSOParamPage) StateSave(stateSinkObject state.Sink) { v.beforeSave() stateSinkObject.Save(0, &v.mfp) @@ -2305,6 +2446,7 @@ func (v *VDSOParamPage) StateSave(stateSinkObject state.Sink) { func (v *VDSOParamPage) afterLoad() {} +// +checklocksignore func (v *VDSOParamPage) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &v.mfp) stateSourceObject.Load(1, &v.fr) diff --git a/pkg/sentry/kernel/pipe/pipe_state_autogen.go b/pkg/sentry/kernel/pipe/pipe_state_autogen.go index 9cee1f13a..57451e951 100644 --- a/pkg/sentry/kernel/pipe/pipe_state_autogen.go +++ b/pkg/sentry/kernel/pipe/pipe_state_autogen.go @@ -19,6 +19,7 @@ func (i *inodeOperations) StateFields() []string { func (i *inodeOperations) beforeSave() {} +// +checklocksignore func (i *inodeOperations) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.InodeSimpleAttributes) @@ -27,6 +28,7 @@ func (i *inodeOperations) StateSave(stateSinkObject state.Sink) { func (i *inodeOperations) afterLoad() {} +// +checklocksignore func (i *inodeOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.InodeSimpleAttributes) stateSourceObject.Load(1, &i.p) @@ -51,6 +53,7 @@ func (p *Pipe) StateFields() []string { func (p *Pipe) beforeSave() {} +// +checklocksignore func (p *Pipe) StateSave(stateSinkObject state.Sink) { p.beforeSave() stateSinkObject.Save(0, &p.isNamed) @@ -63,6 +66,7 @@ func (p *Pipe) StateSave(stateSinkObject state.Sink) { stateSinkObject.Save(7, &p.hadWriter) } +// +checklocksignore func (p *Pipe) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &p.isNamed) stateSourceObject.Load(1, &p.readers) @@ -87,6 +91,7 @@ func (r *Reader) StateFields() []string { func (r *Reader) beforeSave() {} +// +checklocksignore func (r *Reader) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.ReaderWriter) @@ -94,6 +99,7 @@ func (r *Reader) StateSave(stateSinkObject state.Sink) { func (r *Reader) afterLoad() {} +// +checklocksignore func (r *Reader) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.ReaderWriter) } @@ -110,6 +116,7 @@ func (rw *ReaderWriter) StateFields() []string { func (rw *ReaderWriter) beforeSave() {} +// +checklocksignore func (rw *ReaderWriter) StateSave(stateSinkObject state.Sink) { rw.beforeSave() stateSinkObject.Save(0, &rw.Pipe) @@ -117,6 +124,7 @@ func (rw *ReaderWriter) StateSave(stateSinkObject state.Sink) { func (rw *ReaderWriter) afterLoad() {} +// +checklocksignore func (rw *ReaderWriter) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &rw.Pipe) } @@ -133,6 +141,7 @@ func (vp *VFSPipe) StateFields() []string { func (vp *VFSPipe) beforeSave() {} +// +checklocksignore func (vp *VFSPipe) StateSave(stateSinkObject state.Sink) { vp.beforeSave() stateSinkObject.Save(0, &vp.pipe) @@ -140,6 +149,7 @@ func (vp *VFSPipe) StateSave(stateSinkObject state.Sink) { func (vp *VFSPipe) afterLoad() {} +// +checklocksignore func (vp *VFSPipe) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &vp.pipe) } @@ -160,6 +170,7 @@ func (fd *VFSPipeFD) StateFields() []string { func (fd *VFSPipeFD) beforeSave() {} +// +checklocksignore func (fd *VFSPipeFD) StateSave(stateSinkObject state.Sink) { fd.beforeSave() stateSinkObject.Save(0, &fd.vfsfd) @@ -171,6 +182,7 @@ func (fd *VFSPipeFD) StateSave(stateSinkObject state.Sink) { func (fd *VFSPipeFD) afterLoad() {} +// +checklocksignore func (fd *VFSPipeFD) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fd.vfsfd) stateSourceObject.Load(1, &fd.FileDescriptionDefaultImpl) @@ -191,6 +203,7 @@ func (w *Writer) StateFields() []string { func (w *Writer) beforeSave() {} +// +checklocksignore func (w *Writer) StateSave(stateSinkObject state.Sink) { w.beforeSave() stateSinkObject.Save(0, &w.ReaderWriter) @@ -198,6 +211,7 @@ func (w *Writer) StateSave(stateSinkObject state.Sink) { func (w *Writer) afterLoad() {} +// +checklocksignore func (w *Writer) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &w.ReaderWriter) } diff --git a/pkg/sentry/kernel/semaphore/semaphore_state_autogen.go b/pkg/sentry/kernel/semaphore/semaphore_state_autogen.go index e0578836c..f90fbff34 100644 --- a/pkg/sentry/kernel/semaphore/semaphore_state_autogen.go +++ b/pkg/sentry/kernel/semaphore/semaphore_state_autogen.go @@ -21,6 +21,7 @@ func (r *Registry) StateFields() []string { func (r *Registry) beforeSave() {} +// +checklocksignore func (r *Registry) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.userNS) @@ -31,6 +32,7 @@ func (r *Registry) StateSave(stateSinkObject state.Sink) { func (r *Registry) afterLoad() {} +// +checklocksignore func (r *Registry) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.userNS) stateSourceObject.Load(1, &r.semaphores) @@ -59,6 +61,7 @@ func (s *Set) StateFields() []string { func (s *Set) beforeSave() {} +// +checklocksignore func (s *Set) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.registry) @@ -75,6 +78,7 @@ func (s *Set) StateSave(stateSinkObject state.Sink) { func (s *Set) afterLoad() {} +// +checklocksignore func (s *Set) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.registry) stateSourceObject.Load(1, &s.ID) @@ -101,6 +105,7 @@ func (s *sem) StateFields() []string { func (s *sem) beforeSave() {} +// +checklocksignore func (s *sem) StateSave(stateSinkObject state.Sink) { s.beforeSave() if !state.IsZeroValue(&s.waiters) { @@ -112,6 +117,7 @@ func (s *sem) StateSave(stateSinkObject state.Sink) { func (s *sem) afterLoad() {} +// +checklocksignore func (s *sem) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.value) stateSourceObject.Load(1, &s.pid) @@ -131,6 +137,7 @@ func (w *waiter) StateFields() []string { func (w *waiter) beforeSave() {} +// +checklocksignore func (w *waiter) StateSave(stateSinkObject state.Sink) { w.beforeSave() stateSinkObject.Save(0, &w.waiterEntry) @@ -140,6 +147,7 @@ func (w *waiter) StateSave(stateSinkObject state.Sink) { func (w *waiter) afterLoad() {} +// +checklocksignore func (w *waiter) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &w.waiterEntry) stateSourceObject.Load(1, &w.value) @@ -159,6 +167,7 @@ func (l *waiterList) StateFields() []string { func (l *waiterList) beforeSave() {} +// +checklocksignore func (l *waiterList) StateSave(stateSinkObject state.Sink) { l.beforeSave() stateSinkObject.Save(0, &l.head) @@ -167,6 +176,7 @@ func (l *waiterList) StateSave(stateSinkObject state.Sink) { func (l *waiterList) afterLoad() {} +// +checklocksignore func (l *waiterList) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.head) stateSourceObject.Load(1, &l.tail) @@ -185,6 +195,7 @@ func (e *waiterEntry) StateFields() []string { func (e *waiterEntry) beforeSave() {} +// +checklocksignore func (e *waiterEntry) StateSave(stateSinkObject state.Sink) { e.beforeSave() stateSinkObject.Save(0, &e.next) @@ -193,6 +204,7 @@ func (e *waiterEntry) StateSave(stateSinkObject state.Sink) { func (e *waiterEntry) afterLoad() {} +// +checklocksignore func (e *waiterEntry) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &e.next) stateSourceObject.Load(1, &e.prev) diff --git a/pkg/sentry/kernel/shm/shm_state_autogen.go b/pkg/sentry/kernel/shm/shm_state_autogen.go index aca4c9b96..30ceeaa03 100644 --- a/pkg/sentry/kernel/shm/shm_state_autogen.go +++ b/pkg/sentry/kernel/shm/shm_state_autogen.go @@ -22,6 +22,7 @@ func (r *Registry) StateFields() []string { func (r *Registry) beforeSave() {} +// +checklocksignore func (r *Registry) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.userNS) @@ -33,6 +34,7 @@ func (r *Registry) StateSave(stateSinkObject state.Sink) { func (r *Registry) afterLoad() {} +// +checklocksignore func (r *Registry) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.userNS) stateSourceObject.Load(1, &r.shms) @@ -69,6 +71,7 @@ func (s *Shm) StateFields() []string { func (s *Shm) beforeSave() {} +// +checklocksignore func (s *Shm) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.ShmRefs) @@ -92,6 +95,7 @@ func (s *Shm) StateSave(stateSinkObject state.Sink) { func (s *Shm) afterLoad() {} +// +checklocksignore func (s *Shm) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.ShmRefs) stateSourceObject.Load(1, &s.mfp) @@ -124,11 +128,13 @@ func (r *ShmRefs) StateFields() []string { func (r *ShmRefs) beforeSave() {} +// +checklocksignore func (r *ShmRefs) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.refCount) } +// +checklocksignore func (r *ShmRefs) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.refCount) stateSourceObject.AfterLoad(r.afterLoad) diff --git a/pkg/sentry/kernel/signalfd/signalfd_state_autogen.go b/pkg/sentry/kernel/signalfd/signalfd_state_autogen.go index 6c608aaa4..ad2622f27 100644 --- a/pkg/sentry/kernel/signalfd/signalfd_state_autogen.go +++ b/pkg/sentry/kernel/signalfd/signalfd_state_autogen.go @@ -19,6 +19,7 @@ func (s *SignalOperations) StateFields() []string { func (s *SignalOperations) beforeSave() {} +// +checklocksignore func (s *SignalOperations) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.target) @@ -27,6 +28,7 @@ func (s *SignalOperations) StateSave(stateSinkObject state.Sink) { func (s *SignalOperations) afterLoad() {} +// +checklocksignore func (s *SignalOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.target) stateSourceObject.Load(1, &s.mask) diff --git a/pkg/sentry/kernel/time/time_state_autogen.go b/pkg/sentry/kernel/time/time_state_autogen.go index 1a30539f0..855751953 100644 --- a/pkg/sentry/kernel/time/time_state_autogen.go +++ b/pkg/sentry/kernel/time/time_state_autogen.go @@ -18,6 +18,7 @@ func (t *Time) StateFields() []string { func (t *Time) beforeSave() {} +// +checklocksignore func (t *Time) StateSave(stateSinkObject state.Sink) { t.beforeSave() stateSinkObject.Save(0, &t.ns) @@ -25,6 +26,7 @@ func (t *Time) StateSave(stateSinkObject state.Sink) { func (t *Time) afterLoad() {} +// +checklocksignore func (t *Time) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &t.ns) } @@ -43,6 +45,7 @@ func (s *Setting) StateFields() []string { func (s *Setting) beforeSave() {} +// +checklocksignore func (s *Setting) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.Enabled) @@ -52,6 +55,7 @@ func (s *Setting) StateSave(stateSinkObject state.Sink) { func (s *Setting) afterLoad() {} +// +checklocksignore func (s *Setting) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.Enabled) stateSourceObject.Load(1, &s.Next) @@ -73,6 +77,7 @@ func (t *Timer) StateFields() []string { func (t *Timer) beforeSave() {} +// +checklocksignore func (t *Timer) StateSave(stateSinkObject state.Sink) { t.beforeSave() stateSinkObject.Save(0, &t.clock) @@ -83,6 +88,7 @@ func (t *Timer) StateSave(stateSinkObject state.Sink) { func (t *Timer) afterLoad() {} +// +checklocksignore func (t *Timer) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &t.clock) stateSourceObject.Load(1, &t.listener) |