github.com/ttpreport/gvisor-ligolo@v0.0.0-20240123134145-a858404967ba/pkg/sentry/fsimpl/proc/proc_state_autogen.go (about)

     1  // automatically generated by stateify.
     2  
     3  package proc
     4  
     5  import (
     6  	"github.com/ttpreport/gvisor-ligolo/pkg/state"
     7  )
     8  
     9  func (r *fdDirInodeRefs) StateTypeName() string {
    10  	return "pkg/sentry/fsimpl/proc.fdDirInodeRefs"
    11  }
    12  
    13  func (r *fdDirInodeRefs) StateFields() []string {
    14  	return []string{
    15  		"refCount",
    16  	}
    17  }
    18  
    19  func (r *fdDirInodeRefs) beforeSave() {}
    20  
    21  // +checklocksignore
    22  func (r *fdDirInodeRefs) StateSave(stateSinkObject state.Sink) {
    23  	r.beforeSave()
    24  	stateSinkObject.Save(0, &r.refCount)
    25  }
    26  
    27  // +checklocksignore
    28  func (r *fdDirInodeRefs) StateLoad(stateSourceObject state.Source) {
    29  	stateSourceObject.Load(0, &r.refCount)
    30  	stateSourceObject.AfterLoad(r.afterLoad)
    31  }
    32  
    33  func (r *fdInfoDirInodeRefs) StateTypeName() string {
    34  	return "pkg/sentry/fsimpl/proc.fdInfoDirInodeRefs"
    35  }
    36  
    37  func (r *fdInfoDirInodeRefs) StateFields() []string {
    38  	return []string{
    39  		"refCount",
    40  	}
    41  }
    42  
    43  func (r *fdInfoDirInodeRefs) beforeSave() {}
    44  
    45  // +checklocksignore
    46  func (r *fdInfoDirInodeRefs) StateSave(stateSinkObject state.Sink) {
    47  	r.beforeSave()
    48  	stateSinkObject.Save(0, &r.refCount)
    49  }
    50  
    51  // +checklocksignore
    52  func (r *fdInfoDirInodeRefs) StateLoad(stateSourceObject state.Source) {
    53  	stateSourceObject.Load(0, &r.refCount)
    54  	stateSourceObject.AfterLoad(r.afterLoad)
    55  }
    56  
    57  func (ft *FilesystemType) StateTypeName() string {
    58  	return "pkg/sentry/fsimpl/proc.FilesystemType"
    59  }
    60  
    61  func (ft *FilesystemType) StateFields() []string {
    62  	return []string{}
    63  }
    64  
    65  func (ft *FilesystemType) beforeSave() {}
    66  
    67  // +checklocksignore
    68  func (ft *FilesystemType) StateSave(stateSinkObject state.Sink) {
    69  	ft.beforeSave()
    70  }
    71  
    72  func (ft *FilesystemType) afterLoad() {}
    73  
    74  // +checklocksignore
    75  func (ft *FilesystemType) StateLoad(stateSourceObject state.Source) {
    76  }
    77  
    78  func (fs *filesystem) StateTypeName() string {
    79  	return "pkg/sentry/fsimpl/proc.filesystem"
    80  }
    81  
    82  func (fs *filesystem) StateFields() []string {
    83  	return []string{
    84  		"Filesystem",
    85  		"devMinor",
    86  	}
    87  }
    88  
    89  func (fs *filesystem) beforeSave() {}
    90  
    91  // +checklocksignore
    92  func (fs *filesystem) StateSave(stateSinkObject state.Sink) {
    93  	fs.beforeSave()
    94  	stateSinkObject.Save(0, &fs.Filesystem)
    95  	stateSinkObject.Save(1, &fs.devMinor)
    96  }
    97  
    98  func (fs *filesystem) afterLoad() {}
    99  
   100  // +checklocksignore
   101  func (fs *filesystem) StateLoad(stateSourceObject state.Source) {
   102  	stateSourceObject.Load(0, &fs.Filesystem)
   103  	stateSourceObject.Load(1, &fs.devMinor)
   104  }
   105  
   106  func (s *staticFile) StateTypeName() string {
   107  	return "pkg/sentry/fsimpl/proc.staticFile"
   108  }
   109  
   110  func (s *staticFile) StateFields() []string {
   111  	return []string{
   112  		"DynamicBytesFile",
   113  		"StaticData",
   114  	}
   115  }
   116  
   117  func (s *staticFile) beforeSave() {}
   118  
   119  // +checklocksignore
   120  func (s *staticFile) StateSave(stateSinkObject state.Sink) {
   121  	s.beforeSave()
   122  	stateSinkObject.Save(0, &s.DynamicBytesFile)
   123  	stateSinkObject.Save(1, &s.StaticData)
   124  }
   125  
   126  func (s *staticFile) afterLoad() {}
   127  
   128  // +checklocksignore
   129  func (s *staticFile) StateLoad(stateSourceObject state.Source) {
   130  	stateSourceObject.Load(0, &s.DynamicBytesFile)
   131  	stateSourceObject.Load(1, &s.StaticData)
   132  }
   133  
   134  func (i *InternalData) StateTypeName() string {
   135  	return "pkg/sentry/fsimpl/proc.InternalData"
   136  }
   137  
   138  func (i *InternalData) StateFields() []string {
   139  	return []string{
   140  		"Cgroups",
   141  	}
   142  }
   143  
   144  func (i *InternalData) beforeSave() {}
   145  
   146  // +checklocksignore
   147  func (i *InternalData) StateSave(stateSinkObject state.Sink) {
   148  	i.beforeSave()
   149  	stateSinkObject.Save(0, &i.Cgroups)
   150  }
   151  
   152  func (i *InternalData) afterLoad() {}
   153  
   154  // +checklocksignore
   155  func (i *InternalData) StateLoad(stateSourceObject state.Source) {
   156  	stateSourceObject.Load(0, &i.Cgroups)
   157  }
   158  
   159  func (i *implStatFS) StateTypeName() string {
   160  	return "pkg/sentry/fsimpl/proc.implStatFS"
   161  }
   162  
   163  func (i *implStatFS) StateFields() []string {
   164  	return []string{}
   165  }
   166  
   167  func (i *implStatFS) beforeSave() {}
   168  
   169  // +checklocksignore
   170  func (i *implStatFS) StateSave(stateSinkObject state.Sink) {
   171  	i.beforeSave()
   172  }
   173  
   174  func (i *implStatFS) afterLoad() {}
   175  
   176  // +checklocksignore
   177  func (i *implStatFS) StateLoad(stateSourceObject state.Source) {
   178  }
   179  
   180  func (i *subtasksInode) StateTypeName() string {
   181  	return "pkg/sentry/fsimpl/proc.subtasksInode"
   182  }
   183  
   184  func (i *subtasksInode) StateFields() []string {
   185  	return []string{
   186  		"implStatFS",
   187  		"InodeAlwaysValid",
   188  		"InodeAttrs",
   189  		"InodeDirectoryNoNewChildren",
   190  		"InodeNotAnonymous",
   191  		"InodeNotSymlink",
   192  		"InodeTemporary",
   193  		"InodeWatches",
   194  		"OrderedChildren",
   195  		"subtasksInodeRefs",
   196  		"locks",
   197  		"fs",
   198  		"task",
   199  		"pidns",
   200  		"cgroupControllers",
   201  	}
   202  }
   203  
   204  func (i *subtasksInode) beforeSave() {}
   205  
   206  // +checklocksignore
   207  func (i *subtasksInode) StateSave(stateSinkObject state.Sink) {
   208  	i.beforeSave()
   209  	stateSinkObject.Save(0, &i.implStatFS)
   210  	stateSinkObject.Save(1, &i.InodeAlwaysValid)
   211  	stateSinkObject.Save(2, &i.InodeAttrs)
   212  	stateSinkObject.Save(3, &i.InodeDirectoryNoNewChildren)
   213  	stateSinkObject.Save(4, &i.InodeNotAnonymous)
   214  	stateSinkObject.Save(5, &i.InodeNotSymlink)
   215  	stateSinkObject.Save(6, &i.InodeTemporary)
   216  	stateSinkObject.Save(7, &i.InodeWatches)
   217  	stateSinkObject.Save(8, &i.OrderedChildren)
   218  	stateSinkObject.Save(9, &i.subtasksInodeRefs)
   219  	stateSinkObject.Save(10, &i.locks)
   220  	stateSinkObject.Save(11, &i.fs)
   221  	stateSinkObject.Save(12, &i.task)
   222  	stateSinkObject.Save(13, &i.pidns)
   223  	stateSinkObject.Save(14, &i.cgroupControllers)
   224  }
   225  
   226  func (i *subtasksInode) afterLoad() {}
   227  
   228  // +checklocksignore
   229  func (i *subtasksInode) StateLoad(stateSourceObject state.Source) {
   230  	stateSourceObject.Load(0, &i.implStatFS)
   231  	stateSourceObject.Load(1, &i.InodeAlwaysValid)
   232  	stateSourceObject.Load(2, &i.InodeAttrs)
   233  	stateSourceObject.Load(3, &i.InodeDirectoryNoNewChildren)
   234  	stateSourceObject.Load(4, &i.InodeNotAnonymous)
   235  	stateSourceObject.Load(5, &i.InodeNotSymlink)
   236  	stateSourceObject.Load(6, &i.InodeTemporary)
   237  	stateSourceObject.Load(7, &i.InodeWatches)
   238  	stateSourceObject.Load(8, &i.OrderedChildren)
   239  	stateSourceObject.Load(9, &i.subtasksInodeRefs)
   240  	stateSourceObject.Load(10, &i.locks)
   241  	stateSourceObject.Load(11, &i.fs)
   242  	stateSourceObject.Load(12, &i.task)
   243  	stateSourceObject.Load(13, &i.pidns)
   244  	stateSourceObject.Load(14, &i.cgroupControllers)
   245  }
   246  
   247  func (fd *subtasksFD) StateTypeName() string {
   248  	return "pkg/sentry/fsimpl/proc.subtasksFD"
   249  }
   250  
   251  func (fd *subtasksFD) StateFields() []string {
   252  	return []string{
   253  		"GenericDirectoryFD",
   254  		"task",
   255  	}
   256  }
   257  
   258  func (fd *subtasksFD) beforeSave() {}
   259  
   260  // +checklocksignore
   261  func (fd *subtasksFD) StateSave(stateSinkObject state.Sink) {
   262  	fd.beforeSave()
   263  	stateSinkObject.Save(0, &fd.GenericDirectoryFD)
   264  	stateSinkObject.Save(1, &fd.task)
   265  }
   266  
   267  func (fd *subtasksFD) afterLoad() {}
   268  
   269  // +checklocksignore
   270  func (fd *subtasksFD) StateLoad(stateSourceObject state.Source) {
   271  	stateSourceObject.Load(0, &fd.GenericDirectoryFD)
   272  	stateSourceObject.Load(1, &fd.task)
   273  }
   274  
   275  func (r *subtasksInodeRefs) StateTypeName() string {
   276  	return "pkg/sentry/fsimpl/proc.subtasksInodeRefs"
   277  }
   278  
   279  func (r *subtasksInodeRefs) StateFields() []string {
   280  	return []string{
   281  		"refCount",
   282  	}
   283  }
   284  
   285  func (r *subtasksInodeRefs) beforeSave() {}
   286  
   287  // +checklocksignore
   288  func (r *subtasksInodeRefs) StateSave(stateSinkObject state.Sink) {
   289  	r.beforeSave()
   290  	stateSinkObject.Save(0, &r.refCount)
   291  }
   292  
   293  // +checklocksignore
   294  func (r *subtasksInodeRefs) StateLoad(stateSourceObject state.Source) {
   295  	stateSourceObject.Load(0, &r.refCount)
   296  	stateSourceObject.AfterLoad(r.afterLoad)
   297  }
   298  
   299  func (i *taskInode) StateTypeName() string {
   300  	return "pkg/sentry/fsimpl/proc.taskInode"
   301  }
   302  
   303  func (i *taskInode) StateFields() []string {
   304  	return []string{
   305  		"implStatFS",
   306  		"InodeAttrs",
   307  		"InodeDirectoryNoNewChildren",
   308  		"InodeNotAnonymous",
   309  		"InodeNotSymlink",
   310  		"InodeTemporary",
   311  		"InodeWatches",
   312  		"OrderedChildren",
   313  		"taskInodeRefs",
   314  		"locks",
   315  		"task",
   316  	}
   317  }
   318  
   319  func (i *taskInode) beforeSave() {}
   320  
   321  // +checklocksignore
   322  func (i *taskInode) StateSave(stateSinkObject state.Sink) {
   323  	i.beforeSave()
   324  	stateSinkObject.Save(0, &i.implStatFS)
   325  	stateSinkObject.Save(1, &i.InodeAttrs)
   326  	stateSinkObject.Save(2, &i.InodeDirectoryNoNewChildren)
   327  	stateSinkObject.Save(3, &i.InodeNotAnonymous)
   328  	stateSinkObject.Save(4, &i.InodeNotSymlink)
   329  	stateSinkObject.Save(5, &i.InodeTemporary)
   330  	stateSinkObject.Save(6, &i.InodeWatches)
   331  	stateSinkObject.Save(7, &i.OrderedChildren)
   332  	stateSinkObject.Save(8, &i.taskInodeRefs)
   333  	stateSinkObject.Save(9, &i.locks)
   334  	stateSinkObject.Save(10, &i.task)
   335  }
   336  
   337  func (i *taskInode) afterLoad() {}
   338  
   339  // +checklocksignore
   340  func (i *taskInode) StateLoad(stateSourceObject state.Source) {
   341  	stateSourceObject.Load(0, &i.implStatFS)
   342  	stateSourceObject.Load(1, &i.InodeAttrs)
   343  	stateSourceObject.Load(2, &i.InodeDirectoryNoNewChildren)
   344  	stateSourceObject.Load(3, &i.InodeNotAnonymous)
   345  	stateSourceObject.Load(4, &i.InodeNotSymlink)
   346  	stateSourceObject.Load(5, &i.InodeTemporary)
   347  	stateSourceObject.Load(6, &i.InodeWatches)
   348  	stateSourceObject.Load(7, &i.OrderedChildren)
   349  	stateSourceObject.Load(8, &i.taskInodeRefs)
   350  	stateSourceObject.Load(9, &i.locks)
   351  	stateSourceObject.Load(10, &i.task)
   352  }
   353  
   354  func (i *taskOwnedInode) StateTypeName() string {
   355  	return "pkg/sentry/fsimpl/proc.taskOwnedInode"
   356  }
   357  
   358  func (i *taskOwnedInode) StateFields() []string {
   359  	return []string{
   360  		"Inode",
   361  		"owner",
   362  	}
   363  }
   364  
   365  func (i *taskOwnedInode) beforeSave() {}
   366  
   367  // +checklocksignore
   368  func (i *taskOwnedInode) StateSave(stateSinkObject state.Sink) {
   369  	i.beforeSave()
   370  	stateSinkObject.Save(0, &i.Inode)
   371  	stateSinkObject.Save(1, &i.owner)
   372  }
   373  
   374  func (i *taskOwnedInode) afterLoad() {}
   375  
   376  // +checklocksignore
   377  func (i *taskOwnedInode) StateLoad(stateSourceObject state.Source) {
   378  	stateSourceObject.Load(0, &i.Inode)
   379  	stateSourceObject.Load(1, &i.owner)
   380  }
   381  
   382  func (i *fdDir) StateTypeName() string {
   383  	return "pkg/sentry/fsimpl/proc.fdDir"
   384  }
   385  
   386  func (i *fdDir) StateFields() []string {
   387  	return []string{
   388  		"locks",
   389  		"fs",
   390  		"task",
   391  		"produceSymlink",
   392  	}
   393  }
   394  
   395  func (i *fdDir) beforeSave() {}
   396  
   397  // +checklocksignore
   398  func (i *fdDir) StateSave(stateSinkObject state.Sink) {
   399  	i.beforeSave()
   400  	stateSinkObject.Save(0, &i.locks)
   401  	stateSinkObject.Save(1, &i.fs)
   402  	stateSinkObject.Save(2, &i.task)
   403  	stateSinkObject.Save(3, &i.produceSymlink)
   404  }
   405  
   406  func (i *fdDir) afterLoad() {}
   407  
   408  // +checklocksignore
   409  func (i *fdDir) StateLoad(stateSourceObject state.Source) {
   410  	stateSourceObject.Load(0, &i.locks)
   411  	stateSourceObject.Load(1, &i.fs)
   412  	stateSourceObject.Load(2, &i.task)
   413  	stateSourceObject.Load(3, &i.produceSymlink)
   414  }
   415  
   416  func (i *fdDirInode) StateTypeName() string {
   417  	return "pkg/sentry/fsimpl/proc.fdDirInode"
   418  }
   419  
   420  func (i *fdDirInode) StateFields() []string {
   421  	return []string{
   422  		"fdDir",
   423  		"fdDirInodeRefs",
   424  		"implStatFS",
   425  		"InodeAlwaysValid",
   426  		"InodeAttrs",
   427  		"InodeDirectoryNoNewChildren",
   428  		"InodeNotAnonymous",
   429  		"InodeNotSymlink",
   430  		"InodeTemporary",
   431  		"InodeWatches",
   432  		"OrderedChildren",
   433  	}
   434  }
   435  
   436  func (i *fdDirInode) beforeSave() {}
   437  
   438  // +checklocksignore
   439  func (i *fdDirInode) StateSave(stateSinkObject state.Sink) {
   440  	i.beforeSave()
   441  	stateSinkObject.Save(0, &i.fdDir)
   442  	stateSinkObject.Save(1, &i.fdDirInodeRefs)
   443  	stateSinkObject.Save(2, &i.implStatFS)
   444  	stateSinkObject.Save(3, &i.InodeAlwaysValid)
   445  	stateSinkObject.Save(4, &i.InodeAttrs)
   446  	stateSinkObject.Save(5, &i.InodeDirectoryNoNewChildren)
   447  	stateSinkObject.Save(6, &i.InodeNotAnonymous)
   448  	stateSinkObject.Save(7, &i.InodeNotSymlink)
   449  	stateSinkObject.Save(8, &i.InodeTemporary)
   450  	stateSinkObject.Save(9, &i.InodeWatches)
   451  	stateSinkObject.Save(10, &i.OrderedChildren)
   452  }
   453  
   454  func (i *fdDirInode) afterLoad() {}
   455  
   456  // +checklocksignore
   457  func (i *fdDirInode) StateLoad(stateSourceObject state.Source) {
   458  	stateSourceObject.Load(0, &i.fdDir)
   459  	stateSourceObject.Load(1, &i.fdDirInodeRefs)
   460  	stateSourceObject.Load(2, &i.implStatFS)
   461  	stateSourceObject.Load(3, &i.InodeAlwaysValid)
   462  	stateSourceObject.Load(4, &i.InodeAttrs)
   463  	stateSourceObject.Load(5, &i.InodeDirectoryNoNewChildren)
   464  	stateSourceObject.Load(6, &i.InodeNotAnonymous)
   465  	stateSourceObject.Load(7, &i.InodeNotSymlink)
   466  	stateSourceObject.Load(8, &i.InodeTemporary)
   467  	stateSourceObject.Load(9, &i.InodeWatches)
   468  	stateSourceObject.Load(10, &i.OrderedChildren)
   469  }
   470  
   471  func (s *fdSymlink) StateTypeName() string {
   472  	return "pkg/sentry/fsimpl/proc.fdSymlink"
   473  }
   474  
   475  func (s *fdSymlink) StateFields() []string {
   476  	return []string{
   477  		"implStatFS",
   478  		"InodeAttrs",
   479  		"InodeNoopRefCount",
   480  		"InodeNotAnonymous",
   481  		"InodeSymlink",
   482  		"InodeWatches",
   483  		"fs",
   484  		"task",
   485  		"fd",
   486  	}
   487  }
   488  
   489  func (s *fdSymlink) beforeSave() {}
   490  
   491  // +checklocksignore
   492  func (s *fdSymlink) StateSave(stateSinkObject state.Sink) {
   493  	s.beforeSave()
   494  	stateSinkObject.Save(0, &s.implStatFS)
   495  	stateSinkObject.Save(1, &s.InodeAttrs)
   496  	stateSinkObject.Save(2, &s.InodeNoopRefCount)
   497  	stateSinkObject.Save(3, &s.InodeNotAnonymous)
   498  	stateSinkObject.Save(4, &s.InodeSymlink)
   499  	stateSinkObject.Save(5, &s.InodeWatches)
   500  	stateSinkObject.Save(6, &s.fs)
   501  	stateSinkObject.Save(7, &s.task)
   502  	stateSinkObject.Save(8, &s.fd)
   503  }
   504  
   505  func (s *fdSymlink) afterLoad() {}
   506  
   507  // +checklocksignore
   508  func (s *fdSymlink) StateLoad(stateSourceObject state.Source) {
   509  	stateSourceObject.Load(0, &s.implStatFS)
   510  	stateSourceObject.Load(1, &s.InodeAttrs)
   511  	stateSourceObject.Load(2, &s.InodeNoopRefCount)
   512  	stateSourceObject.Load(3, &s.InodeNotAnonymous)
   513  	stateSourceObject.Load(4, &s.InodeSymlink)
   514  	stateSourceObject.Load(5, &s.InodeWatches)
   515  	stateSourceObject.Load(6, &s.fs)
   516  	stateSourceObject.Load(7, &s.task)
   517  	stateSourceObject.Load(8, &s.fd)
   518  }
   519  
   520  func (i *fdInfoDirInode) StateTypeName() string {
   521  	return "pkg/sentry/fsimpl/proc.fdInfoDirInode"
   522  }
   523  
   524  func (i *fdInfoDirInode) StateFields() []string {
   525  	return []string{
   526  		"fdDir",
   527  		"fdInfoDirInodeRefs",
   528  		"implStatFS",
   529  		"InodeAlwaysValid",
   530  		"InodeAttrs",
   531  		"InodeDirectoryNoNewChildren",
   532  		"InodeNotAnonymous",
   533  		"InodeNotSymlink",
   534  		"InodeTemporary",
   535  		"InodeWatches",
   536  		"OrderedChildren",
   537  	}
   538  }
   539  
   540  func (i *fdInfoDirInode) beforeSave() {}
   541  
   542  // +checklocksignore
   543  func (i *fdInfoDirInode) StateSave(stateSinkObject state.Sink) {
   544  	i.beforeSave()
   545  	stateSinkObject.Save(0, &i.fdDir)
   546  	stateSinkObject.Save(1, &i.fdInfoDirInodeRefs)
   547  	stateSinkObject.Save(2, &i.implStatFS)
   548  	stateSinkObject.Save(3, &i.InodeAlwaysValid)
   549  	stateSinkObject.Save(4, &i.InodeAttrs)
   550  	stateSinkObject.Save(5, &i.InodeDirectoryNoNewChildren)
   551  	stateSinkObject.Save(6, &i.InodeNotAnonymous)
   552  	stateSinkObject.Save(7, &i.InodeNotSymlink)
   553  	stateSinkObject.Save(8, &i.InodeTemporary)
   554  	stateSinkObject.Save(9, &i.InodeWatches)
   555  	stateSinkObject.Save(10, &i.OrderedChildren)
   556  }
   557  
   558  func (i *fdInfoDirInode) afterLoad() {}
   559  
   560  // +checklocksignore
   561  func (i *fdInfoDirInode) StateLoad(stateSourceObject state.Source) {
   562  	stateSourceObject.Load(0, &i.fdDir)
   563  	stateSourceObject.Load(1, &i.fdInfoDirInodeRefs)
   564  	stateSourceObject.Load(2, &i.implStatFS)
   565  	stateSourceObject.Load(3, &i.InodeAlwaysValid)
   566  	stateSourceObject.Load(4, &i.InodeAttrs)
   567  	stateSourceObject.Load(5, &i.InodeDirectoryNoNewChildren)
   568  	stateSourceObject.Load(6, &i.InodeNotAnonymous)
   569  	stateSourceObject.Load(7, &i.InodeNotSymlink)
   570  	stateSourceObject.Load(8, &i.InodeTemporary)
   571  	stateSourceObject.Load(9, &i.InodeWatches)
   572  	stateSourceObject.Load(10, &i.OrderedChildren)
   573  }
   574  
   575  func (d *fdInfoData) StateTypeName() string {
   576  	return "pkg/sentry/fsimpl/proc.fdInfoData"
   577  }
   578  
   579  func (d *fdInfoData) StateFields() []string {
   580  	return []string{
   581  		"DynamicBytesFile",
   582  		"fs",
   583  		"task",
   584  		"fd",
   585  	}
   586  }
   587  
   588  func (d *fdInfoData) beforeSave() {}
   589  
   590  // +checklocksignore
   591  func (d *fdInfoData) StateSave(stateSinkObject state.Sink) {
   592  	d.beforeSave()
   593  	stateSinkObject.Save(0, &d.DynamicBytesFile)
   594  	stateSinkObject.Save(1, &d.fs)
   595  	stateSinkObject.Save(2, &d.task)
   596  	stateSinkObject.Save(3, &d.fd)
   597  }
   598  
   599  func (d *fdInfoData) afterLoad() {}
   600  
   601  // +checklocksignore
   602  func (d *fdInfoData) StateLoad(stateSourceObject state.Source) {
   603  	stateSourceObject.Load(0, &d.DynamicBytesFile)
   604  	stateSourceObject.Load(1, &d.fs)
   605  	stateSourceObject.Load(2, &d.task)
   606  	stateSourceObject.Load(3, &d.fd)
   607  }
   608  
   609  func (d *auxvData) StateTypeName() string {
   610  	return "pkg/sentry/fsimpl/proc.auxvData"
   611  }
   612  
   613  func (d *auxvData) StateFields() []string {
   614  	return []string{
   615  		"DynamicBytesFile",
   616  		"task",
   617  	}
   618  }
   619  
   620  func (d *auxvData) beforeSave() {}
   621  
   622  // +checklocksignore
   623  func (d *auxvData) StateSave(stateSinkObject state.Sink) {
   624  	d.beforeSave()
   625  	stateSinkObject.Save(0, &d.DynamicBytesFile)
   626  	stateSinkObject.Save(1, &d.task)
   627  }
   628  
   629  func (d *auxvData) afterLoad() {}
   630  
   631  // +checklocksignore
   632  func (d *auxvData) StateLoad(stateSourceObject state.Source) {
   633  	stateSourceObject.Load(0, &d.DynamicBytesFile)
   634  	stateSourceObject.Load(1, &d.task)
   635  }
   636  
   637  func (d *metadataData) StateTypeName() string {
   638  	return "pkg/sentry/fsimpl/proc.metadataData"
   639  }
   640  
   641  func (d *metadataData) StateFields() []string {
   642  	return []string{
   643  		"DynamicBytesFile",
   644  		"task",
   645  		"metaType",
   646  	}
   647  }
   648  
   649  func (d *metadataData) beforeSave() {}
   650  
   651  // +checklocksignore
   652  func (d *metadataData) StateSave(stateSinkObject state.Sink) {
   653  	d.beforeSave()
   654  	stateSinkObject.Save(0, &d.DynamicBytesFile)
   655  	stateSinkObject.Save(1, &d.task)
   656  	stateSinkObject.Save(2, &d.metaType)
   657  }
   658  
   659  func (d *metadataData) afterLoad() {}
   660  
   661  // +checklocksignore
   662  func (d *metadataData) StateLoad(stateSourceObject state.Source) {
   663  	stateSourceObject.Load(0, &d.DynamicBytesFile)
   664  	stateSourceObject.Load(1, &d.task)
   665  	stateSourceObject.Load(2, &d.metaType)
   666  }
   667  
   668  func (i *commInode) StateTypeName() string {
   669  	return "pkg/sentry/fsimpl/proc.commInode"
   670  }
   671  
   672  func (i *commInode) StateFields() []string {
   673  	return []string{
   674  		"DynamicBytesFile",
   675  		"task",
   676  	}
   677  }
   678  
   679  func (i *commInode) beforeSave() {}
   680  
   681  // +checklocksignore
   682  func (i *commInode) StateSave(stateSinkObject state.Sink) {
   683  	i.beforeSave()
   684  	stateSinkObject.Save(0, &i.DynamicBytesFile)
   685  	stateSinkObject.Save(1, &i.task)
   686  }
   687  
   688  func (i *commInode) afterLoad() {}
   689  
   690  // +checklocksignore
   691  func (i *commInode) StateLoad(stateSourceObject state.Source) {
   692  	stateSourceObject.Load(0, &i.DynamicBytesFile)
   693  	stateSourceObject.Load(1, &i.task)
   694  }
   695  
   696  func (d *commData) StateTypeName() string {
   697  	return "pkg/sentry/fsimpl/proc.commData"
   698  }
   699  
   700  func (d *commData) StateFields() []string {
   701  	return []string{
   702  		"DynamicBytesFile",
   703  		"task",
   704  	}
   705  }
   706  
   707  func (d *commData) beforeSave() {}
   708  
   709  // +checklocksignore
   710  func (d *commData) StateSave(stateSinkObject state.Sink) {
   711  	d.beforeSave()
   712  	stateSinkObject.Save(0, &d.DynamicBytesFile)
   713  	stateSinkObject.Save(1, &d.task)
   714  }
   715  
   716  func (d *commData) afterLoad() {}
   717  
   718  // +checklocksignore
   719  func (d *commData) StateLoad(stateSourceObject state.Source) {
   720  	stateSourceObject.Load(0, &d.DynamicBytesFile)
   721  	stateSourceObject.Load(1, &d.task)
   722  }
   723  
   724  func (d *idMapData) StateTypeName() string {
   725  	return "pkg/sentry/fsimpl/proc.idMapData"
   726  }
   727  
   728  func (d *idMapData) StateFields() []string {
   729  	return []string{
   730  		"DynamicBytesFile",
   731  		"task",
   732  		"gids",
   733  	}
   734  }
   735  
   736  func (d *idMapData) beforeSave() {}
   737  
   738  // +checklocksignore
   739  func (d *idMapData) StateSave(stateSinkObject state.Sink) {
   740  	d.beforeSave()
   741  	stateSinkObject.Save(0, &d.DynamicBytesFile)
   742  	stateSinkObject.Save(1, &d.task)
   743  	stateSinkObject.Save(2, &d.gids)
   744  }
   745  
   746  func (d *idMapData) afterLoad() {}
   747  
   748  // +checklocksignore
   749  func (d *idMapData) StateLoad(stateSourceObject state.Source) {
   750  	stateSourceObject.Load(0, &d.DynamicBytesFile)
   751  	stateSourceObject.Load(1, &d.task)
   752  	stateSourceObject.Load(2, &d.gids)
   753  }
   754  
   755  func (f *memInode) StateTypeName() string {
   756  	return "pkg/sentry/fsimpl/proc.memInode"
   757  }
   758  
   759  func (f *memInode) StateFields() []string {
   760  	return []string{
   761  		"InodeAttrs",
   762  		"InodeNoStatFS",
   763  		"InodeNoopRefCount",
   764  		"InodeNotAnonymous",
   765  		"InodeNotDirectory",
   766  		"InodeNotSymlink",
   767  		"InodeWatches",
   768  		"task",
   769  		"locks",
   770  	}
   771  }
   772  
   773  func (f *memInode) beforeSave() {}
   774  
   775  // +checklocksignore
   776  func (f *memInode) StateSave(stateSinkObject state.Sink) {
   777  	f.beforeSave()
   778  	stateSinkObject.Save(0, &f.InodeAttrs)
   779  	stateSinkObject.Save(1, &f.InodeNoStatFS)
   780  	stateSinkObject.Save(2, &f.InodeNoopRefCount)
   781  	stateSinkObject.Save(3, &f.InodeNotAnonymous)
   782  	stateSinkObject.Save(4, &f.InodeNotDirectory)
   783  	stateSinkObject.Save(5, &f.InodeNotSymlink)
   784  	stateSinkObject.Save(6, &f.InodeWatches)
   785  	stateSinkObject.Save(7, &f.task)
   786  	stateSinkObject.Save(8, &f.locks)
   787  }
   788  
   789  func (f *memInode) afterLoad() {}
   790  
   791  // +checklocksignore
   792  func (f *memInode) StateLoad(stateSourceObject state.Source) {
   793  	stateSourceObject.Load(0, &f.InodeAttrs)
   794  	stateSourceObject.Load(1, &f.InodeNoStatFS)
   795  	stateSourceObject.Load(2, &f.InodeNoopRefCount)
   796  	stateSourceObject.Load(3, &f.InodeNotAnonymous)
   797  	stateSourceObject.Load(4, &f.InodeNotDirectory)
   798  	stateSourceObject.Load(5, &f.InodeNotSymlink)
   799  	stateSourceObject.Load(6, &f.InodeWatches)
   800  	stateSourceObject.Load(7, &f.task)
   801  	stateSourceObject.Load(8, &f.locks)
   802  }
   803  
   804  func (fd *memFD) StateTypeName() string {
   805  	return "pkg/sentry/fsimpl/proc.memFD"
   806  }
   807  
   808  func (fd *memFD) StateFields() []string {
   809  	return []string{
   810  		"vfsfd",
   811  		"FileDescriptionDefaultImpl",
   812  		"LockFD",
   813  		"inode",
   814  		"offset",
   815  	}
   816  }
   817  
   818  func (fd *memFD) beforeSave() {}
   819  
   820  // +checklocksignore
   821  func (fd *memFD) StateSave(stateSinkObject state.Sink) {
   822  	fd.beforeSave()
   823  	stateSinkObject.Save(0, &fd.vfsfd)
   824  	stateSinkObject.Save(1, &fd.FileDescriptionDefaultImpl)
   825  	stateSinkObject.Save(2, &fd.LockFD)
   826  	stateSinkObject.Save(3, &fd.inode)
   827  	stateSinkObject.Save(4, &fd.offset)
   828  }
   829  
   830  func (fd *memFD) afterLoad() {}
   831  
   832  // +checklocksignore
   833  func (fd *memFD) StateLoad(stateSourceObject state.Source) {
   834  	stateSourceObject.Load(0, &fd.vfsfd)
   835  	stateSourceObject.Load(1, &fd.FileDescriptionDefaultImpl)
   836  	stateSourceObject.Load(2, &fd.LockFD)
   837  	stateSourceObject.Load(3, &fd.inode)
   838  	stateSourceObject.Load(4, &fd.offset)
   839  }
   840  
   841  func (d *limitsData) StateTypeName() string {
   842  	return "pkg/sentry/fsimpl/proc.limitsData"
   843  }
   844  
   845  func (d *limitsData) StateFields() []string {
   846  	return []string{
   847  		"DynamicBytesFile",
   848  		"task",
   849  	}
   850  }
   851  
   852  func (d *limitsData) beforeSave() {}
   853  
   854  // +checklocksignore
   855  func (d *limitsData) StateSave(stateSinkObject state.Sink) {
   856  	d.beforeSave()
   857  	stateSinkObject.Save(0, &d.DynamicBytesFile)
   858  	stateSinkObject.Save(1, &d.task)
   859  }
   860  
   861  func (d *limitsData) afterLoad() {}
   862  
   863  // +checklocksignore
   864  func (d *limitsData) StateLoad(stateSourceObject state.Source) {
   865  	stateSourceObject.Load(0, &d.DynamicBytesFile)
   866  	stateSourceObject.Load(1, &d.task)
   867  }
   868  
   869  func (d *mapsData) StateTypeName() string {
   870  	return "pkg/sentry/fsimpl/proc.mapsData"
   871  }
   872  
   873  func (d *mapsData) StateFields() []string {
   874  	return []string{
   875  		"DynamicBytesFile",
   876  		"task",
   877  	}
   878  }
   879  
   880  func (d *mapsData) beforeSave() {}
   881  
   882  // +checklocksignore
   883  func (d *mapsData) StateSave(stateSinkObject state.Sink) {
   884  	d.beforeSave()
   885  	stateSinkObject.Save(0, &d.DynamicBytesFile)
   886  	stateSinkObject.Save(1, &d.task)
   887  }
   888  
   889  func (d *mapsData) afterLoad() {}
   890  
   891  // +checklocksignore
   892  func (d *mapsData) StateLoad(stateSourceObject state.Source) {
   893  	stateSourceObject.Load(0, &d.DynamicBytesFile)
   894  	stateSourceObject.Load(1, &d.task)
   895  }
   896  
   897  func (d *smapsData) StateTypeName() string {
   898  	return "pkg/sentry/fsimpl/proc.smapsData"
   899  }
   900  
   901  func (d *smapsData) StateFields() []string {
   902  	return []string{
   903  		"DynamicBytesFile",
   904  		"task",
   905  	}
   906  }
   907  
   908  func (d *smapsData) beforeSave() {}
   909  
   910  // +checklocksignore
   911  func (d *smapsData) StateSave(stateSinkObject state.Sink) {
   912  	d.beforeSave()
   913  	stateSinkObject.Save(0, &d.DynamicBytesFile)
   914  	stateSinkObject.Save(1, &d.task)
   915  }
   916  
   917  func (d *smapsData) afterLoad() {}
   918  
   919  // +checklocksignore
   920  func (d *smapsData) StateLoad(stateSourceObject state.Source) {
   921  	stateSourceObject.Load(0, &d.DynamicBytesFile)
   922  	stateSourceObject.Load(1, &d.task)
   923  }
   924  
   925  func (s *taskStatData) StateTypeName() string {
   926  	return "pkg/sentry/fsimpl/proc.taskStatData"
   927  }
   928  
   929  func (s *taskStatData) StateFields() []string {
   930  	return []string{
   931  		"DynamicBytesFile",
   932  		"task",
   933  		"tgstats",
   934  		"pidns",
   935  	}
   936  }
   937  
   938  func (s *taskStatData) beforeSave() {}
   939  
   940  // +checklocksignore
   941  func (s *taskStatData) StateSave(stateSinkObject state.Sink) {
   942  	s.beforeSave()
   943  	stateSinkObject.Save(0, &s.DynamicBytesFile)
   944  	stateSinkObject.Save(1, &s.task)
   945  	stateSinkObject.Save(2, &s.tgstats)
   946  	stateSinkObject.Save(3, &s.pidns)
   947  }
   948  
   949  func (s *taskStatData) afterLoad() {}
   950  
   951  // +checklocksignore
   952  func (s *taskStatData) StateLoad(stateSourceObject state.Source) {
   953  	stateSourceObject.Load(0, &s.DynamicBytesFile)
   954  	stateSourceObject.Load(1, &s.task)
   955  	stateSourceObject.Load(2, &s.tgstats)
   956  	stateSourceObject.Load(3, &s.pidns)
   957  }
   958  
   959  func (s *statmData) StateTypeName() string {
   960  	return "pkg/sentry/fsimpl/proc.statmData"
   961  }
   962  
   963  func (s *statmData) StateFields() []string {
   964  	return []string{
   965  		"DynamicBytesFile",
   966  		"task",
   967  	}
   968  }
   969  
   970  func (s *statmData) beforeSave() {}
   971  
   972  // +checklocksignore
   973  func (s *statmData) StateSave(stateSinkObject state.Sink) {
   974  	s.beforeSave()
   975  	stateSinkObject.Save(0, &s.DynamicBytesFile)
   976  	stateSinkObject.Save(1, &s.task)
   977  }
   978  
   979  func (s *statmData) afterLoad() {}
   980  
   981  // +checklocksignore
   982  func (s *statmData) StateLoad(stateSourceObject state.Source) {
   983  	stateSourceObject.Load(0, &s.DynamicBytesFile)
   984  	stateSourceObject.Load(1, &s.task)
   985  }
   986  
   987  func (s *statusInode) StateTypeName() string {
   988  	return "pkg/sentry/fsimpl/proc.statusInode"
   989  }
   990  
   991  func (s *statusInode) StateFields() []string {
   992  	return []string{
   993  		"InodeAttrs",
   994  		"InodeNoStatFS",
   995  		"InodeNoopRefCount",
   996  		"InodeNotAnonymous",
   997  		"InodeNotDirectory",
   998  		"InodeNotSymlink",
   999  		"InodeWatches",
  1000  		"task",
  1001  		"pidns",
  1002  		"locks",
  1003  	}
  1004  }
  1005  
  1006  func (s *statusInode) beforeSave() {}
  1007  
  1008  // +checklocksignore
  1009  func (s *statusInode) StateSave(stateSinkObject state.Sink) {
  1010  	s.beforeSave()
  1011  	stateSinkObject.Save(0, &s.InodeAttrs)
  1012  	stateSinkObject.Save(1, &s.InodeNoStatFS)
  1013  	stateSinkObject.Save(2, &s.InodeNoopRefCount)
  1014  	stateSinkObject.Save(3, &s.InodeNotAnonymous)
  1015  	stateSinkObject.Save(4, &s.InodeNotDirectory)
  1016  	stateSinkObject.Save(5, &s.InodeNotSymlink)
  1017  	stateSinkObject.Save(6, &s.InodeWatches)
  1018  	stateSinkObject.Save(7, &s.task)
  1019  	stateSinkObject.Save(8, &s.pidns)
  1020  	stateSinkObject.Save(9, &s.locks)
  1021  }
  1022  
  1023  func (s *statusInode) afterLoad() {}
  1024  
  1025  // +checklocksignore
  1026  func (s *statusInode) StateLoad(stateSourceObject state.Source) {
  1027  	stateSourceObject.Load(0, &s.InodeAttrs)
  1028  	stateSourceObject.Load(1, &s.InodeNoStatFS)
  1029  	stateSourceObject.Load(2, &s.InodeNoopRefCount)
  1030  	stateSourceObject.Load(3, &s.InodeNotAnonymous)
  1031  	stateSourceObject.Load(4, &s.InodeNotDirectory)
  1032  	stateSourceObject.Load(5, &s.InodeNotSymlink)
  1033  	stateSourceObject.Load(6, &s.InodeWatches)
  1034  	stateSourceObject.Load(7, &s.task)
  1035  	stateSourceObject.Load(8, &s.pidns)
  1036  	stateSourceObject.Load(9, &s.locks)
  1037  }
  1038  
  1039  func (s *statusFD) StateTypeName() string {
  1040  	return "pkg/sentry/fsimpl/proc.statusFD"
  1041  }
  1042  
  1043  func (s *statusFD) StateFields() []string {
  1044  	return []string{
  1045  		"statusFDLowerBase",
  1046  		"DynamicBytesFileDescriptionImpl",
  1047  		"LockFD",
  1048  		"vfsfd",
  1049  		"inode",
  1050  		"task",
  1051  		"pidns",
  1052  		"userns",
  1053  	}
  1054  }
  1055  
  1056  func (s *statusFD) beforeSave() {}
  1057  
  1058  // +checklocksignore
  1059  func (s *statusFD) StateSave(stateSinkObject state.Sink) {
  1060  	s.beforeSave()
  1061  	stateSinkObject.Save(0, &s.statusFDLowerBase)
  1062  	stateSinkObject.Save(1, &s.DynamicBytesFileDescriptionImpl)
  1063  	stateSinkObject.Save(2, &s.LockFD)
  1064  	stateSinkObject.Save(3, &s.vfsfd)
  1065  	stateSinkObject.Save(4, &s.inode)
  1066  	stateSinkObject.Save(5, &s.task)
  1067  	stateSinkObject.Save(6, &s.pidns)
  1068  	stateSinkObject.Save(7, &s.userns)
  1069  }
  1070  
  1071  func (s *statusFD) afterLoad() {}
  1072  
  1073  // +checklocksignore
  1074  func (s *statusFD) StateLoad(stateSourceObject state.Source) {
  1075  	stateSourceObject.Load(0, &s.statusFDLowerBase)
  1076  	stateSourceObject.Load(1, &s.DynamicBytesFileDescriptionImpl)
  1077  	stateSourceObject.Load(2, &s.LockFD)
  1078  	stateSourceObject.Load(3, &s.vfsfd)
  1079  	stateSourceObject.Load(4, &s.inode)
  1080  	stateSourceObject.Load(5, &s.task)
  1081  	stateSourceObject.Load(6, &s.pidns)
  1082  	stateSourceObject.Load(7, &s.userns)
  1083  }
  1084  
  1085  func (s *statusFDLowerBase) StateTypeName() string {
  1086  	return "pkg/sentry/fsimpl/proc.statusFDLowerBase"
  1087  }
  1088  
  1089  func (s *statusFDLowerBase) StateFields() []string {
  1090  	return []string{
  1091  		"FileDescriptionDefaultImpl",
  1092  	}
  1093  }
  1094  
  1095  func (s *statusFDLowerBase) beforeSave() {}
  1096  
  1097  // +checklocksignore
  1098  func (s *statusFDLowerBase) StateSave(stateSinkObject state.Sink) {
  1099  	s.beforeSave()
  1100  	stateSinkObject.Save(0, &s.FileDescriptionDefaultImpl)
  1101  }
  1102  
  1103  func (s *statusFDLowerBase) afterLoad() {}
  1104  
  1105  // +checklocksignore
  1106  func (s *statusFDLowerBase) StateLoad(stateSourceObject state.Source) {
  1107  	stateSourceObject.Load(0, &s.FileDescriptionDefaultImpl)
  1108  }
  1109  
  1110  func (i *ioData) StateTypeName() string {
  1111  	return "pkg/sentry/fsimpl/proc.ioData"
  1112  }
  1113  
  1114  func (i *ioData) StateFields() []string {
  1115  	return []string{
  1116  		"DynamicBytesFile",
  1117  		"ioUsage",
  1118  	}
  1119  }
  1120  
  1121  func (i *ioData) beforeSave() {}
  1122  
  1123  // +checklocksignore
  1124  func (i *ioData) StateSave(stateSinkObject state.Sink) {
  1125  	i.beforeSave()
  1126  	stateSinkObject.Save(0, &i.DynamicBytesFile)
  1127  	stateSinkObject.Save(1, &i.ioUsage)
  1128  }
  1129  
  1130  func (i *ioData) afterLoad() {}
  1131  
  1132  // +checklocksignore
  1133  func (i *ioData) StateLoad(stateSourceObject state.Source) {
  1134  	stateSourceObject.Load(0, &i.DynamicBytesFile)
  1135  	stateSourceObject.Load(1, &i.ioUsage)
  1136  }
  1137  
  1138  func (o *oomScoreAdj) StateTypeName() string {
  1139  	return "pkg/sentry/fsimpl/proc.oomScoreAdj"
  1140  }
  1141  
  1142  func (o *oomScoreAdj) StateFields() []string {
  1143  	return []string{
  1144  		"DynamicBytesFile",
  1145  		"task",
  1146  	}
  1147  }
  1148  
  1149  func (o *oomScoreAdj) beforeSave() {}
  1150  
  1151  // +checklocksignore
  1152  func (o *oomScoreAdj) StateSave(stateSinkObject state.Sink) {
  1153  	o.beforeSave()
  1154  	stateSinkObject.Save(0, &o.DynamicBytesFile)
  1155  	stateSinkObject.Save(1, &o.task)
  1156  }
  1157  
  1158  func (o *oomScoreAdj) afterLoad() {}
  1159  
  1160  // +checklocksignore
  1161  func (o *oomScoreAdj) StateLoad(stateSourceObject state.Source) {
  1162  	stateSourceObject.Load(0, &o.DynamicBytesFile)
  1163  	stateSourceObject.Load(1, &o.task)
  1164  }
  1165  
  1166  func (s *exeSymlink) StateTypeName() string {
  1167  	return "pkg/sentry/fsimpl/proc.exeSymlink"
  1168  }
  1169  
  1170  func (s *exeSymlink) StateFields() []string {
  1171  	return []string{
  1172  		"implStatFS",
  1173  		"InodeAttrs",
  1174  		"InodeNoopRefCount",
  1175  		"InodeNotAnonymous",
  1176  		"InodeSymlink",
  1177  		"InodeWatches",
  1178  		"fs",
  1179  		"task",
  1180  	}
  1181  }
  1182  
  1183  func (s *exeSymlink) beforeSave() {}
  1184  
  1185  // +checklocksignore
  1186  func (s *exeSymlink) StateSave(stateSinkObject state.Sink) {
  1187  	s.beforeSave()
  1188  	stateSinkObject.Save(0, &s.implStatFS)
  1189  	stateSinkObject.Save(1, &s.InodeAttrs)
  1190  	stateSinkObject.Save(2, &s.InodeNoopRefCount)
  1191  	stateSinkObject.Save(3, &s.InodeNotAnonymous)
  1192  	stateSinkObject.Save(4, &s.InodeSymlink)
  1193  	stateSinkObject.Save(5, &s.InodeWatches)
  1194  	stateSinkObject.Save(6, &s.fs)
  1195  	stateSinkObject.Save(7, &s.task)
  1196  }
  1197  
  1198  func (s *exeSymlink) afterLoad() {}
  1199  
  1200  // +checklocksignore
  1201  func (s *exeSymlink) StateLoad(stateSourceObject state.Source) {
  1202  	stateSourceObject.Load(0, &s.implStatFS)
  1203  	stateSourceObject.Load(1, &s.InodeAttrs)
  1204  	stateSourceObject.Load(2, &s.InodeNoopRefCount)
  1205  	stateSourceObject.Load(3, &s.InodeNotAnonymous)
  1206  	stateSourceObject.Load(4, &s.InodeSymlink)
  1207  	stateSourceObject.Load(5, &s.InodeWatches)
  1208  	stateSourceObject.Load(6, &s.fs)
  1209  	stateSourceObject.Load(7, &s.task)
  1210  }
  1211  
  1212  func (s *cwdSymlink) StateTypeName() string {
  1213  	return "pkg/sentry/fsimpl/proc.cwdSymlink"
  1214  }
  1215  
  1216  func (s *cwdSymlink) StateFields() []string {
  1217  	return []string{
  1218  		"implStatFS",
  1219  		"InodeAttrs",
  1220  		"InodeNoopRefCount",
  1221  		"InodeNotAnonymous",
  1222  		"InodeSymlink",
  1223  		"InodeWatches",
  1224  		"fs",
  1225  		"task",
  1226  	}
  1227  }
  1228  
  1229  func (s *cwdSymlink) beforeSave() {}
  1230  
  1231  // +checklocksignore
  1232  func (s *cwdSymlink) StateSave(stateSinkObject state.Sink) {
  1233  	s.beforeSave()
  1234  	stateSinkObject.Save(0, &s.implStatFS)
  1235  	stateSinkObject.Save(1, &s.InodeAttrs)
  1236  	stateSinkObject.Save(2, &s.InodeNoopRefCount)
  1237  	stateSinkObject.Save(3, &s.InodeNotAnonymous)
  1238  	stateSinkObject.Save(4, &s.InodeSymlink)
  1239  	stateSinkObject.Save(5, &s.InodeWatches)
  1240  	stateSinkObject.Save(6, &s.fs)
  1241  	stateSinkObject.Save(7, &s.task)
  1242  }
  1243  
  1244  func (s *cwdSymlink) afterLoad() {}
  1245  
  1246  // +checklocksignore
  1247  func (s *cwdSymlink) StateLoad(stateSourceObject state.Source) {
  1248  	stateSourceObject.Load(0, &s.implStatFS)
  1249  	stateSourceObject.Load(1, &s.InodeAttrs)
  1250  	stateSourceObject.Load(2, &s.InodeNoopRefCount)
  1251  	stateSourceObject.Load(3, &s.InodeNotAnonymous)
  1252  	stateSourceObject.Load(4, &s.InodeSymlink)
  1253  	stateSourceObject.Load(5, &s.InodeWatches)
  1254  	stateSourceObject.Load(6, &s.fs)
  1255  	stateSourceObject.Load(7, &s.task)
  1256  }
  1257  
  1258  func (s *rootSymlink) StateTypeName() string {
  1259  	return "pkg/sentry/fsimpl/proc.rootSymlink"
  1260  }
  1261  
  1262  func (s *rootSymlink) StateFields() []string {
  1263  	return []string{
  1264  		"implStatFS",
  1265  		"InodeAttrs",
  1266  		"InodeNoopRefCount",
  1267  		"InodeNotAnonymous",
  1268  		"InodeSymlink",
  1269  		"InodeWatches",
  1270  		"fs",
  1271  		"task",
  1272  	}
  1273  }
  1274  
  1275  func (s *rootSymlink) beforeSave() {}
  1276  
  1277  // +checklocksignore
  1278  func (s *rootSymlink) StateSave(stateSinkObject state.Sink) {
  1279  	s.beforeSave()
  1280  	stateSinkObject.Save(0, &s.implStatFS)
  1281  	stateSinkObject.Save(1, &s.InodeAttrs)
  1282  	stateSinkObject.Save(2, &s.InodeNoopRefCount)
  1283  	stateSinkObject.Save(3, &s.InodeNotAnonymous)
  1284  	stateSinkObject.Save(4, &s.InodeSymlink)
  1285  	stateSinkObject.Save(5, &s.InodeWatches)
  1286  	stateSinkObject.Save(6, &s.fs)
  1287  	stateSinkObject.Save(7, &s.task)
  1288  }
  1289  
  1290  func (s *rootSymlink) afterLoad() {}
  1291  
  1292  // +checklocksignore
  1293  func (s *rootSymlink) StateLoad(stateSourceObject state.Source) {
  1294  	stateSourceObject.Load(0, &s.implStatFS)
  1295  	stateSourceObject.Load(1, &s.InodeAttrs)
  1296  	stateSourceObject.Load(2, &s.InodeNoopRefCount)
  1297  	stateSourceObject.Load(3, &s.InodeNotAnonymous)
  1298  	stateSourceObject.Load(4, &s.InodeSymlink)
  1299  	stateSourceObject.Load(5, &s.InodeWatches)
  1300  	stateSourceObject.Load(6, &s.fs)
  1301  	stateSourceObject.Load(7, &s.task)
  1302  }
  1303  
  1304  func (i *mountInfoData) StateTypeName() string {
  1305  	return "pkg/sentry/fsimpl/proc.mountInfoData"
  1306  }
  1307  
  1308  func (i *mountInfoData) StateFields() []string {
  1309  	return []string{
  1310  		"DynamicBytesFile",
  1311  		"fs",
  1312  		"task",
  1313  	}
  1314  }
  1315  
  1316  func (i *mountInfoData) beforeSave() {}
  1317  
  1318  // +checklocksignore
  1319  func (i *mountInfoData) StateSave(stateSinkObject state.Sink) {
  1320  	i.beforeSave()
  1321  	stateSinkObject.Save(0, &i.DynamicBytesFile)
  1322  	stateSinkObject.Save(1, &i.fs)
  1323  	stateSinkObject.Save(2, &i.task)
  1324  }
  1325  
  1326  func (i *mountInfoData) afterLoad() {}
  1327  
  1328  // +checklocksignore
  1329  func (i *mountInfoData) StateLoad(stateSourceObject state.Source) {
  1330  	stateSourceObject.Load(0, &i.DynamicBytesFile)
  1331  	stateSourceObject.Load(1, &i.fs)
  1332  	stateSourceObject.Load(2, &i.task)
  1333  }
  1334  
  1335  func (i *mountsData) StateTypeName() string {
  1336  	return "pkg/sentry/fsimpl/proc.mountsData"
  1337  }
  1338  
  1339  func (i *mountsData) StateFields() []string {
  1340  	return []string{
  1341  		"DynamicBytesFile",
  1342  		"fs",
  1343  		"task",
  1344  	}
  1345  }
  1346  
  1347  func (i *mountsData) beforeSave() {}
  1348  
  1349  // +checklocksignore
  1350  func (i *mountsData) StateSave(stateSinkObject state.Sink) {
  1351  	i.beforeSave()
  1352  	stateSinkObject.Save(0, &i.DynamicBytesFile)
  1353  	stateSinkObject.Save(1, &i.fs)
  1354  	stateSinkObject.Save(2, &i.task)
  1355  }
  1356  
  1357  func (i *mountsData) afterLoad() {}
  1358  
  1359  // +checklocksignore
  1360  func (i *mountsData) StateLoad(stateSourceObject state.Source) {
  1361  	stateSourceObject.Load(0, &i.DynamicBytesFile)
  1362  	stateSourceObject.Load(1, &i.fs)
  1363  	stateSourceObject.Load(2, &i.task)
  1364  }
  1365  
  1366  func (s *namespaceSymlink) StateTypeName() string {
  1367  	return "pkg/sentry/fsimpl/proc.namespaceSymlink"
  1368  }
  1369  
  1370  func (s *namespaceSymlink) StateFields() []string {
  1371  	return []string{
  1372  		"StaticSymlink",
  1373  		"task",
  1374  		"nsType",
  1375  	}
  1376  }
  1377  
  1378  func (s *namespaceSymlink) beforeSave() {}
  1379  
  1380  // +checklocksignore
  1381  func (s *namespaceSymlink) StateSave(stateSinkObject state.Sink) {
  1382  	s.beforeSave()
  1383  	stateSinkObject.Save(0, &s.StaticSymlink)
  1384  	stateSinkObject.Save(1, &s.task)
  1385  	stateSinkObject.Save(2, &s.nsType)
  1386  }
  1387  
  1388  func (s *namespaceSymlink) afterLoad() {}
  1389  
  1390  // +checklocksignore
  1391  func (s *namespaceSymlink) StateLoad(stateSourceObject state.Source) {
  1392  	stateSourceObject.Load(0, &s.StaticSymlink)
  1393  	stateSourceObject.Load(1, &s.task)
  1394  	stateSourceObject.Load(2, &s.nsType)
  1395  }
  1396  
  1397  func (i *namespaceInode) StateTypeName() string {
  1398  	return "pkg/sentry/fsimpl/proc.namespaceInode"
  1399  }
  1400  
  1401  func (i *namespaceInode) StateFields() []string {
  1402  	return []string{
  1403  		"implStatFS",
  1404  		"InodeAttrs",
  1405  		"InodeNoopRefCount",
  1406  		"InodeNotAnonymous",
  1407  		"InodeNotDirectory",
  1408  		"InodeNotSymlink",
  1409  		"InodeWatches",
  1410  		"locks",
  1411  	}
  1412  }
  1413  
  1414  func (i *namespaceInode) beforeSave() {}
  1415  
  1416  // +checklocksignore
  1417  func (i *namespaceInode) StateSave(stateSinkObject state.Sink) {
  1418  	i.beforeSave()
  1419  	stateSinkObject.Save(0, &i.implStatFS)
  1420  	stateSinkObject.Save(1, &i.InodeAttrs)
  1421  	stateSinkObject.Save(2, &i.InodeNoopRefCount)
  1422  	stateSinkObject.Save(3, &i.InodeNotAnonymous)
  1423  	stateSinkObject.Save(4, &i.InodeNotDirectory)
  1424  	stateSinkObject.Save(5, &i.InodeNotSymlink)
  1425  	stateSinkObject.Save(6, &i.InodeWatches)
  1426  	stateSinkObject.Save(7, &i.locks)
  1427  }
  1428  
  1429  func (i *namespaceInode) afterLoad() {}
  1430  
  1431  // +checklocksignore
  1432  func (i *namespaceInode) StateLoad(stateSourceObject state.Source) {
  1433  	stateSourceObject.Load(0, &i.implStatFS)
  1434  	stateSourceObject.Load(1, &i.InodeAttrs)
  1435  	stateSourceObject.Load(2, &i.InodeNoopRefCount)
  1436  	stateSourceObject.Load(3, &i.InodeNotAnonymous)
  1437  	stateSourceObject.Load(4, &i.InodeNotDirectory)
  1438  	stateSourceObject.Load(5, &i.InodeNotSymlink)
  1439  	stateSourceObject.Load(6, &i.InodeWatches)
  1440  	stateSourceObject.Load(7, &i.locks)
  1441  }
  1442  
  1443  func (fd *namespaceFD) StateTypeName() string {
  1444  	return "pkg/sentry/fsimpl/proc.namespaceFD"
  1445  }
  1446  
  1447  func (fd *namespaceFD) StateFields() []string {
  1448  	return []string{
  1449  		"FileDescriptionDefaultImpl",
  1450  		"LockFD",
  1451  		"vfsfd",
  1452  		"inode",
  1453  	}
  1454  }
  1455  
  1456  func (fd *namespaceFD) beforeSave() {}
  1457  
  1458  // +checklocksignore
  1459  func (fd *namespaceFD) StateSave(stateSinkObject state.Sink) {
  1460  	fd.beforeSave()
  1461  	stateSinkObject.Save(0, &fd.FileDescriptionDefaultImpl)
  1462  	stateSinkObject.Save(1, &fd.LockFD)
  1463  	stateSinkObject.Save(2, &fd.vfsfd)
  1464  	stateSinkObject.Save(3, &fd.inode)
  1465  }
  1466  
  1467  func (fd *namespaceFD) afterLoad() {}
  1468  
  1469  // +checklocksignore
  1470  func (fd *namespaceFD) StateLoad(stateSourceObject state.Source) {
  1471  	stateSourceObject.Load(0, &fd.FileDescriptionDefaultImpl)
  1472  	stateSourceObject.Load(1, &fd.LockFD)
  1473  	stateSourceObject.Load(2, &fd.vfsfd)
  1474  	stateSourceObject.Load(3, &fd.inode)
  1475  }
  1476  
  1477  func (d *taskCgroupData) StateTypeName() string {
  1478  	return "pkg/sentry/fsimpl/proc.taskCgroupData"
  1479  }
  1480  
  1481  func (d *taskCgroupData) StateFields() []string {
  1482  	return []string{
  1483  		"dynamicBytesFileSetAttr",
  1484  		"task",
  1485  	}
  1486  }
  1487  
  1488  func (d *taskCgroupData) beforeSave() {}
  1489  
  1490  // +checklocksignore
  1491  func (d *taskCgroupData) StateSave(stateSinkObject state.Sink) {
  1492  	d.beforeSave()
  1493  	stateSinkObject.Save(0, &d.dynamicBytesFileSetAttr)
  1494  	stateSinkObject.Save(1, &d.task)
  1495  }
  1496  
  1497  func (d *taskCgroupData) afterLoad() {}
  1498  
  1499  // +checklocksignore
  1500  func (d *taskCgroupData) StateLoad(stateSourceObject state.Source) {
  1501  	stateSourceObject.Load(0, &d.dynamicBytesFileSetAttr)
  1502  	stateSourceObject.Load(1, &d.task)
  1503  }
  1504  
  1505  func (r *taskInodeRefs) StateTypeName() string {
  1506  	return "pkg/sentry/fsimpl/proc.taskInodeRefs"
  1507  }
  1508  
  1509  func (r *taskInodeRefs) StateFields() []string {
  1510  	return []string{
  1511  		"refCount",
  1512  	}
  1513  }
  1514  
  1515  func (r *taskInodeRefs) beforeSave() {}
  1516  
  1517  // +checklocksignore
  1518  func (r *taskInodeRefs) StateSave(stateSinkObject state.Sink) {
  1519  	r.beforeSave()
  1520  	stateSinkObject.Save(0, &r.refCount)
  1521  }
  1522  
  1523  // +checklocksignore
  1524  func (r *taskInodeRefs) StateLoad(stateSourceObject state.Source) {
  1525  	stateSourceObject.Load(0, &r.refCount)
  1526  	stateSourceObject.AfterLoad(r.afterLoad)
  1527  }
  1528  
  1529  func (n *ifinet6) StateTypeName() string {
  1530  	return "pkg/sentry/fsimpl/proc.ifinet6"
  1531  }
  1532  
  1533  func (n *ifinet6) StateFields() []string {
  1534  	return []string{
  1535  		"DynamicBytesFile",
  1536  		"stack",
  1537  	}
  1538  }
  1539  
  1540  func (n *ifinet6) beforeSave() {}
  1541  
  1542  // +checklocksignore
  1543  func (n *ifinet6) StateSave(stateSinkObject state.Sink) {
  1544  	n.beforeSave()
  1545  	stateSinkObject.Save(0, &n.DynamicBytesFile)
  1546  	stateSinkObject.Save(1, &n.stack)
  1547  }
  1548  
  1549  func (n *ifinet6) afterLoad() {}
  1550  
  1551  // +checklocksignore
  1552  func (n *ifinet6) StateLoad(stateSourceObject state.Source) {
  1553  	stateSourceObject.Load(0, &n.DynamicBytesFile)
  1554  	stateSourceObject.Load(1, &n.stack)
  1555  }
  1556  
  1557  func (n *netDevData) StateTypeName() string {
  1558  	return "pkg/sentry/fsimpl/proc.netDevData"
  1559  }
  1560  
  1561  func (n *netDevData) StateFields() []string {
  1562  	return []string{
  1563  		"DynamicBytesFile",
  1564  		"stack",
  1565  	}
  1566  }
  1567  
  1568  func (n *netDevData) beforeSave() {}
  1569  
  1570  // +checklocksignore
  1571  func (n *netDevData) StateSave(stateSinkObject state.Sink) {
  1572  	n.beforeSave()
  1573  	stateSinkObject.Save(0, &n.DynamicBytesFile)
  1574  	stateSinkObject.Save(1, &n.stack)
  1575  }
  1576  
  1577  func (n *netDevData) afterLoad() {}
  1578  
  1579  // +checklocksignore
  1580  func (n *netDevData) StateLoad(stateSourceObject state.Source) {
  1581  	stateSourceObject.Load(0, &n.DynamicBytesFile)
  1582  	stateSourceObject.Load(1, &n.stack)
  1583  }
  1584  
  1585  func (n *netUnixData) StateTypeName() string {
  1586  	return "pkg/sentry/fsimpl/proc.netUnixData"
  1587  }
  1588  
  1589  func (n *netUnixData) StateFields() []string {
  1590  	return []string{
  1591  		"DynamicBytesFile",
  1592  		"kernel",
  1593  	}
  1594  }
  1595  
  1596  func (n *netUnixData) beforeSave() {}
  1597  
  1598  // +checklocksignore
  1599  func (n *netUnixData) StateSave(stateSinkObject state.Sink) {
  1600  	n.beforeSave()
  1601  	stateSinkObject.Save(0, &n.DynamicBytesFile)
  1602  	stateSinkObject.Save(1, &n.kernel)
  1603  }
  1604  
  1605  func (n *netUnixData) afterLoad() {}
  1606  
  1607  // +checklocksignore
  1608  func (n *netUnixData) StateLoad(stateSourceObject state.Source) {
  1609  	stateSourceObject.Load(0, &n.DynamicBytesFile)
  1610  	stateSourceObject.Load(1, &n.kernel)
  1611  }
  1612  
  1613  func (d *netTCPData) StateTypeName() string {
  1614  	return "pkg/sentry/fsimpl/proc.netTCPData"
  1615  }
  1616  
  1617  func (d *netTCPData) StateFields() []string {
  1618  	return []string{
  1619  		"DynamicBytesFile",
  1620  		"kernel",
  1621  	}
  1622  }
  1623  
  1624  func (d *netTCPData) beforeSave() {}
  1625  
  1626  // +checklocksignore
  1627  func (d *netTCPData) StateSave(stateSinkObject state.Sink) {
  1628  	d.beforeSave()
  1629  	stateSinkObject.Save(0, &d.DynamicBytesFile)
  1630  	stateSinkObject.Save(1, &d.kernel)
  1631  }
  1632  
  1633  func (d *netTCPData) afterLoad() {}
  1634  
  1635  // +checklocksignore
  1636  func (d *netTCPData) StateLoad(stateSourceObject state.Source) {
  1637  	stateSourceObject.Load(0, &d.DynamicBytesFile)
  1638  	stateSourceObject.Load(1, &d.kernel)
  1639  }
  1640  
  1641  func (d *netTCP6Data) StateTypeName() string {
  1642  	return "pkg/sentry/fsimpl/proc.netTCP6Data"
  1643  }
  1644  
  1645  func (d *netTCP6Data) StateFields() []string {
  1646  	return []string{
  1647  		"DynamicBytesFile",
  1648  		"kernel",
  1649  	}
  1650  }
  1651  
  1652  func (d *netTCP6Data) beforeSave() {}
  1653  
  1654  // +checklocksignore
  1655  func (d *netTCP6Data) StateSave(stateSinkObject state.Sink) {
  1656  	d.beforeSave()
  1657  	stateSinkObject.Save(0, &d.DynamicBytesFile)
  1658  	stateSinkObject.Save(1, &d.kernel)
  1659  }
  1660  
  1661  func (d *netTCP6Data) afterLoad() {}
  1662  
  1663  // +checklocksignore
  1664  func (d *netTCP6Data) StateLoad(stateSourceObject state.Source) {
  1665  	stateSourceObject.Load(0, &d.DynamicBytesFile)
  1666  	stateSourceObject.Load(1, &d.kernel)
  1667  }
  1668  
  1669  func (d *netUDPData) StateTypeName() string {
  1670  	return "pkg/sentry/fsimpl/proc.netUDPData"
  1671  }
  1672  
  1673  func (d *netUDPData) StateFields() []string {
  1674  	return []string{
  1675  		"DynamicBytesFile",
  1676  		"kernel",
  1677  	}
  1678  }
  1679  
  1680  func (d *netUDPData) beforeSave() {}
  1681  
  1682  // +checklocksignore
  1683  func (d *netUDPData) StateSave(stateSinkObject state.Sink) {
  1684  	d.beforeSave()
  1685  	stateSinkObject.Save(0, &d.DynamicBytesFile)
  1686  	stateSinkObject.Save(1, &d.kernel)
  1687  }
  1688  
  1689  func (d *netUDPData) afterLoad() {}
  1690  
  1691  // +checklocksignore
  1692  func (d *netUDPData) StateLoad(stateSourceObject state.Source) {
  1693  	stateSourceObject.Load(0, &d.DynamicBytesFile)
  1694  	stateSourceObject.Load(1, &d.kernel)
  1695  }
  1696  
  1697  func (d *netSnmpData) StateTypeName() string {
  1698  	return "pkg/sentry/fsimpl/proc.netSnmpData"
  1699  }
  1700  
  1701  func (d *netSnmpData) StateFields() []string {
  1702  	return []string{
  1703  		"DynamicBytesFile",
  1704  		"stack",
  1705  	}
  1706  }
  1707  
  1708  func (d *netSnmpData) beforeSave() {}
  1709  
  1710  // +checklocksignore
  1711  func (d *netSnmpData) StateSave(stateSinkObject state.Sink) {
  1712  	d.beforeSave()
  1713  	stateSinkObject.Save(0, &d.DynamicBytesFile)
  1714  	stateSinkObject.Save(1, &d.stack)
  1715  }
  1716  
  1717  func (d *netSnmpData) afterLoad() {}
  1718  
  1719  // +checklocksignore
  1720  func (d *netSnmpData) StateLoad(stateSourceObject state.Source) {
  1721  	stateSourceObject.Load(0, &d.DynamicBytesFile)
  1722  	stateSourceObject.Load(1, &d.stack)
  1723  }
  1724  
  1725  func (s *snmpLine) StateTypeName() string {
  1726  	return "pkg/sentry/fsimpl/proc.snmpLine"
  1727  }
  1728  
  1729  func (s *snmpLine) StateFields() []string {
  1730  	return []string{
  1731  		"prefix",
  1732  		"header",
  1733  	}
  1734  }
  1735  
  1736  func (s *snmpLine) beforeSave() {}
  1737  
  1738  // +checklocksignore
  1739  func (s *snmpLine) StateSave(stateSinkObject state.Sink) {
  1740  	s.beforeSave()
  1741  	stateSinkObject.Save(0, &s.prefix)
  1742  	stateSinkObject.Save(1, &s.header)
  1743  }
  1744  
  1745  func (s *snmpLine) afterLoad() {}
  1746  
  1747  // +checklocksignore
  1748  func (s *snmpLine) StateLoad(stateSourceObject state.Source) {
  1749  	stateSourceObject.Load(0, &s.prefix)
  1750  	stateSourceObject.Load(1, &s.header)
  1751  }
  1752  
  1753  func (d *netRouteData) StateTypeName() string {
  1754  	return "pkg/sentry/fsimpl/proc.netRouteData"
  1755  }
  1756  
  1757  func (d *netRouteData) StateFields() []string {
  1758  	return []string{
  1759  		"DynamicBytesFile",
  1760  		"stack",
  1761  	}
  1762  }
  1763  
  1764  func (d *netRouteData) beforeSave() {}
  1765  
  1766  // +checklocksignore
  1767  func (d *netRouteData) StateSave(stateSinkObject state.Sink) {
  1768  	d.beforeSave()
  1769  	stateSinkObject.Save(0, &d.DynamicBytesFile)
  1770  	stateSinkObject.Save(1, &d.stack)
  1771  }
  1772  
  1773  func (d *netRouteData) afterLoad() {}
  1774  
  1775  // +checklocksignore
  1776  func (d *netRouteData) StateLoad(stateSourceObject state.Source) {
  1777  	stateSourceObject.Load(0, &d.DynamicBytesFile)
  1778  	stateSourceObject.Load(1, &d.stack)
  1779  }
  1780  
  1781  func (d *netStatData) StateTypeName() string {
  1782  	return "pkg/sentry/fsimpl/proc.netStatData"
  1783  }
  1784  
  1785  func (d *netStatData) StateFields() []string {
  1786  	return []string{
  1787  		"DynamicBytesFile",
  1788  		"stack",
  1789  	}
  1790  }
  1791  
  1792  func (d *netStatData) beforeSave() {}
  1793  
  1794  // +checklocksignore
  1795  func (d *netStatData) StateSave(stateSinkObject state.Sink) {
  1796  	d.beforeSave()
  1797  	stateSinkObject.Save(0, &d.DynamicBytesFile)
  1798  	stateSinkObject.Save(1, &d.stack)
  1799  }
  1800  
  1801  func (d *netStatData) afterLoad() {}
  1802  
  1803  // +checklocksignore
  1804  func (d *netStatData) StateLoad(stateSourceObject state.Source) {
  1805  	stateSourceObject.Load(0, &d.DynamicBytesFile)
  1806  	stateSourceObject.Load(1, &d.stack)
  1807  }
  1808  
  1809  func (i *tasksInode) StateTypeName() string {
  1810  	return "pkg/sentry/fsimpl/proc.tasksInode"
  1811  }
  1812  
  1813  func (i *tasksInode) StateFields() []string {
  1814  	return []string{
  1815  		"implStatFS",
  1816  		"InodeAlwaysValid",
  1817  		"InodeAttrs",
  1818  		"InodeDirectoryNoNewChildren",
  1819  		"InodeNotAnonymous",
  1820  		"InodeNotSymlink",
  1821  		"InodeTemporary",
  1822  		"InodeWatches",
  1823  		"OrderedChildren",
  1824  		"tasksInodeRefs",
  1825  		"locks",
  1826  		"fs",
  1827  		"pidns",
  1828  		"fakeCgroupControllers",
  1829  	}
  1830  }
  1831  
  1832  func (i *tasksInode) beforeSave() {}
  1833  
  1834  // +checklocksignore
  1835  func (i *tasksInode) StateSave(stateSinkObject state.Sink) {
  1836  	i.beforeSave()
  1837  	stateSinkObject.Save(0, &i.implStatFS)
  1838  	stateSinkObject.Save(1, &i.InodeAlwaysValid)
  1839  	stateSinkObject.Save(2, &i.InodeAttrs)
  1840  	stateSinkObject.Save(3, &i.InodeDirectoryNoNewChildren)
  1841  	stateSinkObject.Save(4, &i.InodeNotAnonymous)
  1842  	stateSinkObject.Save(5, &i.InodeNotSymlink)
  1843  	stateSinkObject.Save(6, &i.InodeTemporary)
  1844  	stateSinkObject.Save(7, &i.InodeWatches)
  1845  	stateSinkObject.Save(8, &i.OrderedChildren)
  1846  	stateSinkObject.Save(9, &i.tasksInodeRefs)
  1847  	stateSinkObject.Save(10, &i.locks)
  1848  	stateSinkObject.Save(11, &i.fs)
  1849  	stateSinkObject.Save(12, &i.pidns)
  1850  	stateSinkObject.Save(13, &i.fakeCgroupControllers)
  1851  }
  1852  
  1853  func (i *tasksInode) afterLoad() {}
  1854  
  1855  // +checklocksignore
  1856  func (i *tasksInode) StateLoad(stateSourceObject state.Source) {
  1857  	stateSourceObject.Load(0, &i.implStatFS)
  1858  	stateSourceObject.Load(1, &i.InodeAlwaysValid)
  1859  	stateSourceObject.Load(2, &i.InodeAttrs)
  1860  	stateSourceObject.Load(3, &i.InodeDirectoryNoNewChildren)
  1861  	stateSourceObject.Load(4, &i.InodeNotAnonymous)
  1862  	stateSourceObject.Load(5, &i.InodeNotSymlink)
  1863  	stateSourceObject.Load(6, &i.InodeTemporary)
  1864  	stateSourceObject.Load(7, &i.InodeWatches)
  1865  	stateSourceObject.Load(8, &i.OrderedChildren)
  1866  	stateSourceObject.Load(9, &i.tasksInodeRefs)
  1867  	stateSourceObject.Load(10, &i.locks)
  1868  	stateSourceObject.Load(11, &i.fs)
  1869  	stateSourceObject.Load(12, &i.pidns)
  1870  	stateSourceObject.Load(13, &i.fakeCgroupControllers)
  1871  }
  1872  
  1873  func (s *staticFileSetStat) StateTypeName() string {
  1874  	return "pkg/sentry/fsimpl/proc.staticFileSetStat"
  1875  }
  1876  
  1877  func (s *staticFileSetStat) StateFields() []string {
  1878  	return []string{
  1879  		"dynamicBytesFileSetAttr",
  1880  		"StaticData",
  1881  	}
  1882  }
  1883  
  1884  func (s *staticFileSetStat) beforeSave() {}
  1885  
  1886  // +checklocksignore
  1887  func (s *staticFileSetStat) StateSave(stateSinkObject state.Sink) {
  1888  	s.beforeSave()
  1889  	stateSinkObject.Save(0, &s.dynamicBytesFileSetAttr)
  1890  	stateSinkObject.Save(1, &s.StaticData)
  1891  }
  1892  
  1893  func (s *staticFileSetStat) afterLoad() {}
  1894  
  1895  // +checklocksignore
  1896  func (s *staticFileSetStat) StateLoad(stateSourceObject state.Source) {
  1897  	stateSourceObject.Load(0, &s.dynamicBytesFileSetAttr)
  1898  	stateSourceObject.Load(1, &s.StaticData)
  1899  }
  1900  
  1901  func (s *selfSymlink) StateTypeName() string {
  1902  	return "pkg/sentry/fsimpl/proc.selfSymlink"
  1903  }
  1904  
  1905  func (s *selfSymlink) StateFields() []string {
  1906  	return []string{
  1907  		"implStatFS",
  1908  		"InodeAttrs",
  1909  		"InodeNoopRefCount",
  1910  		"InodeNotAnonymous",
  1911  		"InodeSymlink",
  1912  		"InodeWatches",
  1913  		"pidns",
  1914  	}
  1915  }
  1916  
  1917  func (s *selfSymlink) beforeSave() {}
  1918  
  1919  // +checklocksignore
  1920  func (s *selfSymlink) StateSave(stateSinkObject state.Sink) {
  1921  	s.beforeSave()
  1922  	stateSinkObject.Save(0, &s.implStatFS)
  1923  	stateSinkObject.Save(1, &s.InodeAttrs)
  1924  	stateSinkObject.Save(2, &s.InodeNoopRefCount)
  1925  	stateSinkObject.Save(3, &s.InodeNotAnonymous)
  1926  	stateSinkObject.Save(4, &s.InodeSymlink)
  1927  	stateSinkObject.Save(5, &s.InodeWatches)
  1928  	stateSinkObject.Save(6, &s.pidns)
  1929  }
  1930  
  1931  func (s *selfSymlink) afterLoad() {}
  1932  
  1933  // +checklocksignore
  1934  func (s *selfSymlink) StateLoad(stateSourceObject state.Source) {
  1935  	stateSourceObject.Load(0, &s.implStatFS)
  1936  	stateSourceObject.Load(1, &s.InodeAttrs)
  1937  	stateSourceObject.Load(2, &s.InodeNoopRefCount)
  1938  	stateSourceObject.Load(3, &s.InodeNotAnonymous)
  1939  	stateSourceObject.Load(4, &s.InodeSymlink)
  1940  	stateSourceObject.Load(5, &s.InodeWatches)
  1941  	stateSourceObject.Load(6, &s.pidns)
  1942  }
  1943  
  1944  func (s *threadSelfSymlink) StateTypeName() string {
  1945  	return "pkg/sentry/fsimpl/proc.threadSelfSymlink"
  1946  }
  1947  
  1948  func (s *threadSelfSymlink) StateFields() []string {
  1949  	return []string{
  1950  		"implStatFS",
  1951  		"InodeAttrs",
  1952  		"InodeNoopRefCount",
  1953  		"InodeNotAnonymous",
  1954  		"InodeSymlink",
  1955  		"InodeWatches",
  1956  		"pidns",
  1957  	}
  1958  }
  1959  
  1960  func (s *threadSelfSymlink) beforeSave() {}
  1961  
  1962  // +checklocksignore
  1963  func (s *threadSelfSymlink) StateSave(stateSinkObject state.Sink) {
  1964  	s.beforeSave()
  1965  	stateSinkObject.Save(0, &s.implStatFS)
  1966  	stateSinkObject.Save(1, &s.InodeAttrs)
  1967  	stateSinkObject.Save(2, &s.InodeNoopRefCount)
  1968  	stateSinkObject.Save(3, &s.InodeNotAnonymous)
  1969  	stateSinkObject.Save(4, &s.InodeSymlink)
  1970  	stateSinkObject.Save(5, &s.InodeWatches)
  1971  	stateSinkObject.Save(6, &s.pidns)
  1972  }
  1973  
  1974  func (s *threadSelfSymlink) afterLoad() {}
  1975  
  1976  // +checklocksignore
  1977  func (s *threadSelfSymlink) StateLoad(stateSourceObject state.Source) {
  1978  	stateSourceObject.Load(0, &s.implStatFS)
  1979  	stateSourceObject.Load(1, &s.InodeAttrs)
  1980  	stateSourceObject.Load(2, &s.InodeNoopRefCount)
  1981  	stateSourceObject.Load(3, &s.InodeNotAnonymous)
  1982  	stateSourceObject.Load(4, &s.InodeSymlink)
  1983  	stateSourceObject.Load(5, &s.InodeWatches)
  1984  	stateSourceObject.Load(6, &s.pidns)
  1985  }
  1986  
  1987  func (d *dynamicBytesFileSetAttr) StateTypeName() string {
  1988  	return "pkg/sentry/fsimpl/proc.dynamicBytesFileSetAttr"
  1989  }
  1990  
  1991  func (d *dynamicBytesFileSetAttr) StateFields() []string {
  1992  	return []string{
  1993  		"DynamicBytesFile",
  1994  	}
  1995  }
  1996  
  1997  func (d *dynamicBytesFileSetAttr) beforeSave() {}
  1998  
  1999  // +checklocksignore
  2000  func (d *dynamicBytesFileSetAttr) StateSave(stateSinkObject state.Sink) {
  2001  	d.beforeSave()
  2002  	stateSinkObject.Save(0, &d.DynamicBytesFile)
  2003  }
  2004  
  2005  func (d *dynamicBytesFileSetAttr) afterLoad() {}
  2006  
  2007  // +checklocksignore
  2008  func (d *dynamicBytesFileSetAttr) StateLoad(stateSourceObject state.Source) {
  2009  	stateSourceObject.Load(0, &d.DynamicBytesFile)
  2010  }
  2011  
  2012  func (c *cpuStats) StateTypeName() string {
  2013  	return "pkg/sentry/fsimpl/proc.cpuStats"
  2014  }
  2015  
  2016  func (c *cpuStats) StateFields() []string {
  2017  	return []string{
  2018  		"user",
  2019  		"nice",
  2020  		"system",
  2021  		"idle",
  2022  		"ioWait",
  2023  		"irq",
  2024  		"softirq",
  2025  		"steal",
  2026  		"guest",
  2027  		"guestNice",
  2028  	}
  2029  }
  2030  
  2031  func (c *cpuStats) beforeSave() {}
  2032  
  2033  // +checklocksignore
  2034  func (c *cpuStats) StateSave(stateSinkObject state.Sink) {
  2035  	c.beforeSave()
  2036  	stateSinkObject.Save(0, &c.user)
  2037  	stateSinkObject.Save(1, &c.nice)
  2038  	stateSinkObject.Save(2, &c.system)
  2039  	stateSinkObject.Save(3, &c.idle)
  2040  	stateSinkObject.Save(4, &c.ioWait)
  2041  	stateSinkObject.Save(5, &c.irq)
  2042  	stateSinkObject.Save(6, &c.softirq)
  2043  	stateSinkObject.Save(7, &c.steal)
  2044  	stateSinkObject.Save(8, &c.guest)
  2045  	stateSinkObject.Save(9, &c.guestNice)
  2046  }
  2047  
  2048  func (c *cpuStats) afterLoad() {}
  2049  
  2050  // +checklocksignore
  2051  func (c *cpuStats) StateLoad(stateSourceObject state.Source) {
  2052  	stateSourceObject.Load(0, &c.user)
  2053  	stateSourceObject.Load(1, &c.nice)
  2054  	stateSourceObject.Load(2, &c.system)
  2055  	stateSourceObject.Load(3, &c.idle)
  2056  	stateSourceObject.Load(4, &c.ioWait)
  2057  	stateSourceObject.Load(5, &c.irq)
  2058  	stateSourceObject.Load(6, &c.softirq)
  2059  	stateSourceObject.Load(7, &c.steal)
  2060  	stateSourceObject.Load(8, &c.guest)
  2061  	stateSourceObject.Load(9, &c.guestNice)
  2062  }
  2063  
  2064  func (s *statData) StateTypeName() string {
  2065  	return "pkg/sentry/fsimpl/proc.statData"
  2066  }
  2067  
  2068  func (s *statData) StateFields() []string {
  2069  	return []string{
  2070  		"dynamicBytesFileSetAttr",
  2071  	}
  2072  }
  2073  
  2074  func (s *statData) beforeSave() {}
  2075  
  2076  // +checklocksignore
  2077  func (s *statData) StateSave(stateSinkObject state.Sink) {
  2078  	s.beforeSave()
  2079  	stateSinkObject.Save(0, &s.dynamicBytesFileSetAttr)
  2080  }
  2081  
  2082  func (s *statData) afterLoad() {}
  2083  
  2084  // +checklocksignore
  2085  func (s *statData) StateLoad(stateSourceObject state.Source) {
  2086  	stateSourceObject.Load(0, &s.dynamicBytesFileSetAttr)
  2087  }
  2088  
  2089  func (l *loadavgData) StateTypeName() string {
  2090  	return "pkg/sentry/fsimpl/proc.loadavgData"
  2091  }
  2092  
  2093  func (l *loadavgData) StateFields() []string {
  2094  	return []string{
  2095  		"dynamicBytesFileSetAttr",
  2096  	}
  2097  }
  2098  
  2099  func (l *loadavgData) beforeSave() {}
  2100  
  2101  // +checklocksignore
  2102  func (l *loadavgData) StateSave(stateSinkObject state.Sink) {
  2103  	l.beforeSave()
  2104  	stateSinkObject.Save(0, &l.dynamicBytesFileSetAttr)
  2105  }
  2106  
  2107  func (l *loadavgData) afterLoad() {}
  2108  
  2109  // +checklocksignore
  2110  func (l *loadavgData) StateLoad(stateSourceObject state.Source) {
  2111  	stateSourceObject.Load(0, &l.dynamicBytesFileSetAttr)
  2112  }
  2113  
  2114  func (m *meminfoData) StateTypeName() string {
  2115  	return "pkg/sentry/fsimpl/proc.meminfoData"
  2116  }
  2117  
  2118  func (m *meminfoData) StateFields() []string {
  2119  	return []string{
  2120  		"dynamicBytesFileSetAttr",
  2121  	}
  2122  }
  2123  
  2124  func (m *meminfoData) beforeSave() {}
  2125  
  2126  // +checklocksignore
  2127  func (m *meminfoData) StateSave(stateSinkObject state.Sink) {
  2128  	m.beforeSave()
  2129  	stateSinkObject.Save(0, &m.dynamicBytesFileSetAttr)
  2130  }
  2131  
  2132  func (m *meminfoData) afterLoad() {}
  2133  
  2134  // +checklocksignore
  2135  func (m *meminfoData) StateLoad(stateSourceObject state.Source) {
  2136  	stateSourceObject.Load(0, &m.dynamicBytesFileSetAttr)
  2137  }
  2138  
  2139  func (u *uptimeData) StateTypeName() string {
  2140  	return "pkg/sentry/fsimpl/proc.uptimeData"
  2141  }
  2142  
  2143  func (u *uptimeData) StateFields() []string {
  2144  	return []string{
  2145  		"dynamicBytesFileSetAttr",
  2146  	}
  2147  }
  2148  
  2149  func (u *uptimeData) beforeSave() {}
  2150  
  2151  // +checklocksignore
  2152  func (u *uptimeData) StateSave(stateSinkObject state.Sink) {
  2153  	u.beforeSave()
  2154  	stateSinkObject.Save(0, &u.dynamicBytesFileSetAttr)
  2155  }
  2156  
  2157  func (u *uptimeData) afterLoad() {}
  2158  
  2159  // +checklocksignore
  2160  func (u *uptimeData) StateLoad(stateSourceObject state.Source) {
  2161  	stateSourceObject.Load(0, &u.dynamicBytesFileSetAttr)
  2162  }
  2163  
  2164  func (v *versionData) StateTypeName() string {
  2165  	return "pkg/sentry/fsimpl/proc.versionData"
  2166  }
  2167  
  2168  func (v *versionData) StateFields() []string {
  2169  	return []string{
  2170  		"dynamicBytesFileSetAttr",
  2171  	}
  2172  }
  2173  
  2174  func (v *versionData) beforeSave() {}
  2175  
  2176  // +checklocksignore
  2177  func (v *versionData) StateSave(stateSinkObject state.Sink) {
  2178  	v.beforeSave()
  2179  	stateSinkObject.Save(0, &v.dynamicBytesFileSetAttr)
  2180  }
  2181  
  2182  func (v *versionData) afterLoad() {}
  2183  
  2184  // +checklocksignore
  2185  func (v *versionData) StateLoad(stateSourceObject state.Source) {
  2186  	stateSourceObject.Load(0, &v.dynamicBytesFileSetAttr)
  2187  }
  2188  
  2189  func (d *filesystemsData) StateTypeName() string {
  2190  	return "pkg/sentry/fsimpl/proc.filesystemsData"
  2191  }
  2192  
  2193  func (d *filesystemsData) StateFields() []string {
  2194  	return []string{
  2195  		"DynamicBytesFile",
  2196  	}
  2197  }
  2198  
  2199  func (d *filesystemsData) beforeSave() {}
  2200  
  2201  // +checklocksignore
  2202  func (d *filesystemsData) StateSave(stateSinkObject state.Sink) {
  2203  	d.beforeSave()
  2204  	stateSinkObject.Save(0, &d.DynamicBytesFile)
  2205  }
  2206  
  2207  func (d *filesystemsData) afterLoad() {}
  2208  
  2209  // +checklocksignore
  2210  func (d *filesystemsData) StateLoad(stateSourceObject state.Source) {
  2211  	stateSourceObject.Load(0, &d.DynamicBytesFile)
  2212  }
  2213  
  2214  func (c *cgroupsData) StateTypeName() string {
  2215  	return "pkg/sentry/fsimpl/proc.cgroupsData"
  2216  }
  2217  
  2218  func (c *cgroupsData) StateFields() []string {
  2219  	return []string{
  2220  		"dynamicBytesFileSetAttr",
  2221  	}
  2222  }
  2223  
  2224  func (c *cgroupsData) beforeSave() {}
  2225  
  2226  // +checklocksignore
  2227  func (c *cgroupsData) StateSave(stateSinkObject state.Sink) {
  2228  	c.beforeSave()
  2229  	stateSinkObject.Save(0, &c.dynamicBytesFileSetAttr)
  2230  }
  2231  
  2232  func (c *cgroupsData) afterLoad() {}
  2233  
  2234  // +checklocksignore
  2235  func (c *cgroupsData) StateLoad(stateSourceObject state.Source) {
  2236  	stateSourceObject.Load(0, &c.dynamicBytesFileSetAttr)
  2237  }
  2238  
  2239  func (c *cmdLineData) StateTypeName() string {
  2240  	return "pkg/sentry/fsimpl/proc.cmdLineData"
  2241  }
  2242  
  2243  func (c *cmdLineData) StateFields() []string {
  2244  	return []string{
  2245  		"dynamicBytesFileSetAttr",
  2246  	}
  2247  }
  2248  
  2249  func (c *cmdLineData) beforeSave() {}
  2250  
  2251  // +checklocksignore
  2252  func (c *cmdLineData) StateSave(stateSinkObject state.Sink) {
  2253  	c.beforeSave()
  2254  	stateSinkObject.Save(0, &c.dynamicBytesFileSetAttr)
  2255  }
  2256  
  2257  func (c *cmdLineData) afterLoad() {}
  2258  
  2259  // +checklocksignore
  2260  func (c *cmdLineData) StateLoad(stateSourceObject state.Source) {
  2261  	stateSourceObject.Load(0, &c.dynamicBytesFileSetAttr)
  2262  }
  2263  
  2264  func (s *sentryMeminfoData) StateTypeName() string {
  2265  	return "pkg/sentry/fsimpl/proc.sentryMeminfoData"
  2266  }
  2267  
  2268  func (s *sentryMeminfoData) StateFields() []string {
  2269  	return []string{
  2270  		"dynamicBytesFileSetAttr",
  2271  	}
  2272  }
  2273  
  2274  func (s *sentryMeminfoData) beforeSave() {}
  2275  
  2276  // +checklocksignore
  2277  func (s *sentryMeminfoData) StateSave(stateSinkObject state.Sink) {
  2278  	s.beforeSave()
  2279  	stateSinkObject.Save(0, &s.dynamicBytesFileSetAttr)
  2280  }
  2281  
  2282  func (s *sentryMeminfoData) afterLoad() {}
  2283  
  2284  // +checklocksignore
  2285  func (s *sentryMeminfoData) StateLoad(stateSourceObject state.Source) {
  2286  	stateSourceObject.Load(0, &s.dynamicBytesFileSetAttr)
  2287  }
  2288  
  2289  func (r *tasksInodeRefs) StateTypeName() string {
  2290  	return "pkg/sentry/fsimpl/proc.tasksInodeRefs"
  2291  }
  2292  
  2293  func (r *tasksInodeRefs) StateFields() []string {
  2294  	return []string{
  2295  		"refCount",
  2296  	}
  2297  }
  2298  
  2299  func (r *tasksInodeRefs) beforeSave() {}
  2300  
  2301  // +checklocksignore
  2302  func (r *tasksInodeRefs) StateSave(stateSinkObject state.Sink) {
  2303  	r.beforeSave()
  2304  	stateSinkObject.Save(0, &r.refCount)
  2305  }
  2306  
  2307  // +checklocksignore
  2308  func (r *tasksInodeRefs) StateLoad(stateSourceObject state.Source) {
  2309  	stateSourceObject.Load(0, &r.refCount)
  2310  	stateSourceObject.AfterLoad(r.afterLoad)
  2311  }
  2312  
  2313  func (t *tcpMemDir) StateTypeName() string {
  2314  	return "pkg/sentry/fsimpl/proc.tcpMemDir"
  2315  }
  2316  
  2317  func (t *tcpMemDir) StateFields() []string {
  2318  	return nil
  2319  }
  2320  
  2321  func (d *mmapMinAddrData) StateTypeName() string {
  2322  	return "pkg/sentry/fsimpl/proc.mmapMinAddrData"
  2323  }
  2324  
  2325  func (d *mmapMinAddrData) StateFields() []string {
  2326  	return []string{
  2327  		"DynamicBytesFile",
  2328  		"k",
  2329  	}
  2330  }
  2331  
  2332  func (d *mmapMinAddrData) beforeSave() {}
  2333  
  2334  // +checklocksignore
  2335  func (d *mmapMinAddrData) StateSave(stateSinkObject state.Sink) {
  2336  	d.beforeSave()
  2337  	stateSinkObject.Save(0, &d.DynamicBytesFile)
  2338  	stateSinkObject.Save(1, &d.k)
  2339  }
  2340  
  2341  func (d *mmapMinAddrData) afterLoad() {}
  2342  
  2343  // +checklocksignore
  2344  func (d *mmapMinAddrData) StateLoad(stateSourceObject state.Source) {
  2345  	stateSourceObject.Load(0, &d.DynamicBytesFile)
  2346  	stateSourceObject.Load(1, &d.k)
  2347  }
  2348  
  2349  func (h *hostnameData) StateTypeName() string {
  2350  	return "pkg/sentry/fsimpl/proc.hostnameData"
  2351  }
  2352  
  2353  func (h *hostnameData) StateFields() []string {
  2354  	return []string{
  2355  		"DynamicBytesFile",
  2356  	}
  2357  }
  2358  
  2359  func (h *hostnameData) beforeSave() {}
  2360  
  2361  // +checklocksignore
  2362  func (h *hostnameData) StateSave(stateSinkObject state.Sink) {
  2363  	h.beforeSave()
  2364  	stateSinkObject.Save(0, &h.DynamicBytesFile)
  2365  }
  2366  
  2367  func (h *hostnameData) afterLoad() {}
  2368  
  2369  // +checklocksignore
  2370  func (h *hostnameData) StateLoad(stateSourceObject state.Source) {
  2371  	stateSourceObject.Load(0, &h.DynamicBytesFile)
  2372  }
  2373  
  2374  func (d *tcpSackData) StateTypeName() string {
  2375  	return "pkg/sentry/fsimpl/proc.tcpSackData"
  2376  }
  2377  
  2378  func (d *tcpSackData) StateFields() []string {
  2379  	return []string{
  2380  		"DynamicBytesFile",
  2381  		"stack",
  2382  		"enabled",
  2383  	}
  2384  }
  2385  
  2386  func (d *tcpSackData) beforeSave() {}
  2387  
  2388  // +checklocksignore
  2389  func (d *tcpSackData) StateSave(stateSinkObject state.Sink) {
  2390  	d.beforeSave()
  2391  	stateSinkObject.Save(0, &d.DynamicBytesFile)
  2392  	stateSinkObject.Save(1, &d.stack)
  2393  	stateSinkObject.Save(2, &d.enabled)
  2394  }
  2395  
  2396  func (d *tcpSackData) afterLoad() {}
  2397  
  2398  // +checklocksignore
  2399  func (d *tcpSackData) StateLoad(stateSourceObject state.Source) {
  2400  	stateSourceObject.Load(0, &d.DynamicBytesFile)
  2401  	stateSourceObject.LoadWait(1, &d.stack)
  2402  	stateSourceObject.Load(2, &d.enabled)
  2403  }
  2404  
  2405  func (d *tcpRecoveryData) StateTypeName() string {
  2406  	return "pkg/sentry/fsimpl/proc.tcpRecoveryData"
  2407  }
  2408  
  2409  func (d *tcpRecoveryData) StateFields() []string {
  2410  	return []string{
  2411  		"DynamicBytesFile",
  2412  		"stack",
  2413  	}
  2414  }
  2415  
  2416  func (d *tcpRecoveryData) beforeSave() {}
  2417  
  2418  // +checklocksignore
  2419  func (d *tcpRecoveryData) StateSave(stateSinkObject state.Sink) {
  2420  	d.beforeSave()
  2421  	stateSinkObject.Save(0, &d.DynamicBytesFile)
  2422  	stateSinkObject.Save(1, &d.stack)
  2423  }
  2424  
  2425  func (d *tcpRecoveryData) afterLoad() {}
  2426  
  2427  // +checklocksignore
  2428  func (d *tcpRecoveryData) StateLoad(stateSourceObject state.Source) {
  2429  	stateSourceObject.Load(0, &d.DynamicBytesFile)
  2430  	stateSourceObject.LoadWait(1, &d.stack)
  2431  }
  2432  
  2433  func (d *tcpMemData) StateTypeName() string {
  2434  	return "pkg/sentry/fsimpl/proc.tcpMemData"
  2435  }
  2436  
  2437  func (d *tcpMemData) StateFields() []string {
  2438  	return []string{
  2439  		"DynamicBytesFile",
  2440  		"dir",
  2441  		"stack",
  2442  	}
  2443  }
  2444  
  2445  func (d *tcpMemData) beforeSave() {}
  2446  
  2447  // +checklocksignore
  2448  func (d *tcpMemData) StateSave(stateSinkObject state.Sink) {
  2449  	d.beforeSave()
  2450  	stateSinkObject.Save(0, &d.DynamicBytesFile)
  2451  	stateSinkObject.Save(1, &d.dir)
  2452  	stateSinkObject.Save(2, &d.stack)
  2453  }
  2454  
  2455  func (d *tcpMemData) afterLoad() {}
  2456  
  2457  // +checklocksignore
  2458  func (d *tcpMemData) StateLoad(stateSourceObject state.Source) {
  2459  	stateSourceObject.Load(0, &d.DynamicBytesFile)
  2460  	stateSourceObject.Load(1, &d.dir)
  2461  	stateSourceObject.LoadWait(2, &d.stack)
  2462  }
  2463  
  2464  func (ipf *ipForwarding) StateTypeName() string {
  2465  	return "pkg/sentry/fsimpl/proc.ipForwarding"
  2466  }
  2467  
  2468  func (ipf *ipForwarding) StateFields() []string {
  2469  	return []string{
  2470  		"DynamicBytesFile",
  2471  		"stack",
  2472  		"enabled",
  2473  	}
  2474  }
  2475  
  2476  func (ipf *ipForwarding) beforeSave() {}
  2477  
  2478  // +checklocksignore
  2479  func (ipf *ipForwarding) StateSave(stateSinkObject state.Sink) {
  2480  	ipf.beforeSave()
  2481  	stateSinkObject.Save(0, &ipf.DynamicBytesFile)
  2482  	stateSinkObject.Save(1, &ipf.stack)
  2483  	stateSinkObject.Save(2, &ipf.enabled)
  2484  }
  2485  
  2486  func (ipf *ipForwarding) afterLoad() {}
  2487  
  2488  // +checklocksignore
  2489  func (ipf *ipForwarding) StateLoad(stateSourceObject state.Source) {
  2490  	stateSourceObject.Load(0, &ipf.DynamicBytesFile)
  2491  	stateSourceObject.LoadWait(1, &ipf.stack)
  2492  	stateSourceObject.Load(2, &ipf.enabled)
  2493  }
  2494  
  2495  func (pr *portRange) StateTypeName() string {
  2496  	return "pkg/sentry/fsimpl/proc.portRange"
  2497  }
  2498  
  2499  func (pr *portRange) StateFields() []string {
  2500  	return []string{
  2501  		"DynamicBytesFile",
  2502  		"stack",
  2503  		"start",
  2504  		"end",
  2505  	}
  2506  }
  2507  
  2508  func (pr *portRange) beforeSave() {}
  2509  
  2510  // +checklocksignore
  2511  func (pr *portRange) StateSave(stateSinkObject state.Sink) {
  2512  	pr.beforeSave()
  2513  	stateSinkObject.Save(0, &pr.DynamicBytesFile)
  2514  	stateSinkObject.Save(1, &pr.stack)
  2515  	stateSinkObject.Save(2, &pr.start)
  2516  	stateSinkObject.Save(3, &pr.end)
  2517  }
  2518  
  2519  func (pr *portRange) afterLoad() {}
  2520  
  2521  // +checklocksignore
  2522  func (pr *portRange) StateLoad(stateSourceObject state.Source) {
  2523  	stateSourceObject.Load(0, &pr.DynamicBytesFile)
  2524  	stateSourceObject.LoadWait(1, &pr.stack)
  2525  	stateSourceObject.Load(2, &pr.start)
  2526  	stateSourceObject.Load(3, &pr.end)
  2527  }
  2528  
  2529  func (s *yamaPtraceScope) StateTypeName() string {
  2530  	return "pkg/sentry/fsimpl/proc.yamaPtraceScope"
  2531  }
  2532  
  2533  func (s *yamaPtraceScope) StateFields() []string {
  2534  	return []string{
  2535  		"DynamicBytesFile",
  2536  		"level",
  2537  	}
  2538  }
  2539  
  2540  func (s *yamaPtraceScope) beforeSave() {}
  2541  
  2542  // +checklocksignore
  2543  func (s *yamaPtraceScope) StateSave(stateSinkObject state.Sink) {
  2544  	s.beforeSave()
  2545  	stateSinkObject.Save(0, &s.DynamicBytesFile)
  2546  	stateSinkObject.Save(1, &s.level)
  2547  }
  2548  
  2549  func (s *yamaPtraceScope) afterLoad() {}
  2550  
  2551  // +checklocksignore
  2552  func (s *yamaPtraceScope) StateLoad(stateSourceObject state.Source) {
  2553  	stateSourceObject.Load(0, &s.DynamicBytesFile)
  2554  	stateSourceObject.Load(1, &s.level)
  2555  }
  2556  
  2557  func init() {
  2558  	state.Register((*fdDirInodeRefs)(nil))
  2559  	state.Register((*fdInfoDirInodeRefs)(nil))
  2560  	state.Register((*FilesystemType)(nil))
  2561  	state.Register((*filesystem)(nil))
  2562  	state.Register((*staticFile)(nil))
  2563  	state.Register((*InternalData)(nil))
  2564  	state.Register((*implStatFS)(nil))
  2565  	state.Register((*subtasksInode)(nil))
  2566  	state.Register((*subtasksFD)(nil))
  2567  	state.Register((*subtasksInodeRefs)(nil))
  2568  	state.Register((*taskInode)(nil))
  2569  	state.Register((*taskOwnedInode)(nil))
  2570  	state.Register((*fdDir)(nil))
  2571  	state.Register((*fdDirInode)(nil))
  2572  	state.Register((*fdSymlink)(nil))
  2573  	state.Register((*fdInfoDirInode)(nil))
  2574  	state.Register((*fdInfoData)(nil))
  2575  	state.Register((*auxvData)(nil))
  2576  	state.Register((*metadataData)(nil))
  2577  	state.Register((*commInode)(nil))
  2578  	state.Register((*commData)(nil))
  2579  	state.Register((*idMapData)(nil))
  2580  	state.Register((*memInode)(nil))
  2581  	state.Register((*memFD)(nil))
  2582  	state.Register((*limitsData)(nil))
  2583  	state.Register((*mapsData)(nil))
  2584  	state.Register((*smapsData)(nil))
  2585  	state.Register((*taskStatData)(nil))
  2586  	state.Register((*statmData)(nil))
  2587  	state.Register((*statusInode)(nil))
  2588  	state.Register((*statusFD)(nil))
  2589  	state.Register((*statusFDLowerBase)(nil))
  2590  	state.Register((*ioData)(nil))
  2591  	state.Register((*oomScoreAdj)(nil))
  2592  	state.Register((*exeSymlink)(nil))
  2593  	state.Register((*cwdSymlink)(nil))
  2594  	state.Register((*rootSymlink)(nil))
  2595  	state.Register((*mountInfoData)(nil))
  2596  	state.Register((*mountsData)(nil))
  2597  	state.Register((*namespaceSymlink)(nil))
  2598  	state.Register((*namespaceInode)(nil))
  2599  	state.Register((*namespaceFD)(nil))
  2600  	state.Register((*taskCgroupData)(nil))
  2601  	state.Register((*taskInodeRefs)(nil))
  2602  	state.Register((*ifinet6)(nil))
  2603  	state.Register((*netDevData)(nil))
  2604  	state.Register((*netUnixData)(nil))
  2605  	state.Register((*netTCPData)(nil))
  2606  	state.Register((*netTCP6Data)(nil))
  2607  	state.Register((*netUDPData)(nil))
  2608  	state.Register((*netSnmpData)(nil))
  2609  	state.Register((*snmpLine)(nil))
  2610  	state.Register((*netRouteData)(nil))
  2611  	state.Register((*netStatData)(nil))
  2612  	state.Register((*tasksInode)(nil))
  2613  	state.Register((*staticFileSetStat)(nil))
  2614  	state.Register((*selfSymlink)(nil))
  2615  	state.Register((*threadSelfSymlink)(nil))
  2616  	state.Register((*dynamicBytesFileSetAttr)(nil))
  2617  	state.Register((*cpuStats)(nil))
  2618  	state.Register((*statData)(nil))
  2619  	state.Register((*loadavgData)(nil))
  2620  	state.Register((*meminfoData)(nil))
  2621  	state.Register((*uptimeData)(nil))
  2622  	state.Register((*versionData)(nil))
  2623  	state.Register((*filesystemsData)(nil))
  2624  	state.Register((*cgroupsData)(nil))
  2625  	state.Register((*cmdLineData)(nil))
  2626  	state.Register((*sentryMeminfoData)(nil))
  2627  	state.Register((*tasksInodeRefs)(nil))
  2628  	state.Register((*tcpMemDir)(nil))
  2629  	state.Register((*mmapMinAddrData)(nil))
  2630  	state.Register((*hostnameData)(nil))
  2631  	state.Register((*tcpSackData)(nil))
  2632  	state.Register((*tcpRecoveryData)(nil))
  2633  	state.Register((*tcpMemData)(nil))
  2634  	state.Register((*ipForwarding)(nil))
  2635  	state.Register((*portRange)(nil))
  2636  	state.Register((*yamaPtraceScope)(nil))
  2637  }