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/fs | |
parent | 0fea1c57d9bc63416cc366720b2f53139468352f (diff) | |
parent | acb4c62885629d6d3ee977b93c27282abed0b33f (diff) |
Merge release-20210315.0-15-gacb4c6288 (automated)
Diffstat (limited to 'pkg/sentry/fs')
-rw-r--r-- | pkg/sentry/fs/dev/dev_state_autogen.go | 26 | ||||
-rw-r--r-- | pkg/sentry/fs/fdpipe/fdpipe_state_autogen.go | 2 | ||||
-rw-r--r-- | pkg/sentry/fs/fs_state_autogen.go | 66 | ||||
-rw-r--r-- | pkg/sentry/fs/fsutil/fsutil_impl_state_autogen.go | 18 | ||||
-rw-r--r-- | pkg/sentry/fs/fsutil/fsutil_state_autogen.go | 28 | ||||
-rw-r--r-- | pkg/sentry/fs/gofer/gofer_state_autogen.go | 16 | ||||
-rw-r--r-- | pkg/sentry/fs/host/host_state_autogen.go | 14 | ||||
-rw-r--r-- | pkg/sentry/fs/lock/lock_state_autogen.go | 14 | ||||
-rw-r--r-- | pkg/sentry/fs/proc/proc_state_autogen.go | 130 | ||||
-rw-r--r-- | pkg/sentry/fs/proc/seqfile/seqfile_state_autogen.go | 6 | ||||
-rw-r--r-- | pkg/sentry/fs/ramfs/ramfs_state_autogen.go | 12 | ||||
-rw-r--r-- | pkg/sentry/fs/sys/sys_state_autogen.go | 4 | ||||
-rw-r--r-- | pkg/sentry/fs/timerfd/timerfd_state_autogen.go | 2 | ||||
-rw-r--r-- | pkg/sentry/fs/tmpfs/tmpfs_state_autogen.go | 14 | ||||
-rw-r--r-- | pkg/sentry/fs/tty/tty_state_autogen.go | 26 |
15 files changed, 378 insertions, 0 deletions
diff --git a/pkg/sentry/fs/dev/dev_state_autogen.go b/pkg/sentry/fs/dev/dev_state_autogen.go index 958ddf698..23945d391 100644 --- a/pkg/sentry/fs/dev/dev_state_autogen.go +++ b/pkg/sentry/fs/dev/dev_state_autogen.go @@ -16,12 +16,14 @@ func (f *filesystem) StateFields() []string { func (f *filesystem) beforeSave() {} +// +checklocksignore func (f *filesystem) StateSave(stateSinkObject state.Sink) { f.beforeSave() } func (f *filesystem) afterLoad() {} +// +checklocksignore func (f *filesystem) StateLoad(stateSourceObject state.Source) { } @@ -37,6 +39,7 @@ func (f *fullDevice) StateFields() []string { func (f *fullDevice) beforeSave() {} +// +checklocksignore func (f *fullDevice) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.InodeSimpleAttributes) @@ -44,6 +47,7 @@ func (f *fullDevice) StateSave(stateSinkObject state.Sink) { func (f *fullDevice) afterLoad() {} +// +checklocksignore func (f *fullDevice) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.InodeSimpleAttributes) } @@ -58,12 +62,14 @@ func (f *fullFileOperations) StateFields() []string { func (f *fullFileOperations) beforeSave() {} +// +checklocksignore func (f *fullFileOperations) StateSave(stateSinkObject state.Sink) { f.beforeSave() } func (f *fullFileOperations) afterLoad() {} +// +checklocksignore func (f *fullFileOperations) StateLoad(stateSourceObject state.Source) { } @@ -79,6 +85,7 @@ func (n *netTunInodeOperations) StateFields() []string { func (n *netTunInodeOperations) beforeSave() {} +// +checklocksignore func (n *netTunInodeOperations) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.InodeSimpleAttributes) @@ -86,6 +93,7 @@ func (n *netTunInodeOperations) StateSave(stateSinkObject state.Sink) { func (n *netTunInodeOperations) afterLoad() {} +// +checklocksignore func (n *netTunInodeOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.InodeSimpleAttributes) } @@ -102,6 +110,7 @@ func (n *netTunFileOperations) StateFields() []string { func (n *netTunFileOperations) beforeSave() {} +// +checklocksignore func (n *netTunFileOperations) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.device) @@ -109,6 +118,7 @@ func (n *netTunFileOperations) StateSave(stateSinkObject state.Sink) { func (n *netTunFileOperations) afterLoad() {} +// +checklocksignore func (n *netTunFileOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.device) } @@ -125,6 +135,7 @@ func (n *nullDevice) StateFields() []string { func (n *nullDevice) beforeSave() {} +// +checklocksignore func (n *nullDevice) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.InodeSimpleAttributes) @@ -132,6 +143,7 @@ func (n *nullDevice) StateSave(stateSinkObject state.Sink) { func (n *nullDevice) afterLoad() {} +// +checklocksignore func (n *nullDevice) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.InodeSimpleAttributes) } @@ -146,12 +158,14 @@ func (n *nullFileOperations) StateFields() []string { func (n *nullFileOperations) beforeSave() {} +// +checklocksignore func (n *nullFileOperations) StateSave(stateSinkObject state.Sink) { n.beforeSave() } func (n *nullFileOperations) afterLoad() {} +// +checklocksignore func (n *nullFileOperations) StateLoad(stateSourceObject state.Source) { } @@ -167,6 +181,7 @@ func (zd *zeroDevice) StateFields() []string { func (zd *zeroDevice) beforeSave() {} +// +checklocksignore func (zd *zeroDevice) StateSave(stateSinkObject state.Sink) { zd.beforeSave() stateSinkObject.Save(0, &zd.nullDevice) @@ -174,6 +189,7 @@ func (zd *zeroDevice) StateSave(stateSinkObject state.Sink) { func (zd *zeroDevice) afterLoad() {} +// +checklocksignore func (zd *zeroDevice) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &zd.nullDevice) } @@ -188,12 +204,14 @@ func (z *zeroFileOperations) StateFields() []string { func (z *zeroFileOperations) beforeSave() {} +// +checklocksignore func (z *zeroFileOperations) StateSave(stateSinkObject state.Sink) { z.beforeSave() } func (z *zeroFileOperations) afterLoad() {} +// +checklocksignore func (z *zeroFileOperations) StateLoad(stateSourceObject state.Source) { } @@ -209,6 +227,7 @@ func (r *randomDevice) StateFields() []string { func (r *randomDevice) beforeSave() {} +// +checklocksignore func (r *randomDevice) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.InodeSimpleAttributes) @@ -216,6 +235,7 @@ func (r *randomDevice) StateSave(stateSinkObject state.Sink) { func (r *randomDevice) afterLoad() {} +// +checklocksignore func (r *randomDevice) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.InodeSimpleAttributes) } @@ -230,12 +250,14 @@ func (r *randomFileOperations) StateFields() []string { func (r *randomFileOperations) beforeSave() {} +// +checklocksignore func (r *randomFileOperations) StateSave(stateSinkObject state.Sink) { r.beforeSave() } func (r *randomFileOperations) afterLoad() {} +// +checklocksignore func (r *randomFileOperations) StateLoad(stateSourceObject state.Source) { } @@ -251,6 +273,7 @@ func (t *ttyInodeOperations) StateFields() []string { func (t *ttyInodeOperations) beforeSave() {} +// +checklocksignore func (t *ttyInodeOperations) StateSave(stateSinkObject state.Sink) { t.beforeSave() stateSinkObject.Save(0, &t.InodeSimpleAttributes) @@ -258,6 +281,7 @@ func (t *ttyInodeOperations) StateSave(stateSinkObject state.Sink) { func (t *ttyInodeOperations) afterLoad() {} +// +checklocksignore func (t *ttyInodeOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &t.InodeSimpleAttributes) } @@ -272,12 +296,14 @@ func (t *ttyFileOperations) StateFields() []string { func (t *ttyFileOperations) beforeSave() {} +// +checklocksignore func (t *ttyFileOperations) StateSave(stateSinkObject state.Sink) { t.beforeSave() } func (t *ttyFileOperations) afterLoad() {} +// +checklocksignore func (t *ttyFileOperations) StateLoad(stateSourceObject state.Source) { } diff --git a/pkg/sentry/fs/fdpipe/fdpipe_state_autogen.go b/pkg/sentry/fs/fdpipe/fdpipe_state_autogen.go index f946f2ba5..92dcd2391 100644 --- a/pkg/sentry/fs/fdpipe/fdpipe_state_autogen.go +++ b/pkg/sentry/fs/fdpipe/fdpipe_state_autogen.go @@ -19,6 +19,7 @@ func (p *pipeOperations) StateFields() []string { } } +// +checklocksignore func (p *pipeOperations) StateSave(stateSinkObject state.Sink) { p.beforeSave() var flagsValue fs.FileFlags = p.saveFlags() @@ -27,6 +28,7 @@ func (p *pipeOperations) StateSave(stateSinkObject state.Sink) { stateSinkObject.Save(2, &p.readAheadBuffer) } +// +checklocksignore func (p *pipeOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.LoadWait(1, &p.opener) stateSourceObject.Load(2, &p.readAheadBuffer) diff --git a/pkg/sentry/fs/fs_state_autogen.go b/pkg/sentry/fs/fs_state_autogen.go index 667495740..a4a67fca2 100644 --- a/pkg/sentry/fs/fs_state_autogen.go +++ b/pkg/sentry/fs/fs_state_autogen.go @@ -23,6 +23,7 @@ func (s *StableAttr) StateFields() []string { func (s *StableAttr) beforeSave() {} +// +checklocksignore func (s *StableAttr) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.Type) @@ -35,6 +36,7 @@ func (s *StableAttr) StateSave(stateSinkObject state.Sink) { func (s *StableAttr) afterLoad() {} +// +checklocksignore func (s *StableAttr) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.Type) stateSourceObject.Load(1, &s.DeviceID) @@ -63,6 +65,7 @@ func (ua *UnstableAttr) StateFields() []string { func (ua *UnstableAttr) beforeSave() {} +// +checklocksignore func (ua *UnstableAttr) StateSave(stateSinkObject state.Sink) { ua.beforeSave() stateSinkObject.Save(0, &ua.Size) @@ -77,6 +80,7 @@ func (ua *UnstableAttr) StateSave(stateSinkObject state.Sink) { func (ua *UnstableAttr) afterLoad() {} +// +checklocksignore func (ua *UnstableAttr) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &ua.Size) stateSourceObject.Load(1, &ua.Usage) @@ -112,6 +116,7 @@ func (a *AttrMask) StateFields() []string { func (a *AttrMask) beforeSave() {} +// +checklocksignore func (a *AttrMask) StateSave(stateSinkObject state.Sink) { a.beforeSave() stateSinkObject.Save(0, &a.Type) @@ -131,6 +136,7 @@ func (a *AttrMask) StateSave(stateSinkObject state.Sink) { func (a *AttrMask) afterLoad() {} +// +checklocksignore func (a *AttrMask) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &a.Type) stateSourceObject.Load(1, &a.DeviceID) @@ -161,6 +167,7 @@ func (p *PermMask) StateFields() []string { func (p *PermMask) beforeSave() {} +// +checklocksignore func (p *PermMask) StateSave(stateSinkObject state.Sink) { p.beforeSave() stateSinkObject.Save(0, &p.Read) @@ -170,6 +177,7 @@ func (p *PermMask) StateSave(stateSinkObject state.Sink) { func (p *PermMask) afterLoad() {} +// +checklocksignore func (p *PermMask) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &p.Read) stateSourceObject.Load(1, &p.Write) @@ -193,6 +201,7 @@ func (f *FilePermissions) StateFields() []string { func (f *FilePermissions) beforeSave() {} +// +checklocksignore func (f *FilePermissions) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.User) @@ -205,6 +214,7 @@ func (f *FilePermissions) StateSave(stateSinkObject state.Sink) { func (f *FilePermissions) afterLoad() {} +// +checklocksignore func (f *FilePermissions) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.User) stateSourceObject.Load(1, &f.Group) @@ -227,6 +237,7 @@ func (f *FileOwner) StateFields() []string { func (f *FileOwner) beforeSave() {} +// +checklocksignore func (f *FileOwner) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.UID) @@ -235,6 +246,7 @@ func (f *FileOwner) StateSave(stateSinkObject state.Sink) { func (f *FileOwner) afterLoad() {} +// +checklocksignore func (f *FileOwner) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.UID) stateSourceObject.Load(1, &f.GID) @@ -253,6 +265,7 @@ func (d *DentAttr) StateFields() []string { func (d *DentAttr) beforeSave() {} +// +checklocksignore func (d *DentAttr) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.Type) @@ -261,6 +274,7 @@ func (d *DentAttr) StateSave(stateSinkObject state.Sink) { func (d *DentAttr) afterLoad() {} +// +checklocksignore func (d *DentAttr) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.Type) stateSourceObject.Load(1, &d.InodeID) @@ -279,6 +293,7 @@ func (s *SortedDentryMap) StateFields() []string { func (s *SortedDentryMap) beforeSave() {} +// +checklocksignore func (s *SortedDentryMap) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.names) @@ -287,6 +302,7 @@ func (s *SortedDentryMap) StateSave(stateSinkObject state.Sink) { func (s *SortedDentryMap) afterLoad() {} +// +checklocksignore func (s *SortedDentryMap) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.names) stateSourceObject.Load(1, &s.entries) @@ -309,6 +325,7 @@ func (d *Dirent) StateFields() []string { } } +// +checklocksignore func (d *Dirent) StateSave(stateSinkObject state.Sink) { d.beforeSave() var childrenValue map[string]*Dirent = d.saveChildren() @@ -322,6 +339,7 @@ func (d *Dirent) StateSave(stateSinkObject state.Sink) { stateSinkObject.Save(6, &d.mounted) } +// +checklocksignore func (d *Dirent) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.AtomicRefCount) stateSourceObject.Load(1, &d.userVisible) @@ -347,6 +365,7 @@ func (c *DirentCache) StateFields() []string { func (c *DirentCache) beforeSave() {} +// +checklocksignore func (c *DirentCache) StateSave(stateSinkObject state.Sink) { c.beforeSave() if !state.IsZeroValue(&c.currentSize) { @@ -361,6 +380,7 @@ func (c *DirentCache) StateSave(stateSinkObject state.Sink) { func (c *DirentCache) afterLoad() {} +// +checklocksignore func (c *DirentCache) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &c.maxSize) stateSourceObject.Load(1, &c.limit) @@ -378,6 +398,7 @@ func (d *DirentCacheLimiter) StateFields() []string { func (d *DirentCacheLimiter) beforeSave() {} +// +checklocksignore func (d *DirentCacheLimiter) StateSave(stateSinkObject state.Sink) { d.beforeSave() if !state.IsZeroValue(&d.count) { @@ -388,6 +409,7 @@ func (d *DirentCacheLimiter) StateSave(stateSinkObject state.Sink) { func (d *DirentCacheLimiter) afterLoad() {} +// +checklocksignore func (d *DirentCacheLimiter) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.max) } @@ -405,6 +427,7 @@ func (l *direntList) StateFields() []string { func (l *direntList) beforeSave() {} +// +checklocksignore func (l *direntList) StateSave(stateSinkObject state.Sink) { l.beforeSave() stateSinkObject.Save(0, &l.head) @@ -413,6 +436,7 @@ func (l *direntList) StateSave(stateSinkObject state.Sink) { func (l *direntList) afterLoad() {} +// +checklocksignore func (l *direntList) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.head) stateSourceObject.Load(1, &l.tail) @@ -431,6 +455,7 @@ func (e *direntEntry) StateFields() []string { func (e *direntEntry) beforeSave() {} +// +checklocksignore func (e *direntEntry) StateSave(stateSinkObject state.Sink) { e.beforeSave() stateSinkObject.Save(0, &e.next) @@ -439,6 +464,7 @@ func (e *direntEntry) StateSave(stateSinkObject state.Sink) { func (e *direntEntry) afterLoad() {} +// +checklocksignore func (e *direntEntry) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &e.next) stateSourceObject.Load(1, &e.prev) @@ -457,6 +483,7 @@ func (l *eventList) StateFields() []string { func (l *eventList) beforeSave() {} +// +checklocksignore func (l *eventList) StateSave(stateSinkObject state.Sink) { l.beforeSave() stateSinkObject.Save(0, &l.head) @@ -465,6 +492,7 @@ func (l *eventList) StateSave(stateSinkObject state.Sink) { func (l *eventList) afterLoad() {} +// +checklocksignore func (l *eventList) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.head) stateSourceObject.Load(1, &l.tail) @@ -483,6 +511,7 @@ func (e *eventEntry) StateFields() []string { func (e *eventEntry) beforeSave() {} +// +checklocksignore func (e *eventEntry) StateSave(stateSinkObject state.Sink) { e.beforeSave() stateSinkObject.Save(0, &e.next) @@ -491,6 +520,7 @@ func (e *eventEntry) StateSave(stateSinkObject state.Sink) { func (e *eventEntry) afterLoad() {} +// +checklocksignore func (e *eventEntry) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &e.next) stateSourceObject.Load(1, &e.prev) @@ -512,6 +542,7 @@ func (f *File) StateFields() []string { } } +// +checklocksignore func (f *File) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.AtomicRefCount) @@ -523,6 +554,7 @@ func (f *File) StateSave(stateSinkObject state.Sink) { stateSinkObject.Save(6, &f.offset) } +// +checklocksignore func (f *File) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.AtomicRefCount) stateSourceObject.Load(1, &f.UniqueID) @@ -548,6 +580,7 @@ func (f *overlayFileOperations) StateFields() []string { func (f *overlayFileOperations) beforeSave() {} +// +checklocksignore func (f *overlayFileOperations) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.upper) @@ -557,6 +590,7 @@ func (f *overlayFileOperations) StateSave(stateSinkObject state.Sink) { func (f *overlayFileOperations) afterLoad() {} +// +checklocksignore func (f *overlayFileOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.upper) stateSourceObject.Load(1, &f.lower) @@ -577,6 +611,7 @@ func (omi *overlayMappingIdentity) StateFields() []string { func (omi *overlayMappingIdentity) beforeSave() {} +// +checklocksignore func (omi *overlayMappingIdentity) StateSave(stateSinkObject state.Sink) { omi.beforeSave() stateSinkObject.Save(0, &omi.AtomicRefCount) @@ -586,6 +621,7 @@ func (omi *overlayMappingIdentity) StateSave(stateSinkObject state.Sink) { func (omi *overlayMappingIdentity) afterLoad() {} +// +checklocksignore func (omi *overlayMappingIdentity) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &omi.AtomicRefCount) stateSourceObject.Load(1, &omi.id) @@ -607,6 +643,7 @@ func (m *MountSourceFlags) StateFields() []string { func (m *MountSourceFlags) beforeSave() {} +// +checklocksignore func (m *MountSourceFlags) StateSave(stateSinkObject state.Sink) { m.beforeSave() stateSinkObject.Save(0, &m.ReadOnly) @@ -617,6 +654,7 @@ func (m *MountSourceFlags) StateSave(stateSinkObject state.Sink) { func (m *MountSourceFlags) afterLoad() {} +// +checklocksignore func (m *MountSourceFlags) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &m.ReadOnly) stateSourceObject.Load(1, &m.NoAtime) @@ -649,6 +687,7 @@ func (f *FileFlags) StateFields() []string { func (f *FileFlags) beforeSave() {} +// +checklocksignore func (f *FileFlags) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.Direct) @@ -669,6 +708,7 @@ func (f *FileFlags) StateSave(stateSinkObject state.Sink) { func (f *FileFlags) afterLoad() {} +// +checklocksignore func (f *FileFlags) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.Direct) stateSourceObject.Load(1, &f.NonBlocking) @@ -704,6 +744,7 @@ func (i *Inode) StateFields() []string { func (i *Inode) beforeSave() {} +// +checklocksignore func (i *Inode) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.AtomicRefCount) @@ -717,6 +758,7 @@ func (i *Inode) StateSave(stateSinkObject state.Sink) { func (i *Inode) afterLoad() {} +// +checklocksignore func (i *Inode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.AtomicRefCount) stateSourceObject.Load(1, &i.InodeOperations) @@ -740,6 +782,7 @@ func (l *LockCtx) StateFields() []string { func (l *LockCtx) beforeSave() {} +// +checklocksignore func (l *LockCtx) StateSave(stateSinkObject state.Sink) { l.beforeSave() stateSinkObject.Save(0, &l.Posix) @@ -748,6 +791,7 @@ func (l *LockCtx) StateSave(stateSinkObject state.Sink) { func (l *LockCtx) afterLoad() {} +// +checklocksignore func (l *LockCtx) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.Posix) stateSourceObject.Load(1, &l.BSD) @@ -766,6 +810,7 @@ func (w *Watches) StateFields() []string { func (w *Watches) beforeSave() {} +// +checklocksignore func (w *Watches) StateSave(stateSinkObject state.Sink) { w.beforeSave() stateSinkObject.Save(0, &w.ws) @@ -774,6 +819,7 @@ func (w *Watches) StateSave(stateSinkObject state.Sink) { func (w *Watches) afterLoad() {} +// +checklocksignore func (w *Watches) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &w.ws) stateSourceObject.Load(1, &w.unlinked) @@ -795,6 +841,7 @@ func (i *Inotify) StateFields() []string { func (i *Inotify) beforeSave() {} +// +checklocksignore func (i *Inotify) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.id) @@ -806,6 +853,7 @@ func (i *Inotify) StateSave(stateSinkObject state.Sink) { func (i *Inotify) afterLoad() {} +// +checklocksignore func (i *Inotify) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.id) stateSourceObject.Load(1, &i.events) @@ -831,6 +879,7 @@ func (e *Event) StateFields() []string { func (e *Event) beforeSave() {} +// +checklocksignore func (e *Event) StateSave(stateSinkObject state.Sink) { e.beforeSave() stateSinkObject.Save(0, &e.eventEntry) @@ -843,6 +892,7 @@ func (e *Event) StateSave(stateSinkObject state.Sink) { func (e *Event) afterLoad() {} +// +checklocksignore func (e *Event) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &e.eventEntry) stateSourceObject.Load(1, &e.wd) @@ -869,6 +919,7 @@ func (w *Watch) StateFields() []string { func (w *Watch) beforeSave() {} +// +checklocksignore func (w *Watch) StateSave(stateSinkObject state.Sink) { w.beforeSave() stateSinkObject.Save(0, &w.owner) @@ -881,6 +932,7 @@ func (w *Watch) StateSave(stateSinkObject state.Sink) { func (w *Watch) afterLoad() {} +// +checklocksignore func (w *Watch) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &w.owner) stateSourceObject.Load(1, &w.wd) @@ -907,6 +959,7 @@ func (msrc *MountSource) StateFields() []string { func (msrc *MountSource) beforeSave() {} +// +checklocksignore func (msrc *MountSource) StateSave(stateSinkObject state.Sink) { msrc.beforeSave() stateSinkObject.Save(0, &msrc.AtomicRefCount) @@ -919,6 +972,7 @@ func (msrc *MountSource) StateSave(stateSinkObject state.Sink) { func (msrc *MountSource) afterLoad() {} +// +checklocksignore func (msrc *MountSource) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &msrc.AtomicRefCount) stateSourceObject.Load(1, &msrc.MountSourceOperations) @@ -942,6 +996,7 @@ func (smo *SimpleMountSourceOperations) StateFields() []string { func (smo *SimpleMountSourceOperations) beforeSave() {} +// +checklocksignore func (smo *SimpleMountSourceOperations) StateSave(stateSinkObject state.Sink) { smo.beforeSave() stateSinkObject.Save(0, &smo.keep) @@ -951,6 +1006,7 @@ func (smo *SimpleMountSourceOperations) StateSave(stateSinkObject state.Sink) { func (smo *SimpleMountSourceOperations) afterLoad() {} +// +checklocksignore func (smo *SimpleMountSourceOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &smo.keep) stateSourceObject.Load(1, &smo.revalidate) @@ -970,6 +1026,7 @@ func (o *overlayMountSourceOperations) StateFields() []string { func (o *overlayMountSourceOperations) beforeSave() {} +// +checklocksignore func (o *overlayMountSourceOperations) StateSave(stateSinkObject state.Sink) { o.beforeSave() stateSinkObject.Save(0, &o.upper) @@ -978,6 +1035,7 @@ func (o *overlayMountSourceOperations) StateSave(stateSinkObject state.Sink) { func (o *overlayMountSourceOperations) afterLoad() {} +// +checklocksignore func (o *overlayMountSourceOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &o.upper) stateSourceObject.Load(1, &o.lower) @@ -993,12 +1051,14 @@ func (ofs *overlayFilesystem) StateFields() []string { func (ofs *overlayFilesystem) beforeSave() {} +// +checklocksignore func (ofs *overlayFilesystem) StateSave(stateSinkObject state.Sink) { ofs.beforeSave() } func (ofs *overlayFilesystem) afterLoad() {} +// +checklocksignore func (ofs *overlayFilesystem) StateLoad(stateSourceObject state.Source) { } @@ -1017,6 +1077,7 @@ func (m *Mount) StateFields() []string { func (m *Mount) beforeSave() {} +// +checklocksignore func (m *Mount) StateSave(stateSinkObject state.Sink) { m.beforeSave() stateSinkObject.Save(0, &m.ID) @@ -1027,6 +1088,7 @@ func (m *Mount) StateSave(stateSinkObject state.Sink) { func (m *Mount) afterLoad() {} +// +checklocksignore func (m *Mount) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &m.ID) stateSourceObject.Load(1, &m.ParentID) @@ -1050,6 +1112,7 @@ func (mns *MountNamespace) StateFields() []string { func (mns *MountNamespace) beforeSave() {} +// +checklocksignore func (mns *MountNamespace) StateSave(stateSinkObject state.Sink) { mns.beforeSave() stateSinkObject.Save(0, &mns.AtomicRefCount) @@ -1061,6 +1124,7 @@ func (mns *MountNamespace) StateSave(stateSinkObject state.Sink) { func (mns *MountNamespace) afterLoad() {} +// +checklocksignore func (mns *MountNamespace) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &mns.AtomicRefCount) stateSourceObject.Load(1, &mns.userns) @@ -1085,6 +1149,7 @@ func (o *overlayEntry) StateFields() []string { func (o *overlayEntry) beforeSave() {} +// +checklocksignore func (o *overlayEntry) StateSave(stateSinkObject state.Sink) { o.beforeSave() stateSinkObject.Save(0, &o.lowerExists) @@ -1096,6 +1161,7 @@ func (o *overlayEntry) StateSave(stateSinkObject state.Sink) { func (o *overlayEntry) afterLoad() {} +// +checklocksignore func (o *overlayEntry) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &o.lowerExists) stateSourceObject.Load(1, &o.lower) diff --git a/pkg/sentry/fs/fsutil/fsutil_impl_state_autogen.go b/pkg/sentry/fs/fsutil/fsutil_impl_state_autogen.go index cb6b2ca81..b7f95bde7 100644 --- a/pkg/sentry/fs/fsutil/fsutil_impl_state_autogen.go +++ b/pkg/sentry/fs/fsutil/fsutil_impl_state_autogen.go @@ -18,6 +18,7 @@ func (s *DirtySet) StateFields() []string { func (s *DirtySet) beforeSave() {} +// +checklocksignore func (s *DirtySet) StateSave(stateSinkObject state.Sink) { s.beforeSave() var rootValue *DirtySegmentDataSlices = s.saveRoot() @@ -26,6 +27,7 @@ func (s *DirtySet) StateSave(stateSinkObject state.Sink) { func (s *DirtySet) afterLoad() {} +// +checklocksignore func (s *DirtySet) StateLoad(stateSourceObject state.Source) { stateSourceObject.LoadValue(0, new(*DirtySegmentDataSlices), func(y interface{}) { s.loadRoot(y.(*DirtySegmentDataSlices)) }) } @@ -49,6 +51,7 @@ func (n *Dirtynode) StateFields() []string { func (n *Dirtynode) beforeSave() {} +// +checklocksignore func (n *Dirtynode) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.nrSegments) @@ -63,6 +66,7 @@ func (n *Dirtynode) StateSave(stateSinkObject state.Sink) { func (n *Dirtynode) afterLoad() {} +// +checklocksignore func (n *Dirtynode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.nrSegments) stateSourceObject.Load(1, &n.parent) @@ -88,6 +92,7 @@ func (d *DirtySegmentDataSlices) StateFields() []string { func (d *DirtySegmentDataSlices) beforeSave() {} +// +checklocksignore func (d *DirtySegmentDataSlices) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.Start) @@ -97,6 +102,7 @@ func (d *DirtySegmentDataSlices) StateSave(stateSinkObject state.Sink) { func (d *DirtySegmentDataSlices) afterLoad() {} +// +checklocksignore func (d *DirtySegmentDataSlices) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.Start) stateSourceObject.Load(1, &d.End) @@ -115,6 +121,7 @@ func (s *FileRangeSet) StateFields() []string { func (s *FileRangeSet) beforeSave() {} +// +checklocksignore func (s *FileRangeSet) StateSave(stateSinkObject state.Sink) { s.beforeSave() var rootValue *FileRangeSegmentDataSlices = s.saveRoot() @@ -123,6 +130,7 @@ func (s *FileRangeSet) StateSave(stateSinkObject state.Sink) { func (s *FileRangeSet) afterLoad() {} +// +checklocksignore func (s *FileRangeSet) StateLoad(stateSourceObject state.Source) { stateSourceObject.LoadValue(0, new(*FileRangeSegmentDataSlices), func(y interface{}) { s.loadRoot(y.(*FileRangeSegmentDataSlices)) }) } @@ -146,6 +154,7 @@ func (n *FileRangenode) StateFields() []string { func (n *FileRangenode) beforeSave() {} +// +checklocksignore func (n *FileRangenode) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.nrSegments) @@ -160,6 +169,7 @@ func (n *FileRangenode) StateSave(stateSinkObject state.Sink) { func (n *FileRangenode) afterLoad() {} +// +checklocksignore func (n *FileRangenode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.nrSegments) stateSourceObject.Load(1, &n.parent) @@ -185,6 +195,7 @@ func (f *FileRangeSegmentDataSlices) StateFields() []string { func (f *FileRangeSegmentDataSlices) beforeSave() {} +// +checklocksignore func (f *FileRangeSegmentDataSlices) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.Start) @@ -194,6 +205,7 @@ func (f *FileRangeSegmentDataSlices) StateSave(stateSinkObject state.Sink) { func (f *FileRangeSegmentDataSlices) afterLoad() {} +// +checklocksignore func (f *FileRangeSegmentDataSlices) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.Start) stateSourceObject.Load(1, &f.End) @@ -212,6 +224,7 @@ func (s *FrameRefSet) StateFields() []string { func (s *FrameRefSet) beforeSave() {} +// +checklocksignore func (s *FrameRefSet) StateSave(stateSinkObject state.Sink) { s.beforeSave() var rootValue *FrameRefSegmentDataSlices = s.saveRoot() @@ -220,6 +233,7 @@ func (s *FrameRefSet) StateSave(stateSinkObject state.Sink) { func (s *FrameRefSet) afterLoad() {} +// +checklocksignore func (s *FrameRefSet) StateLoad(stateSourceObject state.Source) { stateSourceObject.LoadValue(0, new(*FrameRefSegmentDataSlices), func(y interface{}) { s.loadRoot(y.(*FrameRefSegmentDataSlices)) }) } @@ -243,6 +257,7 @@ func (n *FrameRefnode) StateFields() []string { func (n *FrameRefnode) beforeSave() {} +// +checklocksignore func (n *FrameRefnode) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.nrSegments) @@ -257,6 +272,7 @@ func (n *FrameRefnode) StateSave(stateSinkObject state.Sink) { func (n *FrameRefnode) afterLoad() {} +// +checklocksignore func (n *FrameRefnode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.nrSegments) stateSourceObject.Load(1, &n.parent) @@ -282,6 +298,7 @@ func (f *FrameRefSegmentDataSlices) StateFields() []string { func (f *FrameRefSegmentDataSlices) beforeSave() {} +// +checklocksignore func (f *FrameRefSegmentDataSlices) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.Start) @@ -291,6 +308,7 @@ func (f *FrameRefSegmentDataSlices) StateSave(stateSinkObject state.Sink) { func (f *FrameRefSegmentDataSlices) afterLoad() {} +// +checklocksignore func (f *FrameRefSegmentDataSlices) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.Start) stateSourceObject.Load(1, &f.End) diff --git a/pkg/sentry/fs/fsutil/fsutil_state_autogen.go b/pkg/sentry/fs/fsutil/fsutil_state_autogen.go index 439ab9a65..748eb9272 100644 --- a/pkg/sentry/fs/fsutil/fsutil_state_autogen.go +++ b/pkg/sentry/fs/fsutil/fsutil_state_autogen.go @@ -18,6 +18,7 @@ func (d *DirtyInfo) StateFields() []string { func (d *DirtyInfo) beforeSave() {} +// +checklocksignore func (d *DirtyInfo) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.Keep) @@ -25,6 +26,7 @@ func (d *DirtyInfo) StateSave(stateSinkObject state.Sink) { func (d *DirtyInfo) afterLoad() {} +// +checklocksignore func (d *DirtyInfo) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.Keep) } @@ -42,6 +44,7 @@ func (sdfo *StaticDirFileOperations) StateFields() []string { func (sdfo *StaticDirFileOperations) beforeSave() {} +// +checklocksignore func (sdfo *StaticDirFileOperations) StateSave(stateSinkObject state.Sink) { sdfo.beforeSave() stateSinkObject.Save(0, &sdfo.dentryMap) @@ -50,6 +53,7 @@ func (sdfo *StaticDirFileOperations) StateSave(stateSinkObject state.Sink) { func (sdfo *StaticDirFileOperations) afterLoad() {} +// +checklocksignore func (sdfo *StaticDirFileOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &sdfo.dentryMap) stateSourceObject.Load(1, &sdfo.dirCursor) @@ -65,12 +69,14 @@ func (n *NoReadWriteFile) StateFields() []string { func (n *NoReadWriteFile) beforeSave() {} +// +checklocksignore func (n *NoReadWriteFile) StateSave(stateSinkObject state.Sink) { n.beforeSave() } func (n *NoReadWriteFile) afterLoad() {} +// +checklocksignore func (n *NoReadWriteFile) StateLoad(stateSourceObject state.Source) { } @@ -86,6 +92,7 @@ func (scr *FileStaticContentReader) StateFields() []string { func (scr *FileStaticContentReader) beforeSave() {} +// +checklocksignore func (scr *FileStaticContentReader) StateSave(stateSinkObject state.Sink) { scr.beforeSave() stateSinkObject.Save(0, &scr.content) @@ -93,6 +100,7 @@ func (scr *FileStaticContentReader) StateSave(stateSinkObject state.Sink) { func (scr *FileStaticContentReader) afterLoad() {} +// +checklocksignore func (scr *FileStaticContentReader) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &scr.content) } @@ -109,11 +117,13 @@ func (f *HostFileMapper) StateFields() []string { func (f *HostFileMapper) beforeSave() {} +// +checklocksignore func (f *HostFileMapper) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.refs) } +// +checklocksignore func (f *HostFileMapper) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.refs) stateSourceObject.AfterLoad(f.afterLoad) @@ -133,6 +143,7 @@ func (h *HostMappable) StateFields() []string { func (h *HostMappable) beforeSave() {} +// +checklocksignore func (h *HostMappable) StateSave(stateSinkObject state.Sink) { h.beforeSave() stateSinkObject.Save(0, &h.hostFileMapper) @@ -142,6 +153,7 @@ func (h *HostMappable) StateSave(stateSinkObject state.Sink) { func (h *HostMappable) afterLoad() {} +// +checklocksignore func (h *HostMappable) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &h.hostFileMapper) stateSourceObject.Load(1, &h.backingFile) @@ -160,6 +172,7 @@ func (s *SimpleFileInode) StateFields() []string { func (s *SimpleFileInode) beforeSave() {} +// +checklocksignore func (s *SimpleFileInode) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.InodeSimpleAttributes) @@ -167,6 +180,7 @@ func (s *SimpleFileInode) StateSave(stateSinkObject state.Sink) { func (s *SimpleFileInode) afterLoad() {} +// +checklocksignore func (s *SimpleFileInode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.InodeSimpleAttributes) } @@ -183,6 +197,7 @@ func (n *NoReadWriteFileInode) StateFields() []string { func (n *NoReadWriteFileInode) beforeSave() {} +// +checklocksignore func (n *NoReadWriteFileInode) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.InodeSimpleAttributes) @@ -190,6 +205,7 @@ func (n *NoReadWriteFileInode) StateSave(stateSinkObject state.Sink) { func (n *NoReadWriteFileInode) afterLoad() {} +// +checklocksignore func (n *NoReadWriteFileInode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.InodeSimpleAttributes) } @@ -207,6 +223,7 @@ func (i *InodeSimpleAttributes) StateFields() []string { func (i *InodeSimpleAttributes) beforeSave() {} +// +checklocksignore func (i *InodeSimpleAttributes) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.fsType) @@ -215,6 +232,7 @@ func (i *InodeSimpleAttributes) StateSave(stateSinkObject state.Sink) { func (i *InodeSimpleAttributes) afterLoad() {} +// +checklocksignore func (i *InodeSimpleAttributes) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.fsType) stateSourceObject.Load(1, &i.unstable) @@ -232,6 +250,7 @@ func (i *InodeSimpleExtendedAttributes) StateFields() []string { func (i *InodeSimpleExtendedAttributes) beforeSave() {} +// +checklocksignore func (i *InodeSimpleExtendedAttributes) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.xattrs) @@ -239,6 +258,7 @@ func (i *InodeSimpleExtendedAttributes) StateSave(stateSinkObject state.Sink) { func (i *InodeSimpleExtendedAttributes) afterLoad() {} +// +checklocksignore func (i *InodeSimpleExtendedAttributes) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.xattrs) } @@ -255,6 +275,7 @@ func (s *staticFile) StateFields() []string { func (s *staticFile) beforeSave() {} +// +checklocksignore func (s *staticFile) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.FileStaticContentReader) @@ -262,6 +283,7 @@ func (s *staticFile) StateSave(stateSinkObject state.Sink) { func (s *staticFile) afterLoad() {} +// +checklocksignore func (s *staticFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.FileStaticContentReader) } @@ -278,6 +300,7 @@ func (i *InodeStaticFileGetter) StateFields() []string { func (i *InodeStaticFileGetter) beforeSave() {} +// +checklocksignore func (i *InodeStaticFileGetter) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.Contents) @@ -285,6 +308,7 @@ func (i *InodeStaticFileGetter) StateSave(stateSinkObject state.Sink) { func (i *InodeStaticFileGetter) afterLoad() {} +// +checklocksignore func (i *InodeStaticFileGetter) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.Contents) } @@ -310,6 +334,7 @@ func (c *CachingInodeOperations) StateFields() []string { func (c *CachingInodeOperations) beforeSave() {} +// +checklocksignore func (c *CachingInodeOperations) StateSave(stateSinkObject state.Sink) { c.beforeSave() stateSinkObject.Save(0, &c.backingFile) @@ -326,6 +351,7 @@ func (c *CachingInodeOperations) StateSave(stateSinkObject state.Sink) { func (c *CachingInodeOperations) afterLoad() {} +// +checklocksignore func (c *CachingInodeOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &c.backingFile) stateSourceObject.Load(1, &c.mfp) @@ -352,6 +378,7 @@ func (c *CachingInodeOperationsOptions) StateFields() []string { func (c *CachingInodeOperationsOptions) beforeSave() {} +// +checklocksignore func (c *CachingInodeOperationsOptions) StateSave(stateSinkObject state.Sink) { c.beforeSave() stateSinkObject.Save(0, &c.ForcePageCache) @@ -360,6 +387,7 @@ func (c *CachingInodeOperationsOptions) StateSave(stateSinkObject state.Sink) { func (c *CachingInodeOperationsOptions) afterLoad() {} +// +checklocksignore func (c *CachingInodeOperationsOptions) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &c.ForcePageCache) stateSourceObject.Load(1, &c.LimitHostFDTranslation) diff --git a/pkg/sentry/fs/gofer/gofer_state_autogen.go b/pkg/sentry/fs/gofer/gofer_state_autogen.go index d2eb67d58..d22ecc3c2 100644 --- a/pkg/sentry/fs/gofer/gofer_state_autogen.go +++ b/pkg/sentry/fs/gofer/gofer_state_autogen.go @@ -19,6 +19,7 @@ func (i *fifo) StateFields() []string { func (i *fifo) beforeSave() {} +// +checklocksignore func (i *fifo) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.InodeOperations) @@ -27,6 +28,7 @@ func (i *fifo) StateSave(stateSinkObject state.Sink) { func (i *fifo) afterLoad() {} +// +checklocksignore func (i *fifo) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.InodeOperations) stateSourceObject.Load(1, &i.fileIops) @@ -46,6 +48,7 @@ func (f *fileOperations) StateFields() []string { func (f *fileOperations) beforeSave() {} +// +checklocksignore func (f *fileOperations) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.inodeOperations) @@ -53,6 +56,7 @@ func (f *fileOperations) StateSave(stateSinkObject state.Sink) { stateSinkObject.Save(2, &f.flags) } +// +checklocksignore func (f *fileOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.LoadWait(0, &f.inodeOperations) stateSourceObject.Load(1, &f.dirCursor) @@ -70,12 +74,14 @@ func (f *filesystem) StateFields() []string { func (f *filesystem) beforeSave() {} +// +checklocksignore func (f *filesystem) StateSave(stateSinkObject state.Sink) { f.beforeSave() } func (f *filesystem) afterLoad() {} +// +checklocksignore func (f *filesystem) StateLoad(stateSourceObject state.Source) { } @@ -92,6 +98,7 @@ func (i *inodeOperations) StateFields() []string { func (i *inodeOperations) beforeSave() {} +// +checklocksignore func (i *inodeOperations) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.fileState) @@ -100,6 +107,7 @@ func (i *inodeOperations) StateSave(stateSinkObject state.Sink) { func (i *inodeOperations) afterLoad() {} +// +checklocksignore func (i *inodeOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.LoadWait(0, &i.fileState) stateSourceObject.Load(1, &i.cachingInodeOps) @@ -119,6 +127,7 @@ func (i *inodeFileState) StateFields() []string { } } +// +checklocksignore func (i *inodeFileState) StateSave(stateSinkObject state.Sink) { i.beforeSave() var loadingValue struct{} = i.saveLoading() @@ -129,6 +138,7 @@ func (i *inodeFileState) StateSave(stateSinkObject state.Sink) { stateSinkObject.Save(4, &i.hostMappable) } +// +checklocksignore func (i *inodeFileState) StateLoad(stateSourceObject state.Source) { stateSourceObject.LoadWait(0, &i.s) stateSourceObject.LoadWait(1, &i.sattr) @@ -152,6 +162,7 @@ func (l *overrideInfo) StateFields() []string { func (l *overrideInfo) beforeSave() {} +// +checklocksignore func (l *overrideInfo) StateSave(stateSinkObject state.Sink) { l.beforeSave() stateSinkObject.Save(0, &l.dirent) @@ -161,6 +172,7 @@ func (l *overrideInfo) StateSave(stateSinkObject state.Sink) { func (l *overrideInfo) afterLoad() {} +// +checklocksignore func (l *overrideInfo) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.dirent) stateSourceObject.Load(1, &l.endpoint) @@ -179,6 +191,7 @@ func (e *overrideMaps) StateFields() []string { func (e *overrideMaps) beforeSave() {} +// +checklocksignore func (e *overrideMaps) StateSave(stateSinkObject state.Sink) { e.beforeSave() stateSinkObject.Save(0, &e.pathMap) @@ -186,6 +199,7 @@ func (e *overrideMaps) StateSave(stateSinkObject state.Sink) { func (e *overrideMaps) afterLoad() {} +// +checklocksignore func (e *overrideMaps) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &e.pathMap) } @@ -211,6 +225,7 @@ func (s *session) StateFields() []string { } } +// +checklocksignore func (s *session) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.AtomicRefCount) @@ -227,6 +242,7 @@ func (s *session) StateSave(stateSinkObject state.Sink) { stateSinkObject.Save(11, &s.overrides) } +// +checklocksignore func (s *session) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.AtomicRefCount) stateSourceObject.LoadWait(1, &s.msize) diff --git a/pkg/sentry/fs/host/host_state_autogen.go b/pkg/sentry/fs/host/host_state_autogen.go index baae8fffa..b06247919 100644 --- a/pkg/sentry/fs/host/host_state_autogen.go +++ b/pkg/sentry/fs/host/host_state_autogen.go @@ -17,12 +17,14 @@ func (d *descriptor) StateFields() []string { } } +// +checklocksignore func (d *descriptor) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.origFD) stateSinkObject.Save(1, &d.wouldBlock) } +// +checklocksignore func (d *descriptor) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.origFD) stateSourceObject.Load(1, &d.wouldBlock) @@ -42,6 +44,7 @@ func (f *fileOperations) StateFields() []string { func (f *fileOperations) beforeSave() {} +// +checklocksignore func (f *fileOperations) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.iops) @@ -50,6 +53,7 @@ func (f *fileOperations) StateSave(stateSinkObject state.Sink) { func (f *fileOperations) afterLoad() {} +// +checklocksignore func (f *fileOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.LoadWait(0, &f.iops) stateSourceObject.Load(1, &f.dirCursor) @@ -65,12 +69,14 @@ func (f *filesystem) StateFields() []string { func (f *filesystem) beforeSave() {} +// +checklocksignore func (f *filesystem) StateSave(stateSinkObject state.Sink) { f.beforeSave() } func (f *filesystem) afterLoad() {} +// +checklocksignore func (f *filesystem) StateLoad(stateSourceObject state.Source) { } @@ -87,6 +93,7 @@ func (i *inodeOperations) StateFields() []string { func (i *inodeOperations) beforeSave() {} +// +checklocksignore func (i *inodeOperations) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.fileState) @@ -95,6 +102,7 @@ func (i *inodeOperations) StateSave(stateSinkObject state.Sink) { func (i *inodeOperations) afterLoad() {} +// +checklocksignore func (i *inodeOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.LoadWait(0, &i.fileState) stateSourceObject.Load(1, &i.cachingInodeOps) @@ -114,6 +122,7 @@ func (i *inodeFileState) StateFields() []string { func (i *inodeFileState) beforeSave() {} +// +checklocksignore func (i *inodeFileState) StateSave(stateSinkObject state.Sink) { i.beforeSave() if !state.IsZeroValue(&i.queue) { @@ -124,6 +133,7 @@ func (i *inodeFileState) StateSave(stateSinkObject state.Sink) { stateSinkObject.Save(2, &i.savedUAttr) } +// +checklocksignore func (i *inodeFileState) StateLoad(stateSourceObject state.Source) { stateSourceObject.LoadWait(0, &i.descriptor) stateSourceObject.LoadWait(1, &i.sattr) @@ -145,6 +155,7 @@ func (c *ConnectedEndpoint) StateFields() []string { } } +// +checklocksignore func (c *ConnectedEndpoint) StateSave(stateSinkObject state.Sink) { c.beforeSave() stateSinkObject.Save(0, &c.ref) @@ -154,6 +165,7 @@ func (c *ConnectedEndpoint) StateSave(stateSinkObject state.Sink) { stateSinkObject.Save(4, &c.stype) } +// +checklocksignore func (c *ConnectedEndpoint) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &c.ref) stateSourceObject.Load(1, &c.queue) @@ -178,6 +190,7 @@ func (t *TTYFileOperations) StateFields() []string { func (t *TTYFileOperations) beforeSave() {} +// +checklocksignore func (t *TTYFileOperations) StateSave(stateSinkObject state.Sink) { t.beforeSave() stateSinkObject.Save(0, &t.fileOperations) @@ -188,6 +201,7 @@ func (t *TTYFileOperations) StateSave(stateSinkObject state.Sink) { func (t *TTYFileOperations) afterLoad() {} +// +checklocksignore func (t *TTYFileOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &t.fileOperations) stateSourceObject.Load(1, &t.session) diff --git a/pkg/sentry/fs/lock/lock_state_autogen.go b/pkg/sentry/fs/lock/lock_state_autogen.go index 49db04cfb..a0ad18763 100644 --- a/pkg/sentry/fs/lock/lock_state_autogen.go +++ b/pkg/sentry/fs/lock/lock_state_autogen.go @@ -18,6 +18,7 @@ func (o *OwnerInfo) StateFields() []string { func (o *OwnerInfo) beforeSave() {} +// +checklocksignore func (o *OwnerInfo) StateSave(stateSinkObject state.Sink) { o.beforeSave() stateSinkObject.Save(0, &o.PID) @@ -25,6 +26,7 @@ func (o *OwnerInfo) StateSave(stateSinkObject state.Sink) { func (o *OwnerInfo) afterLoad() {} +// +checklocksignore func (o *OwnerInfo) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &o.PID) } @@ -43,6 +45,7 @@ func (l *Lock) StateFields() []string { func (l *Lock) beforeSave() {} +// +checklocksignore func (l *Lock) StateSave(stateSinkObject state.Sink) { l.beforeSave() stateSinkObject.Save(0, &l.Readers) @@ -52,6 +55,7 @@ func (l *Lock) StateSave(stateSinkObject state.Sink) { func (l *Lock) afterLoad() {} +// +checklocksignore func (l *Lock) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.Readers) stateSourceObject.Load(1, &l.Writer) @@ -70,6 +74,7 @@ func (l *Locks) StateFields() []string { func (l *Locks) beforeSave() {} +// +checklocksignore func (l *Locks) StateSave(stateSinkObject state.Sink) { l.beforeSave() if !state.IsZeroValue(&l.blockedQueue) { @@ -80,6 +85,7 @@ func (l *Locks) StateSave(stateSinkObject state.Sink) { func (l *Locks) afterLoad() {} +// +checklocksignore func (l *Locks) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.locks) } @@ -97,6 +103,7 @@ func (r *LockRange) StateFields() []string { func (r *LockRange) beforeSave() {} +// +checklocksignore func (r *LockRange) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.Start) @@ -105,6 +112,7 @@ func (r *LockRange) StateSave(stateSinkObject state.Sink) { func (r *LockRange) afterLoad() {} +// +checklocksignore func (r *LockRange) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.Start) stateSourceObject.Load(1, &r.End) @@ -122,6 +130,7 @@ func (s *LockSet) StateFields() []string { func (s *LockSet) beforeSave() {} +// +checklocksignore func (s *LockSet) StateSave(stateSinkObject state.Sink) { s.beforeSave() var rootValue *LockSegmentDataSlices = s.saveRoot() @@ -130,6 +139,7 @@ func (s *LockSet) StateSave(stateSinkObject state.Sink) { func (s *LockSet) afterLoad() {} +// +checklocksignore func (s *LockSet) StateLoad(stateSourceObject state.Source) { stateSourceObject.LoadValue(0, new(*LockSegmentDataSlices), func(y interface{}) { s.loadRoot(y.(*LockSegmentDataSlices)) }) } @@ -153,6 +163,7 @@ func (n *Locknode) StateFields() []string { func (n *Locknode) beforeSave() {} +// +checklocksignore func (n *Locknode) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.nrSegments) @@ -167,6 +178,7 @@ func (n *Locknode) StateSave(stateSinkObject state.Sink) { func (n *Locknode) afterLoad() {} +// +checklocksignore func (n *Locknode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.nrSegments) stateSourceObject.Load(1, &n.parent) @@ -192,6 +204,7 @@ func (l *LockSegmentDataSlices) StateFields() []string { func (l *LockSegmentDataSlices) beforeSave() {} +// +checklocksignore func (l *LockSegmentDataSlices) StateSave(stateSinkObject state.Sink) { l.beforeSave() stateSinkObject.Save(0, &l.Start) @@ -201,6 +214,7 @@ func (l *LockSegmentDataSlices) StateSave(stateSinkObject state.Sink) { func (l *LockSegmentDataSlices) afterLoad() {} +// +checklocksignore func (l *LockSegmentDataSlices) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.Start) stateSourceObject.Load(1, &l.End) diff --git a/pkg/sentry/fs/proc/proc_state_autogen.go b/pkg/sentry/fs/proc/proc_state_autogen.go index bbbc29f8a..64f9b1da3 100644 --- a/pkg/sentry/fs/proc/proc_state_autogen.go +++ b/pkg/sentry/fs/proc/proc_state_autogen.go @@ -20,6 +20,7 @@ func (i *execArgInode) StateFields() []string { func (i *execArgInode) beforeSave() {} +// +checklocksignore func (i *execArgInode) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.SimpleFileInode) @@ -29,6 +30,7 @@ func (i *execArgInode) StateSave(stateSinkObject state.Sink) { func (i *execArgInode) afterLoad() {} +// +checklocksignore func (i *execArgInode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.SimpleFileInode) stateSourceObject.Load(1, &i.arg) @@ -48,6 +50,7 @@ func (f *execArgFile) StateFields() []string { func (f *execArgFile) beforeSave() {} +// +checklocksignore func (f *execArgFile) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.arg) @@ -56,6 +59,7 @@ func (f *execArgFile) StateSave(stateSinkObject state.Sink) { func (f *execArgFile) afterLoad() {} +// +checklocksignore func (f *execArgFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.arg) stateSourceObject.Load(1, &f.t) @@ -74,6 +78,7 @@ func (f *fdDir) StateFields() []string { func (f *fdDir) beforeSave() {} +// +checklocksignore func (f *fdDir) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.Dir) @@ -82,6 +87,7 @@ func (f *fdDir) StateSave(stateSinkObject state.Sink) { func (f *fdDir) afterLoad() {} +// +checklocksignore func (f *fdDir) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.Dir) stateSourceObject.Load(1, &f.t) @@ -100,6 +106,7 @@ func (f *fdDirFile) StateFields() []string { func (f *fdDirFile) beforeSave() {} +// +checklocksignore func (f *fdDirFile) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.isInfoFile) @@ -108,6 +115,7 @@ func (f *fdDirFile) StateSave(stateSinkObject state.Sink) { func (f *fdDirFile) afterLoad() {} +// +checklocksignore func (f *fdDirFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.isInfoFile) stateSourceObject.Load(1, &f.t) @@ -126,6 +134,7 @@ func (fdid *fdInfoDir) StateFields() []string { func (fdid *fdInfoDir) beforeSave() {} +// +checklocksignore func (fdid *fdInfoDir) StateSave(stateSinkObject state.Sink) { fdid.beforeSave() stateSinkObject.Save(0, &fdid.Dir) @@ -134,6 +143,7 @@ func (fdid *fdInfoDir) StateSave(stateSinkObject state.Sink) { func (fdid *fdInfoDir) afterLoad() {} +// +checklocksignore func (fdid *fdInfoDir) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &fdid.Dir) stateSourceObject.Load(1, &fdid.t) @@ -149,12 +159,14 @@ func (f *filesystemsData) StateFields() []string { func (f *filesystemsData) beforeSave() {} +// +checklocksignore func (f *filesystemsData) StateSave(stateSinkObject state.Sink) { f.beforeSave() } func (f *filesystemsData) afterLoad() {} +// +checklocksignore func (f *filesystemsData) StateLoad(stateSourceObject state.Source) { } @@ -168,12 +180,14 @@ func (f *filesystem) StateFields() []string { func (f *filesystem) beforeSave() {} +// +checklocksignore func (f *filesystem) StateSave(stateSinkObject state.Sink) { f.beforeSave() } func (f *filesystem) afterLoad() {} +// +checklocksignore func (f *filesystem) StateLoad(stateSourceObject state.Source) { } @@ -190,6 +204,7 @@ func (i *taskOwnedInodeOps) StateFields() []string { func (i *taskOwnedInodeOps) beforeSave() {} +// +checklocksignore func (i *taskOwnedInodeOps) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.InodeOperations) @@ -198,6 +213,7 @@ func (i *taskOwnedInodeOps) StateSave(stateSinkObject state.Sink) { func (i *taskOwnedInodeOps) afterLoad() {} +// +checklocksignore func (i *taskOwnedInodeOps) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.InodeOperations) stateSourceObject.Load(1, &i.t) @@ -216,6 +232,7 @@ func (s *staticFileInodeOps) StateFields() []string { func (s *staticFileInodeOps) beforeSave() {} +// +checklocksignore func (s *staticFileInodeOps) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.InodeSimpleAttributes) @@ -224,6 +241,7 @@ func (s *staticFileInodeOps) StateSave(stateSinkObject state.Sink) { func (s *staticFileInodeOps) afterLoad() {} +// +checklocksignore func (s *staticFileInodeOps) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.InodeSimpleAttributes) stateSourceObject.Load(1, &s.InodeStaticFileGetter) @@ -239,12 +257,14 @@ func (d *loadavgData) StateFields() []string { func (d *loadavgData) beforeSave() {} +// +checklocksignore func (d *loadavgData) StateSave(stateSinkObject state.Sink) { d.beforeSave() } func (d *loadavgData) afterLoad() {} +// +checklocksignore func (d *loadavgData) StateLoad(stateSourceObject state.Source) { } @@ -260,6 +280,7 @@ func (d *meminfoData) StateFields() []string { func (d *meminfoData) beforeSave() {} +// +checklocksignore func (d *meminfoData) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.k) @@ -267,6 +288,7 @@ func (d *meminfoData) StateSave(stateSinkObject state.Sink) { func (d *meminfoData) afterLoad() {} +// +checklocksignore func (d *meminfoData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.k) } @@ -283,6 +305,7 @@ func (mif *mountInfoFile) StateFields() []string { func (mif *mountInfoFile) beforeSave() {} +// +checklocksignore func (mif *mountInfoFile) StateSave(stateSinkObject state.Sink) { mif.beforeSave() stateSinkObject.Save(0, &mif.t) @@ -290,6 +313,7 @@ func (mif *mountInfoFile) StateSave(stateSinkObject state.Sink) { func (mif *mountInfoFile) afterLoad() {} +// +checklocksignore func (mif *mountInfoFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &mif.t) } @@ -306,6 +330,7 @@ func (mf *mountsFile) StateFields() []string { func (mf *mountsFile) beforeSave() {} +// +checklocksignore func (mf *mountsFile) StateSave(stateSinkObject state.Sink) { mf.beforeSave() stateSinkObject.Save(0, &mf.t) @@ -313,6 +338,7 @@ func (mf *mountsFile) StateSave(stateSinkObject state.Sink) { func (mf *mountsFile) afterLoad() {} +// +checklocksignore func (mf *mountsFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &mf.t) } @@ -329,6 +355,7 @@ func (n *ifinet6) StateFields() []string { func (n *ifinet6) beforeSave() {} +// +checklocksignore func (n *ifinet6) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.s) @@ -336,6 +363,7 @@ func (n *ifinet6) StateSave(stateSinkObject state.Sink) { func (n *ifinet6) afterLoad() {} +// +checklocksignore func (n *ifinet6) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.s) } @@ -352,6 +380,7 @@ func (n *netDev) StateFields() []string { func (n *netDev) beforeSave() {} +// +checklocksignore func (n *netDev) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.s) @@ -359,6 +388,7 @@ func (n *netDev) StateSave(stateSinkObject state.Sink) { func (n *netDev) afterLoad() {} +// +checklocksignore func (n *netDev) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.s) } @@ -375,6 +405,7 @@ func (n *netSnmp) StateFields() []string { func (n *netSnmp) beforeSave() {} +// +checklocksignore func (n *netSnmp) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.s) @@ -382,6 +413,7 @@ func (n *netSnmp) StateSave(stateSinkObject state.Sink) { func (n *netSnmp) afterLoad() {} +// +checklocksignore func (n *netSnmp) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.s) } @@ -398,6 +430,7 @@ func (n *netRoute) StateFields() []string { func (n *netRoute) beforeSave() {} +// +checklocksignore func (n *netRoute) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.s) @@ -405,6 +438,7 @@ func (n *netRoute) StateSave(stateSinkObject state.Sink) { func (n *netRoute) afterLoad() {} +// +checklocksignore func (n *netRoute) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.s) } @@ -421,6 +455,7 @@ func (n *netUnix) StateFields() []string { func (n *netUnix) beforeSave() {} +// +checklocksignore func (n *netUnix) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.k) @@ -428,6 +463,7 @@ func (n *netUnix) StateSave(stateSinkObject state.Sink) { func (n *netUnix) afterLoad() {} +// +checklocksignore func (n *netUnix) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.k) } @@ -444,6 +480,7 @@ func (n *netTCP) StateFields() []string { func (n *netTCP) beforeSave() {} +// +checklocksignore func (n *netTCP) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.k) @@ -451,6 +488,7 @@ func (n *netTCP) StateSave(stateSinkObject state.Sink) { func (n *netTCP) afterLoad() {} +// +checklocksignore func (n *netTCP) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.k) } @@ -467,6 +505,7 @@ func (n *netTCP6) StateFields() []string { func (n *netTCP6) beforeSave() {} +// +checklocksignore func (n *netTCP6) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.k) @@ -474,6 +513,7 @@ func (n *netTCP6) StateSave(stateSinkObject state.Sink) { func (n *netTCP6) afterLoad() {} +// +checklocksignore func (n *netTCP6) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.k) } @@ -490,6 +530,7 @@ func (n *netUDP) StateFields() []string { func (n *netUDP) beforeSave() {} +// +checklocksignore func (n *netUDP) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.k) @@ -497,6 +538,7 @@ func (n *netUDP) StateSave(stateSinkObject state.Sink) { func (n *netUDP) afterLoad() {} +// +checklocksignore func (n *netUDP) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.k) } @@ -516,6 +558,7 @@ func (p *proc) StateFields() []string { func (p *proc) beforeSave() {} +// +checklocksignore func (p *proc) StateSave(stateSinkObject state.Sink) { p.beforeSave() stateSinkObject.Save(0, &p.Dir) @@ -526,6 +569,7 @@ func (p *proc) StateSave(stateSinkObject state.Sink) { func (p *proc) afterLoad() {} +// +checklocksignore func (p *proc) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &p.Dir) stateSourceObject.Load(1, &p.k) @@ -546,6 +590,7 @@ func (s *self) StateFields() []string { func (s *self) beforeSave() {} +// +checklocksignore func (s *self) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.Symlink) @@ -554,6 +599,7 @@ func (s *self) StateSave(stateSinkObject state.Sink) { func (s *self) afterLoad() {} +// +checklocksignore func (s *self) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.Symlink) stateSourceObject.Load(1, &s.pidns) @@ -572,6 +618,7 @@ func (s *threadSelf) StateFields() []string { func (s *threadSelf) beforeSave() {} +// +checklocksignore func (s *threadSelf) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.Symlink) @@ -580,6 +627,7 @@ func (s *threadSelf) StateSave(stateSinkObject state.Sink) { func (s *threadSelf) afterLoad() {} +// +checklocksignore func (s *threadSelf) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.Symlink) stateSourceObject.Load(1, &s.pidns) @@ -597,6 +645,7 @@ func (rpf *rootProcFile) StateFields() []string { func (rpf *rootProcFile) beforeSave() {} +// +checklocksignore func (rpf *rootProcFile) StateSave(stateSinkObject state.Sink) { rpf.beforeSave() stateSinkObject.Save(0, &rpf.iops) @@ -604,6 +653,7 @@ func (rpf *rootProcFile) StateSave(stateSinkObject state.Sink) { func (rpf *rootProcFile) afterLoad() {} +// +checklocksignore func (rpf *rootProcFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &rpf.iops) } @@ -620,6 +670,7 @@ func (s *statData) StateFields() []string { func (s *statData) beforeSave() {} +// +checklocksignore func (s *statData) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.k) @@ -627,6 +678,7 @@ func (s *statData) StateSave(stateSinkObject state.Sink) { func (s *statData) afterLoad() {} +// +checklocksignore func (s *statData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.k) } @@ -643,6 +695,7 @@ func (d *mmapMinAddrData) StateFields() []string { func (d *mmapMinAddrData) beforeSave() {} +// +checklocksignore func (d *mmapMinAddrData) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.k) @@ -650,6 +703,7 @@ func (d *mmapMinAddrData) StateSave(stateSinkObject state.Sink) { func (d *mmapMinAddrData) afterLoad() {} +// +checklocksignore func (d *mmapMinAddrData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.k) } @@ -664,12 +718,14 @@ func (o *overcommitMemory) StateFields() []string { func (o *overcommitMemory) beforeSave() {} +// +checklocksignore func (o *overcommitMemory) StateSave(stateSinkObject state.Sink) { o.beforeSave() } func (o *overcommitMemory) afterLoad() {} +// +checklocksignore func (o *overcommitMemory) StateLoad(stateSourceObject state.Source) { } @@ -685,6 +741,7 @@ func (h *hostname) StateFields() []string { func (h *hostname) beforeSave() {} +// +checklocksignore func (h *hostname) StateSave(stateSinkObject state.Sink) { h.beforeSave() stateSinkObject.Save(0, &h.SimpleFileInode) @@ -692,6 +749,7 @@ func (h *hostname) StateSave(stateSinkObject state.Sink) { func (h *hostname) afterLoad() {} +// +checklocksignore func (h *hostname) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &h.SimpleFileInode) } @@ -706,12 +764,14 @@ func (hf *hostnameFile) StateFields() []string { func (hf *hostnameFile) beforeSave() {} +// +checklocksignore func (hf *hostnameFile) StateSave(stateSinkObject state.Sink) { hf.beforeSave() } func (hf *hostnameFile) afterLoad() {} +// +checklocksignore func (hf *hostnameFile) StateLoad(stateSourceObject state.Source) { } @@ -728,6 +788,7 @@ func (t *tcpMemInode) StateFields() []string { } } +// +checklocksignore func (t *tcpMemInode) StateSave(stateSinkObject state.Sink) { t.beforeSave() stateSinkObject.Save(0, &t.SimpleFileInode) @@ -736,6 +797,7 @@ func (t *tcpMemInode) StateSave(stateSinkObject state.Sink) { stateSinkObject.Save(3, &t.size) } +// +checklocksignore func (t *tcpMemInode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &t.SimpleFileInode) stateSourceObject.Load(1, &t.dir) @@ -756,6 +818,7 @@ func (f *tcpMemFile) StateFields() []string { func (f *tcpMemFile) beforeSave() {} +// +checklocksignore func (f *tcpMemFile) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.tcpMemInode) @@ -763,6 +826,7 @@ func (f *tcpMemFile) StateSave(stateSinkObject state.Sink) { func (f *tcpMemFile) afterLoad() {} +// +checklocksignore func (f *tcpMemFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.tcpMemInode) } @@ -781,6 +845,7 @@ func (s *tcpSack) StateFields() []string { func (s *tcpSack) beforeSave() {} +// +checklocksignore func (s *tcpSack) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.SimpleFileInode) @@ -788,6 +853,7 @@ func (s *tcpSack) StateSave(stateSinkObject state.Sink) { stateSinkObject.Save(2, &s.enabled) } +// +checklocksignore func (s *tcpSack) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.SimpleFileInode) stateSourceObject.LoadWait(1, &s.stack) @@ -808,6 +874,7 @@ func (f *tcpSackFile) StateFields() []string { func (f *tcpSackFile) beforeSave() {} +// +checklocksignore func (f *tcpSackFile) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.tcpSack) @@ -816,6 +883,7 @@ func (f *tcpSackFile) StateSave(stateSinkObject state.Sink) { func (f *tcpSackFile) afterLoad() {} +// +checklocksignore func (f *tcpSackFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.tcpSack) stateSourceObject.LoadWait(1, &f.stack) @@ -835,6 +903,7 @@ func (r *tcpRecovery) StateFields() []string { func (r *tcpRecovery) beforeSave() {} +// +checklocksignore func (r *tcpRecovery) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.SimpleFileInode) @@ -844,6 +913,7 @@ func (r *tcpRecovery) StateSave(stateSinkObject state.Sink) { func (r *tcpRecovery) afterLoad() {} +// +checklocksignore func (r *tcpRecovery) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.SimpleFileInode) stateSourceObject.LoadWait(1, &r.stack) @@ -863,6 +933,7 @@ func (f *tcpRecoveryFile) StateFields() []string { func (f *tcpRecoveryFile) beforeSave() {} +// +checklocksignore func (f *tcpRecoveryFile) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.tcpRecovery) @@ -871,6 +942,7 @@ func (f *tcpRecoveryFile) StateSave(stateSinkObject state.Sink) { func (f *tcpRecoveryFile) afterLoad() {} +// +checklocksignore func (f *tcpRecoveryFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.tcpRecovery) stateSourceObject.LoadWait(1, &f.stack) @@ -890,6 +962,7 @@ func (ipf *ipForwarding) StateFields() []string { func (ipf *ipForwarding) beforeSave() {} +// +checklocksignore func (ipf *ipForwarding) StateSave(stateSinkObject state.Sink) { ipf.beforeSave() stateSinkObject.Save(0, &ipf.SimpleFileInode) @@ -897,6 +970,7 @@ func (ipf *ipForwarding) StateSave(stateSinkObject state.Sink) { stateSinkObject.Save(2, &ipf.enabled) } +// +checklocksignore func (ipf *ipForwarding) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &ipf.SimpleFileInode) stateSourceObject.LoadWait(1, &ipf.stack) @@ -917,6 +991,7 @@ func (f *ipForwardingFile) StateFields() []string { func (f *ipForwardingFile) beforeSave() {} +// +checklocksignore func (f *ipForwardingFile) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.ipf) @@ -925,6 +1000,7 @@ func (f *ipForwardingFile) StateSave(stateSinkObject state.Sink) { func (f *ipForwardingFile) afterLoad() {} +// +checklocksignore func (f *ipForwardingFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.ipf) stateSourceObject.LoadWait(1, &f.stack) @@ -945,6 +1021,7 @@ func (in *portRangeInode) StateFields() []string { func (in *portRangeInode) beforeSave() {} +// +checklocksignore func (in *portRangeInode) StateSave(stateSinkObject state.Sink) { in.beforeSave() stateSinkObject.Save(0, &in.SimpleFileInode) @@ -955,6 +1032,7 @@ func (in *portRangeInode) StateSave(stateSinkObject state.Sink) { func (in *portRangeInode) afterLoad() {} +// +checklocksignore func (in *portRangeInode) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &in.SimpleFileInode) stateSourceObject.LoadWait(1, &in.stack) @@ -974,6 +1052,7 @@ func (pf *portRangeFile) StateFields() []string { func (pf *portRangeFile) beforeSave() {} +// +checklocksignore func (pf *portRangeFile) StateSave(stateSinkObject state.Sink) { pf.beforeSave() stateSinkObject.Save(0, &pf.inode) @@ -981,6 +1060,7 @@ func (pf *portRangeFile) StateSave(stateSinkObject state.Sink) { func (pf *portRangeFile) afterLoad() {} +// +checklocksignore func (pf *portRangeFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &pf.inode) } @@ -998,6 +1078,7 @@ func (t *taskDir) StateFields() []string { func (t *taskDir) beforeSave() {} +// +checklocksignore func (t *taskDir) StateSave(stateSinkObject state.Sink) { t.beforeSave() stateSinkObject.Save(0, &t.Dir) @@ -1006,6 +1087,7 @@ func (t *taskDir) StateSave(stateSinkObject state.Sink) { func (t *taskDir) afterLoad() {} +// +checklocksignore func (t *taskDir) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &t.Dir) stateSourceObject.Load(1, &t.t) @@ -1025,6 +1107,7 @@ func (s *subtasks) StateFields() []string { func (s *subtasks) beforeSave() {} +// +checklocksignore func (s *subtasks) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.Dir) @@ -1034,6 +1117,7 @@ func (s *subtasks) StateSave(stateSinkObject state.Sink) { func (s *subtasks) afterLoad() {} +// +checklocksignore func (s *subtasks) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.Dir) stateSourceObject.Load(1, &s.t) @@ -1053,6 +1137,7 @@ func (f *subtasksFile) StateFields() []string { func (f *subtasksFile) beforeSave() {} +// +checklocksignore func (f *subtasksFile) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.t) @@ -1061,6 +1146,7 @@ func (f *subtasksFile) StateSave(stateSinkObject state.Sink) { func (f *subtasksFile) afterLoad() {} +// +checklocksignore func (f *subtasksFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.t) stateSourceObject.Load(1, &f.pidns) @@ -1079,6 +1165,7 @@ func (e *exe) StateFields() []string { func (e *exe) beforeSave() {} +// +checklocksignore func (e *exe) StateSave(stateSinkObject state.Sink) { e.beforeSave() stateSinkObject.Save(0, &e.Symlink) @@ -1087,6 +1174,7 @@ func (e *exe) StateSave(stateSinkObject state.Sink) { func (e *exe) afterLoad() {} +// +checklocksignore func (e *exe) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &e.Symlink) stateSourceObject.Load(1, &e.t) @@ -1105,6 +1193,7 @@ func (e *cwd) StateFields() []string { func (e *cwd) beforeSave() {} +// +checklocksignore func (e *cwd) StateSave(stateSinkObject state.Sink) { e.beforeSave() stateSinkObject.Save(0, &e.Symlink) @@ -1113,6 +1202,7 @@ func (e *cwd) StateSave(stateSinkObject state.Sink) { func (e *cwd) afterLoad() {} +// +checklocksignore func (e *cwd) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &e.Symlink) stateSourceObject.Load(1, &e.t) @@ -1131,6 +1221,7 @@ func (n *namespaceSymlink) StateFields() []string { func (n *namespaceSymlink) beforeSave() {} +// +checklocksignore func (n *namespaceSymlink) StateSave(stateSinkObject state.Sink) { n.beforeSave() stateSinkObject.Save(0, &n.Symlink) @@ -1139,6 +1230,7 @@ func (n *namespaceSymlink) StateSave(stateSinkObject state.Sink) { func (n *namespaceSymlink) afterLoad() {} +// +checklocksignore func (n *namespaceSymlink) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &n.Symlink) stateSourceObject.Load(1, &n.t) @@ -1157,6 +1249,7 @@ func (m *memData) StateFields() []string { func (m *memData) beforeSave() {} +// +checklocksignore func (m *memData) StateSave(stateSinkObject state.Sink) { m.beforeSave() stateSinkObject.Save(0, &m.SimpleFileInode) @@ -1165,6 +1258,7 @@ func (m *memData) StateSave(stateSinkObject state.Sink) { func (m *memData) afterLoad() {} +// +checklocksignore func (m *memData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &m.SimpleFileInode) stateSourceObject.Load(1, &m.t) @@ -1182,6 +1276,7 @@ func (m *memDataFile) StateFields() []string { func (m *memDataFile) beforeSave() {} +// +checklocksignore func (m *memDataFile) StateSave(stateSinkObject state.Sink) { m.beforeSave() stateSinkObject.Save(0, &m.t) @@ -1189,6 +1284,7 @@ func (m *memDataFile) StateSave(stateSinkObject state.Sink) { func (m *memDataFile) afterLoad() {} +// +checklocksignore func (m *memDataFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &m.t) } @@ -1205,6 +1301,7 @@ func (md *mapsData) StateFields() []string { func (md *mapsData) beforeSave() {} +// +checklocksignore func (md *mapsData) StateSave(stateSinkObject state.Sink) { md.beforeSave() stateSinkObject.Save(0, &md.t) @@ -1212,6 +1309,7 @@ func (md *mapsData) StateSave(stateSinkObject state.Sink) { func (md *mapsData) afterLoad() {} +// +checklocksignore func (md *mapsData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &md.t) } @@ -1228,6 +1326,7 @@ func (sd *smapsData) StateFields() []string { func (sd *smapsData) beforeSave() {} +// +checklocksignore func (sd *smapsData) StateSave(stateSinkObject state.Sink) { sd.beforeSave() stateSinkObject.Save(0, &sd.t) @@ -1235,6 +1334,7 @@ func (sd *smapsData) StateSave(stateSinkObject state.Sink) { func (sd *smapsData) afterLoad() {} +// +checklocksignore func (sd *smapsData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &sd.t) } @@ -1253,6 +1353,7 @@ func (s *taskStatData) StateFields() []string { func (s *taskStatData) beforeSave() {} +// +checklocksignore func (s *taskStatData) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.t) @@ -1262,6 +1363,7 @@ func (s *taskStatData) StateSave(stateSinkObject state.Sink) { func (s *taskStatData) afterLoad() {} +// +checklocksignore func (s *taskStatData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.t) stateSourceObject.Load(1, &s.tgstats) @@ -1280,6 +1382,7 @@ func (s *statmData) StateFields() []string { func (s *statmData) beforeSave() {} +// +checklocksignore func (s *statmData) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.t) @@ -1287,6 +1390,7 @@ func (s *statmData) StateSave(stateSinkObject state.Sink) { func (s *statmData) afterLoad() {} +// +checklocksignore func (s *statmData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.t) } @@ -1304,6 +1408,7 @@ func (s *statusData) StateFields() []string { func (s *statusData) beforeSave() {} +// +checklocksignore func (s *statusData) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.t) @@ -1312,6 +1417,7 @@ func (s *statusData) StateSave(stateSinkObject state.Sink) { func (s *statusData) afterLoad() {} +// +checklocksignore func (s *statusData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.t) stateSourceObject.Load(1, &s.pidns) @@ -1329,6 +1435,7 @@ func (i *ioData) StateFields() []string { func (i *ioData) beforeSave() {} +// +checklocksignore func (i *ioData) StateSave(stateSinkObject state.Sink) { i.beforeSave() stateSinkObject.Save(0, &i.ioUsage) @@ -1336,6 +1443,7 @@ func (i *ioData) StateSave(stateSinkObject state.Sink) { func (i *ioData) afterLoad() {} +// +checklocksignore func (i *ioData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &i.ioUsage) } @@ -1353,6 +1461,7 @@ func (c *comm) StateFields() []string { func (c *comm) beforeSave() {} +// +checklocksignore func (c *comm) StateSave(stateSinkObject state.Sink) { c.beforeSave() stateSinkObject.Save(0, &c.SimpleFileInode) @@ -1361,6 +1470,7 @@ func (c *comm) StateSave(stateSinkObject state.Sink) { func (c *comm) afterLoad() {} +// +checklocksignore func (c *comm) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &c.SimpleFileInode) stateSourceObject.Load(1, &c.t) @@ -1378,6 +1488,7 @@ func (f *commFile) StateFields() []string { func (f *commFile) beforeSave() {} +// +checklocksignore func (f *commFile) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.t) @@ -1385,6 +1496,7 @@ func (f *commFile) StateSave(stateSinkObject state.Sink) { func (f *commFile) afterLoad() {} +// +checklocksignore func (f *commFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.t) } @@ -1402,6 +1514,7 @@ func (a *auxvec) StateFields() []string { func (a *auxvec) beforeSave() {} +// +checklocksignore func (a *auxvec) StateSave(stateSinkObject state.Sink) { a.beforeSave() stateSinkObject.Save(0, &a.SimpleFileInode) @@ -1410,6 +1523,7 @@ func (a *auxvec) StateSave(stateSinkObject state.Sink) { func (a *auxvec) afterLoad() {} +// +checklocksignore func (a *auxvec) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &a.SimpleFileInode) stateSourceObject.Load(1, &a.t) @@ -1427,6 +1541,7 @@ func (f *auxvecFile) StateFields() []string { func (f *auxvecFile) beforeSave() {} +// +checklocksignore func (f *auxvecFile) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.t) @@ -1434,6 +1549,7 @@ func (f *auxvecFile) StateSave(stateSinkObject state.Sink) { func (f *auxvecFile) afterLoad() {} +// +checklocksignore func (f *auxvecFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.t) } @@ -1451,6 +1567,7 @@ func (o *oomScoreAdj) StateFields() []string { func (o *oomScoreAdj) beforeSave() {} +// +checklocksignore func (o *oomScoreAdj) StateSave(stateSinkObject state.Sink) { o.beforeSave() stateSinkObject.Save(0, &o.SimpleFileInode) @@ -1459,6 +1576,7 @@ func (o *oomScoreAdj) StateSave(stateSinkObject state.Sink) { func (o *oomScoreAdj) afterLoad() {} +// +checklocksignore func (o *oomScoreAdj) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &o.SimpleFileInode) stateSourceObject.Load(1, &o.t) @@ -1476,6 +1594,7 @@ func (f *oomScoreAdjFile) StateFields() []string { func (f *oomScoreAdjFile) beforeSave() {} +// +checklocksignore func (f *oomScoreAdjFile) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.t) @@ -1483,6 +1602,7 @@ func (f *oomScoreAdjFile) StateSave(stateSinkObject state.Sink) { func (f *oomScoreAdjFile) afterLoad() {} +// +checklocksignore func (f *oomScoreAdjFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.t) } @@ -1502,6 +1622,7 @@ func (imio *idMapInodeOperations) StateFields() []string { func (imio *idMapInodeOperations) beforeSave() {} +// +checklocksignore func (imio *idMapInodeOperations) StateSave(stateSinkObject state.Sink) { imio.beforeSave() stateSinkObject.Save(0, &imio.InodeSimpleAttributes) @@ -1512,6 +1633,7 @@ func (imio *idMapInodeOperations) StateSave(stateSinkObject state.Sink) { func (imio *idMapInodeOperations) afterLoad() {} +// +checklocksignore func (imio *idMapInodeOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &imio.InodeSimpleAttributes) stateSourceObject.Load(1, &imio.InodeSimpleExtendedAttributes) @@ -1531,6 +1653,7 @@ func (imfo *idMapFileOperations) StateFields() []string { func (imfo *idMapFileOperations) beforeSave() {} +// +checklocksignore func (imfo *idMapFileOperations) StateSave(stateSinkObject state.Sink) { imfo.beforeSave() stateSinkObject.Save(0, &imfo.iops) @@ -1538,6 +1661,7 @@ func (imfo *idMapFileOperations) StateSave(stateSinkObject state.Sink) { func (imfo *idMapFileOperations) afterLoad() {} +// +checklocksignore func (imfo *idMapFileOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &imfo.iops) } @@ -1555,6 +1679,7 @@ func (u *uptime) StateFields() []string { func (u *uptime) beforeSave() {} +// +checklocksignore func (u *uptime) StateSave(stateSinkObject state.Sink) { u.beforeSave() stateSinkObject.Save(0, &u.SimpleFileInode) @@ -1563,6 +1688,7 @@ func (u *uptime) StateSave(stateSinkObject state.Sink) { func (u *uptime) afterLoad() {} +// +checklocksignore func (u *uptime) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &u.SimpleFileInode) stateSourceObject.Load(1, &u.startTime) @@ -1580,6 +1706,7 @@ func (f *uptimeFile) StateFields() []string { func (f *uptimeFile) beforeSave() {} +// +checklocksignore func (f *uptimeFile) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.startTime) @@ -1587,6 +1714,7 @@ func (f *uptimeFile) StateSave(stateSinkObject state.Sink) { func (f *uptimeFile) afterLoad() {} +// +checklocksignore func (f *uptimeFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.startTime) } @@ -1603,6 +1731,7 @@ func (v *versionData) StateFields() []string { func (v *versionData) beforeSave() {} +// +checklocksignore func (v *versionData) StateSave(stateSinkObject state.Sink) { v.beforeSave() stateSinkObject.Save(0, &v.k) @@ -1610,6 +1739,7 @@ func (v *versionData) StateSave(stateSinkObject state.Sink) { func (v *versionData) afterLoad() {} +// +checklocksignore func (v *versionData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &v.k) } diff --git a/pkg/sentry/fs/proc/seqfile/seqfile_state_autogen.go b/pkg/sentry/fs/proc/seqfile/seqfile_state_autogen.go index ab08bbaa3..1cd9b313b 100644 --- a/pkg/sentry/fs/proc/seqfile/seqfile_state_autogen.go +++ b/pkg/sentry/fs/proc/seqfile/seqfile_state_autogen.go @@ -19,6 +19,7 @@ func (s *SeqData) StateFields() []string { func (s *SeqData) beforeSave() {} +// +checklocksignore func (s *SeqData) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.Buf) @@ -27,6 +28,7 @@ func (s *SeqData) StateSave(stateSinkObject state.Sink) { func (s *SeqData) afterLoad() {} +// +checklocksignore func (s *SeqData) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.Buf) stateSourceObject.Load(1, &s.Handle) @@ -49,6 +51,7 @@ func (s *SeqFile) StateFields() []string { func (s *SeqFile) beforeSave() {} +// +checklocksignore func (s *SeqFile) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.InodeSimpleExtendedAttributes) @@ -61,6 +64,7 @@ func (s *SeqFile) StateSave(stateSinkObject state.Sink) { func (s *SeqFile) afterLoad() {} +// +checklocksignore func (s *SeqFile) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.InodeSimpleExtendedAttributes) stateSourceObject.Load(1, &s.InodeSimpleAttributes) @@ -82,6 +86,7 @@ func (sfo *seqFileOperations) StateFields() []string { func (sfo *seqFileOperations) beforeSave() {} +// +checklocksignore func (sfo *seqFileOperations) StateSave(stateSinkObject state.Sink) { sfo.beforeSave() stateSinkObject.Save(0, &sfo.seqFile) @@ -89,6 +94,7 @@ func (sfo *seqFileOperations) StateSave(stateSinkObject state.Sink) { func (sfo *seqFileOperations) afterLoad() {} +// +checklocksignore func (sfo *seqFileOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &sfo.seqFile) } diff --git a/pkg/sentry/fs/ramfs/ramfs_state_autogen.go b/pkg/sentry/fs/ramfs/ramfs_state_autogen.go index 482d5d391..53c836415 100644 --- a/pkg/sentry/fs/ramfs/ramfs_state_autogen.go +++ b/pkg/sentry/fs/ramfs/ramfs_state_autogen.go @@ -21,6 +21,7 @@ func (d *Dir) StateFields() []string { func (d *Dir) beforeSave() {} +// +checklocksignore func (d *Dir) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.InodeSimpleAttributes) @@ -31,6 +32,7 @@ func (d *Dir) StateSave(stateSinkObject state.Sink) { func (d *Dir) afterLoad() {} +// +checklocksignore func (d *Dir) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.InodeSimpleAttributes) stateSourceObject.Load(1, &d.InodeSimpleExtendedAttributes) @@ -51,6 +53,7 @@ func (dfo *dirFileOperations) StateFields() []string { func (dfo *dirFileOperations) beforeSave() {} +// +checklocksignore func (dfo *dirFileOperations) StateSave(stateSinkObject state.Sink) { dfo.beforeSave() stateSinkObject.Save(0, &dfo.dirCursor) @@ -59,6 +62,7 @@ func (dfo *dirFileOperations) StateSave(stateSinkObject state.Sink) { func (dfo *dirFileOperations) afterLoad() {} +// +checklocksignore func (dfo *dirFileOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &dfo.dirCursor) stateSourceObject.Load(1, &dfo.dir) @@ -78,6 +82,7 @@ func (s *Socket) StateFields() []string { func (s *Socket) beforeSave() {} +// +checklocksignore func (s *Socket) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.InodeSimpleAttributes) @@ -87,6 +92,7 @@ func (s *Socket) StateSave(stateSinkObject state.Sink) { func (s *Socket) afterLoad() {} +// +checklocksignore func (s *Socket) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.InodeSimpleAttributes) stateSourceObject.Load(1, &s.InodeSimpleExtendedAttributes) @@ -103,12 +109,14 @@ func (s *socketFileOperations) StateFields() []string { func (s *socketFileOperations) beforeSave() {} +// +checklocksignore func (s *socketFileOperations) StateSave(stateSinkObject state.Sink) { s.beforeSave() } func (s *socketFileOperations) afterLoad() {} +// +checklocksignore func (s *socketFileOperations) StateLoad(stateSourceObject state.Source) { } @@ -126,6 +134,7 @@ func (s *Symlink) StateFields() []string { func (s *Symlink) beforeSave() {} +// +checklocksignore func (s *Symlink) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.InodeSimpleAttributes) @@ -135,6 +144,7 @@ func (s *Symlink) StateSave(stateSinkObject state.Sink) { func (s *Symlink) afterLoad() {} +// +checklocksignore func (s *Symlink) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.InodeSimpleAttributes) stateSourceObject.Load(1, &s.InodeSimpleExtendedAttributes) @@ -151,12 +161,14 @@ func (s *symlinkFileOperations) StateFields() []string { func (s *symlinkFileOperations) beforeSave() {} +// +checklocksignore func (s *symlinkFileOperations) StateSave(stateSinkObject state.Sink) { s.beforeSave() } func (s *symlinkFileOperations) afterLoad() {} +// +checklocksignore func (s *symlinkFileOperations) StateLoad(stateSourceObject state.Source) { } diff --git a/pkg/sentry/fs/sys/sys_state_autogen.go b/pkg/sentry/fs/sys/sys_state_autogen.go index 390f092cb..9c4f22243 100644 --- a/pkg/sentry/fs/sys/sys_state_autogen.go +++ b/pkg/sentry/fs/sys/sys_state_autogen.go @@ -19,6 +19,7 @@ func (c *cpunum) StateFields() []string { func (c *cpunum) beforeSave() {} +// +checklocksignore func (c *cpunum) StateSave(stateSinkObject state.Sink) { c.beforeSave() stateSinkObject.Save(0, &c.InodeSimpleAttributes) @@ -27,6 +28,7 @@ func (c *cpunum) StateSave(stateSinkObject state.Sink) { func (c *cpunum) afterLoad() {} +// +checklocksignore func (c *cpunum) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &c.InodeSimpleAttributes) stateSourceObject.Load(1, &c.InodeStaticFileGetter) @@ -42,12 +44,14 @@ func (f *filesystem) StateFields() []string { func (f *filesystem) beforeSave() {} +// +checklocksignore func (f *filesystem) StateSave(stateSinkObject state.Sink) { f.beforeSave() } func (f *filesystem) afterLoad() {} +// +checklocksignore func (f *filesystem) StateLoad(stateSourceObject state.Source) { } diff --git a/pkg/sentry/fs/timerfd/timerfd_state_autogen.go b/pkg/sentry/fs/timerfd/timerfd_state_autogen.go index 15f2d63f6..822eecdd6 100644 --- a/pkg/sentry/fs/timerfd/timerfd_state_autogen.go +++ b/pkg/sentry/fs/timerfd/timerfd_state_autogen.go @@ -19,6 +19,7 @@ func (t *TimerOperations) StateFields() []string { func (t *TimerOperations) beforeSave() {} +// +checklocksignore func (t *TimerOperations) StateSave(stateSinkObject state.Sink) { t.beforeSave() if !state.IsZeroValue(&t.events) { @@ -30,6 +31,7 @@ func (t *TimerOperations) StateSave(stateSinkObject state.Sink) { func (t *TimerOperations) afterLoad() {} +// +checklocksignore func (t *TimerOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &t.timer) stateSourceObject.Load(1, &t.val) diff --git a/pkg/sentry/fs/tmpfs/tmpfs_state_autogen.go b/pkg/sentry/fs/tmpfs/tmpfs_state_autogen.go index 29c25b4d6..ab5f75fea 100644 --- a/pkg/sentry/fs/tmpfs/tmpfs_state_autogen.go +++ b/pkg/sentry/fs/tmpfs/tmpfs_state_autogen.go @@ -18,6 +18,7 @@ func (r *regularFileOperations) StateFields() []string { func (r *regularFileOperations) beforeSave() {} +// +checklocksignore func (r *regularFileOperations) StateSave(stateSinkObject state.Sink) { r.beforeSave() stateSinkObject.Save(0, &r.iops) @@ -25,6 +26,7 @@ func (r *regularFileOperations) StateSave(stateSinkObject state.Sink) { func (r *regularFileOperations) afterLoad() {} +// +checklocksignore func (r *regularFileOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &r.iops) } @@ -39,12 +41,14 @@ func (f *Filesystem) StateFields() []string { func (f *Filesystem) beforeSave() {} +// +checklocksignore func (f *Filesystem) StateSave(stateSinkObject state.Sink) { f.beforeSave() } func (f *Filesystem) afterLoad() {} +// +checklocksignore func (f *Filesystem) StateLoad(stateSourceObject state.Source) { } @@ -67,6 +71,7 @@ func (f *fileInodeOperations) StateFields() []string { func (f *fileInodeOperations) beforeSave() {} +// +checklocksignore func (f *fileInodeOperations) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.InodeSimpleExtendedAttributes) @@ -81,6 +86,7 @@ func (f *fileInodeOperations) StateSave(stateSinkObject state.Sink) { func (f *fileInodeOperations) afterLoad() {} +// +checklocksignore func (f *fileInodeOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.InodeSimpleExtendedAttributes) stateSourceObject.Load(1, &f.kernel) @@ -105,12 +111,14 @@ func (d *Dir) StateFields() []string { func (d *Dir) beforeSave() {} +// +checklocksignore func (d *Dir) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.ramfsDir) stateSinkObject.Save(1, &d.kernel) } +// +checklocksignore func (d *Dir) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.ramfsDir) stateSourceObject.Load(1, &d.kernel) @@ -129,6 +137,7 @@ func (s *Symlink) StateFields() []string { func (s *Symlink) beforeSave() {} +// +checklocksignore func (s *Symlink) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.Symlink) @@ -136,6 +145,7 @@ func (s *Symlink) StateSave(stateSinkObject state.Sink) { func (s *Symlink) afterLoad() {} +// +checklocksignore func (s *Symlink) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.Symlink) } @@ -152,6 +162,7 @@ func (s *Socket) StateFields() []string { func (s *Socket) beforeSave() {} +// +checklocksignore func (s *Socket) StateSave(stateSinkObject state.Sink) { s.beforeSave() stateSinkObject.Save(0, &s.Socket) @@ -159,6 +170,7 @@ func (s *Socket) StateSave(stateSinkObject state.Sink) { func (s *Socket) afterLoad() {} +// +checklocksignore func (s *Socket) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &s.Socket) } @@ -175,6 +187,7 @@ func (f *Fifo) StateFields() []string { func (f *Fifo) beforeSave() {} +// +checklocksignore func (f *Fifo) StateSave(stateSinkObject state.Sink) { f.beforeSave() stateSinkObject.Save(0, &f.InodeOperations) @@ -182,6 +195,7 @@ func (f *Fifo) StateSave(stateSinkObject state.Sink) { func (f *Fifo) afterLoad() {} +// +checklocksignore func (f *Fifo) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &f.InodeOperations) } diff --git a/pkg/sentry/fs/tty/tty_state_autogen.go b/pkg/sentry/fs/tty/tty_state_autogen.go index 0d3785768..2fb0a8d27 100644 --- a/pkg/sentry/fs/tty/tty_state_autogen.go +++ b/pkg/sentry/fs/tty/tty_state_autogen.go @@ -23,6 +23,7 @@ func (d *dirInodeOperations) StateFields() []string { func (d *dirInodeOperations) beforeSave() {} +// +checklocksignore func (d *dirInodeOperations) StateSave(stateSinkObject state.Sink) { d.beforeSave() stateSinkObject.Save(0, &d.InodeSimpleAttributes) @@ -35,6 +36,7 @@ func (d *dirInodeOperations) StateSave(stateSinkObject state.Sink) { func (d *dirInodeOperations) afterLoad() {} +// +checklocksignore func (d *dirInodeOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &d.InodeSimpleAttributes) stateSourceObject.Load(1, &d.msrc) @@ -57,6 +59,7 @@ func (df *dirFileOperations) StateFields() []string { func (df *dirFileOperations) beforeSave() {} +// +checklocksignore func (df *dirFileOperations) StateSave(stateSinkObject state.Sink) { df.beforeSave() stateSinkObject.Save(0, &df.di) @@ -65,6 +68,7 @@ func (df *dirFileOperations) StateSave(stateSinkObject state.Sink) { func (df *dirFileOperations) afterLoad() {} +// +checklocksignore func (df *dirFileOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &df.di) stateSourceObject.Load(1, &df.dirCursor) @@ -80,12 +84,14 @@ func (f *filesystem) StateFields() []string { func (f *filesystem) beforeSave() {} +// +checklocksignore func (f *filesystem) StateSave(stateSinkObject state.Sink) { f.beforeSave() } func (f *filesystem) afterLoad() {} +// +checklocksignore func (f *filesystem) StateLoad(stateSourceObject state.Source) { } @@ -99,12 +105,14 @@ func (s *superOperations) StateFields() []string { func (s *superOperations) beforeSave() {} +// +checklocksignore func (s *superOperations) StateSave(stateSinkObject state.Sink) { s.beforeSave() } func (s *superOperations) afterLoad() {} +// +checklocksignore func (s *superOperations) StateLoad(stateSourceObject state.Source) { } @@ -124,6 +132,7 @@ func (l *lineDiscipline) StateFields() []string { func (l *lineDiscipline) beforeSave() {} +// +checklocksignore func (l *lineDiscipline) StateSave(stateSinkObject state.Sink) { l.beforeSave() if !state.IsZeroValue(&l.masterWaiter) { @@ -141,6 +150,7 @@ func (l *lineDiscipline) StateSave(stateSinkObject state.Sink) { func (l *lineDiscipline) afterLoad() {} +// +checklocksignore func (l *lineDiscipline) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &l.size) stateSourceObject.Load(1, &l.inQueue) @@ -159,12 +169,14 @@ func (o *outputQueueTransformer) StateFields() []string { func (o *outputQueueTransformer) beforeSave() {} +// +checklocksignore func (o *outputQueueTransformer) StateSave(stateSinkObject state.Sink) { o.beforeSave() } func (o *outputQueueTransformer) afterLoad() {} +// +checklocksignore func (o *outputQueueTransformer) StateLoad(stateSourceObject state.Source) { } @@ -178,12 +190,14 @@ func (i *inputQueueTransformer) StateFields() []string { func (i *inputQueueTransformer) beforeSave() {} +// +checklocksignore func (i *inputQueueTransformer) StateSave(stateSinkObject state.Sink) { i.beforeSave() } func (i *inputQueueTransformer) afterLoad() {} +// +checklocksignore func (i *inputQueueTransformer) StateLoad(stateSourceObject state.Source) { } @@ -200,6 +214,7 @@ func (mi *masterInodeOperations) StateFields() []string { func (mi *masterInodeOperations) beforeSave() {} +// +checklocksignore func (mi *masterInodeOperations) StateSave(stateSinkObject state.Sink) { mi.beforeSave() stateSinkObject.Save(0, &mi.SimpleFileInode) @@ -208,6 +223,7 @@ func (mi *masterInodeOperations) StateSave(stateSinkObject state.Sink) { func (mi *masterInodeOperations) afterLoad() {} +// +checklocksignore func (mi *masterInodeOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &mi.SimpleFileInode) stateSourceObject.Load(1, &mi.d) @@ -226,6 +242,7 @@ func (mf *masterFileOperations) StateFields() []string { func (mf *masterFileOperations) beforeSave() {} +// +checklocksignore func (mf *masterFileOperations) StateSave(stateSinkObject state.Sink) { mf.beforeSave() stateSinkObject.Save(0, &mf.d) @@ -234,6 +251,7 @@ func (mf *masterFileOperations) StateSave(stateSinkObject state.Sink) { func (mf *masterFileOperations) afterLoad() {} +// +checklocksignore func (mf *masterFileOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &mf.d) stateSourceObject.Load(1, &mf.t) @@ -255,6 +273,7 @@ func (q *queue) StateFields() []string { func (q *queue) beforeSave() {} +// +checklocksignore func (q *queue) StateSave(stateSinkObject state.Sink) { q.beforeSave() stateSinkObject.Save(0, &q.readBuf) @@ -266,6 +285,7 @@ func (q *queue) StateSave(stateSinkObject state.Sink) { func (q *queue) afterLoad() {} +// +checklocksignore func (q *queue) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &q.readBuf) stateSourceObject.Load(1, &q.waitBuf) @@ -288,6 +308,7 @@ func (si *replicaInodeOperations) StateFields() []string { func (si *replicaInodeOperations) beforeSave() {} +// +checklocksignore func (si *replicaInodeOperations) StateSave(stateSinkObject state.Sink) { si.beforeSave() stateSinkObject.Save(0, &si.SimpleFileInode) @@ -297,6 +318,7 @@ func (si *replicaInodeOperations) StateSave(stateSinkObject state.Sink) { func (si *replicaInodeOperations) afterLoad() {} +// +checklocksignore func (si *replicaInodeOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &si.SimpleFileInode) stateSourceObject.Load(1, &si.d) @@ -315,6 +337,7 @@ func (sf *replicaFileOperations) StateFields() []string { func (sf *replicaFileOperations) beforeSave() {} +// +checklocksignore func (sf *replicaFileOperations) StateSave(stateSinkObject state.Sink) { sf.beforeSave() stateSinkObject.Save(0, &sf.si) @@ -322,6 +345,7 @@ func (sf *replicaFileOperations) StateSave(stateSinkObject state.Sink) { func (sf *replicaFileOperations) afterLoad() {} +// +checklocksignore func (sf *replicaFileOperations) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &sf.si) } @@ -343,6 +367,7 @@ func (tm *Terminal) StateFields() []string { func (tm *Terminal) beforeSave() {} +// +checklocksignore func (tm *Terminal) StateSave(stateSinkObject state.Sink) { tm.beforeSave() stateSinkObject.Save(0, &tm.AtomicRefCount) @@ -355,6 +380,7 @@ func (tm *Terminal) StateSave(stateSinkObject state.Sink) { func (tm *Terminal) afterLoad() {} +// +checklocksignore func (tm *Terminal) StateLoad(stateSourceObject state.Source) { stateSourceObject.Load(0, &tm.AtomicRefCount) stateSourceObject.Load(1, &tm.n) |