github.com/MerlinKodo/gvisor@v0.0.0-20231110090155-957f62ecf90e/pkg/sentry/fsimpl/proc/proc_state_autogen.go (about)

     1  // automatically generated by stateify.
     2  
     3  package proc
     4  
     5  import (
     6  	"github.com/MerlinKodo/gvisor/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 (d *childrenData) StateTypeName() string {
  1506  	return "pkg/sentry/fsimpl/proc.childrenData"
  1507  }
  1508  
  1509  func (d *childrenData) StateFields() []string {
  1510  	return []string{
  1511  		"DynamicBytesFile",
  1512  		"task",
  1513  		"pidns",
  1514  	}
  1515  }
  1516  
  1517  func (d *childrenData) beforeSave() {}
  1518  
  1519  // +checklocksignore
  1520  func (d *childrenData) StateSave(stateSinkObject state.Sink) {
  1521  	d.beforeSave()
  1522  	stateSinkObject.Save(0, &d.DynamicBytesFile)
  1523  	stateSinkObject.Save(1, &d.task)
  1524  	stateSinkObject.Save(2, &d.pidns)
  1525  }
  1526  
  1527  func (d *childrenData) afterLoad() {}
  1528  
  1529  // +checklocksignore
  1530  func (d *childrenData) StateLoad(stateSourceObject state.Source) {
  1531  	stateSourceObject.Load(0, &d.DynamicBytesFile)
  1532  	stateSourceObject.Load(1, &d.task)
  1533  	stateSourceObject.Load(2, &d.pidns)
  1534  }
  1535  
  1536  func (r *taskInodeRefs) StateTypeName() string {
  1537  	return "pkg/sentry/fsimpl/proc.taskInodeRefs"
  1538  }
  1539  
  1540  func (r *taskInodeRefs) StateFields() []string {
  1541  	return []string{
  1542  		"refCount",
  1543  	}
  1544  }
  1545  
  1546  func (r *taskInodeRefs) beforeSave() {}
  1547  
  1548  // +checklocksignore
  1549  func (r *taskInodeRefs) StateSave(stateSinkObject state.Sink) {
  1550  	r.beforeSave()
  1551  	stateSinkObject.Save(0, &r.refCount)
  1552  }
  1553  
  1554  // +checklocksignore
  1555  func (r *taskInodeRefs) StateLoad(stateSourceObject state.Source) {
  1556  	stateSourceObject.Load(0, &r.refCount)
  1557  	stateSourceObject.AfterLoad(r.afterLoad)
  1558  }
  1559  
  1560  func (n *ifinet6) StateTypeName() string {
  1561  	return "pkg/sentry/fsimpl/proc.ifinet6"
  1562  }
  1563  
  1564  func (n *ifinet6) StateFields() []string {
  1565  	return []string{
  1566  		"DynamicBytesFile",
  1567  		"stack",
  1568  	}
  1569  }
  1570  
  1571  func (n *ifinet6) beforeSave() {}
  1572  
  1573  // +checklocksignore
  1574  func (n *ifinet6) StateSave(stateSinkObject state.Sink) {
  1575  	n.beforeSave()
  1576  	stateSinkObject.Save(0, &n.DynamicBytesFile)
  1577  	stateSinkObject.Save(1, &n.stack)
  1578  }
  1579  
  1580  func (n *ifinet6) afterLoad() {}
  1581  
  1582  // +checklocksignore
  1583  func (n *ifinet6) StateLoad(stateSourceObject state.Source) {
  1584  	stateSourceObject.Load(0, &n.DynamicBytesFile)
  1585  	stateSourceObject.Load(1, &n.stack)
  1586  }
  1587  
  1588  func (n *netDevData) StateTypeName() string {
  1589  	return "pkg/sentry/fsimpl/proc.netDevData"
  1590  }
  1591  
  1592  func (n *netDevData) StateFields() []string {
  1593  	return []string{
  1594  		"DynamicBytesFile",
  1595  		"stack",
  1596  	}
  1597  }
  1598  
  1599  func (n *netDevData) beforeSave() {}
  1600  
  1601  // +checklocksignore
  1602  func (n *netDevData) StateSave(stateSinkObject state.Sink) {
  1603  	n.beforeSave()
  1604  	stateSinkObject.Save(0, &n.DynamicBytesFile)
  1605  	stateSinkObject.Save(1, &n.stack)
  1606  }
  1607  
  1608  func (n *netDevData) afterLoad() {}
  1609  
  1610  // +checklocksignore
  1611  func (n *netDevData) StateLoad(stateSourceObject state.Source) {
  1612  	stateSourceObject.Load(0, &n.DynamicBytesFile)
  1613  	stateSourceObject.Load(1, &n.stack)
  1614  }
  1615  
  1616  func (n *netUnixData) StateTypeName() string {
  1617  	return "pkg/sentry/fsimpl/proc.netUnixData"
  1618  }
  1619  
  1620  func (n *netUnixData) StateFields() []string {
  1621  	return []string{
  1622  		"DynamicBytesFile",
  1623  		"kernel",
  1624  	}
  1625  }
  1626  
  1627  func (n *netUnixData) beforeSave() {}
  1628  
  1629  // +checklocksignore
  1630  func (n *netUnixData) StateSave(stateSinkObject state.Sink) {
  1631  	n.beforeSave()
  1632  	stateSinkObject.Save(0, &n.DynamicBytesFile)
  1633  	stateSinkObject.Save(1, &n.kernel)
  1634  }
  1635  
  1636  func (n *netUnixData) afterLoad() {}
  1637  
  1638  // +checklocksignore
  1639  func (n *netUnixData) StateLoad(stateSourceObject state.Source) {
  1640  	stateSourceObject.Load(0, &n.DynamicBytesFile)
  1641  	stateSourceObject.Load(1, &n.kernel)
  1642  }
  1643  
  1644  func (d *netTCPData) StateTypeName() string {
  1645  	return "pkg/sentry/fsimpl/proc.netTCPData"
  1646  }
  1647  
  1648  func (d *netTCPData) StateFields() []string {
  1649  	return []string{
  1650  		"DynamicBytesFile",
  1651  		"kernel",
  1652  	}
  1653  }
  1654  
  1655  func (d *netTCPData) beforeSave() {}
  1656  
  1657  // +checklocksignore
  1658  func (d *netTCPData) StateSave(stateSinkObject state.Sink) {
  1659  	d.beforeSave()
  1660  	stateSinkObject.Save(0, &d.DynamicBytesFile)
  1661  	stateSinkObject.Save(1, &d.kernel)
  1662  }
  1663  
  1664  func (d *netTCPData) afterLoad() {}
  1665  
  1666  // +checklocksignore
  1667  func (d *netTCPData) StateLoad(stateSourceObject state.Source) {
  1668  	stateSourceObject.Load(0, &d.DynamicBytesFile)
  1669  	stateSourceObject.Load(1, &d.kernel)
  1670  }
  1671  
  1672  func (d *netTCP6Data) StateTypeName() string {
  1673  	return "pkg/sentry/fsimpl/proc.netTCP6Data"
  1674  }
  1675  
  1676  func (d *netTCP6Data) StateFields() []string {
  1677  	return []string{
  1678  		"DynamicBytesFile",
  1679  		"kernel",
  1680  	}
  1681  }
  1682  
  1683  func (d *netTCP6Data) beforeSave() {}
  1684  
  1685  // +checklocksignore
  1686  func (d *netTCP6Data) StateSave(stateSinkObject state.Sink) {
  1687  	d.beforeSave()
  1688  	stateSinkObject.Save(0, &d.DynamicBytesFile)
  1689  	stateSinkObject.Save(1, &d.kernel)
  1690  }
  1691  
  1692  func (d *netTCP6Data) afterLoad() {}
  1693  
  1694  // +checklocksignore
  1695  func (d *netTCP6Data) StateLoad(stateSourceObject state.Source) {
  1696  	stateSourceObject.Load(0, &d.DynamicBytesFile)
  1697  	stateSourceObject.Load(1, &d.kernel)
  1698  }
  1699  
  1700  func (d *netUDPData) StateTypeName() string {
  1701  	return "pkg/sentry/fsimpl/proc.netUDPData"
  1702  }
  1703  
  1704  func (d *netUDPData) StateFields() []string {
  1705  	return []string{
  1706  		"DynamicBytesFile",
  1707  		"kernel",
  1708  	}
  1709  }
  1710  
  1711  func (d *netUDPData) beforeSave() {}
  1712  
  1713  // +checklocksignore
  1714  func (d *netUDPData) StateSave(stateSinkObject state.Sink) {
  1715  	d.beforeSave()
  1716  	stateSinkObject.Save(0, &d.DynamicBytesFile)
  1717  	stateSinkObject.Save(1, &d.kernel)
  1718  }
  1719  
  1720  func (d *netUDPData) afterLoad() {}
  1721  
  1722  // +checklocksignore
  1723  func (d *netUDPData) StateLoad(stateSourceObject state.Source) {
  1724  	stateSourceObject.Load(0, &d.DynamicBytesFile)
  1725  	stateSourceObject.Load(1, &d.kernel)
  1726  }
  1727  
  1728  func (d *netSnmpData) StateTypeName() string {
  1729  	return "pkg/sentry/fsimpl/proc.netSnmpData"
  1730  }
  1731  
  1732  func (d *netSnmpData) StateFields() []string {
  1733  	return []string{
  1734  		"DynamicBytesFile",
  1735  		"stack",
  1736  	}
  1737  }
  1738  
  1739  func (d *netSnmpData) beforeSave() {}
  1740  
  1741  // +checklocksignore
  1742  func (d *netSnmpData) StateSave(stateSinkObject state.Sink) {
  1743  	d.beforeSave()
  1744  	stateSinkObject.Save(0, &d.DynamicBytesFile)
  1745  	stateSinkObject.Save(1, &d.stack)
  1746  }
  1747  
  1748  func (d *netSnmpData) afterLoad() {}
  1749  
  1750  // +checklocksignore
  1751  func (d *netSnmpData) StateLoad(stateSourceObject state.Source) {
  1752  	stateSourceObject.Load(0, &d.DynamicBytesFile)
  1753  	stateSourceObject.Load(1, &d.stack)
  1754  }
  1755  
  1756  func (s *snmpLine) StateTypeName() string {
  1757  	return "pkg/sentry/fsimpl/proc.snmpLine"
  1758  }
  1759  
  1760  func (s *snmpLine) StateFields() []string {
  1761  	return []string{
  1762  		"prefix",
  1763  		"header",
  1764  	}
  1765  }
  1766  
  1767  func (s *snmpLine) beforeSave() {}
  1768  
  1769  // +checklocksignore
  1770  func (s *snmpLine) StateSave(stateSinkObject state.Sink) {
  1771  	s.beforeSave()
  1772  	stateSinkObject.Save(0, &s.prefix)
  1773  	stateSinkObject.Save(1, &s.header)
  1774  }
  1775  
  1776  func (s *snmpLine) afterLoad() {}
  1777  
  1778  // +checklocksignore
  1779  func (s *snmpLine) StateLoad(stateSourceObject state.Source) {
  1780  	stateSourceObject.Load(0, &s.prefix)
  1781  	stateSourceObject.Load(1, &s.header)
  1782  }
  1783  
  1784  func (d *netRouteData) StateTypeName() string {
  1785  	return "pkg/sentry/fsimpl/proc.netRouteData"
  1786  }
  1787  
  1788  func (d *netRouteData) StateFields() []string {
  1789  	return []string{
  1790  		"DynamicBytesFile",
  1791  		"stack",
  1792  	}
  1793  }
  1794  
  1795  func (d *netRouteData) beforeSave() {}
  1796  
  1797  // +checklocksignore
  1798  func (d *netRouteData) StateSave(stateSinkObject state.Sink) {
  1799  	d.beforeSave()
  1800  	stateSinkObject.Save(0, &d.DynamicBytesFile)
  1801  	stateSinkObject.Save(1, &d.stack)
  1802  }
  1803  
  1804  func (d *netRouteData) afterLoad() {}
  1805  
  1806  // +checklocksignore
  1807  func (d *netRouteData) StateLoad(stateSourceObject state.Source) {
  1808  	stateSourceObject.Load(0, &d.DynamicBytesFile)
  1809  	stateSourceObject.Load(1, &d.stack)
  1810  }
  1811  
  1812  func (d *netStatData) StateTypeName() string {
  1813  	return "pkg/sentry/fsimpl/proc.netStatData"
  1814  }
  1815  
  1816  func (d *netStatData) StateFields() []string {
  1817  	return []string{
  1818  		"DynamicBytesFile",
  1819  		"stack",
  1820  	}
  1821  }
  1822  
  1823  func (d *netStatData) beforeSave() {}
  1824  
  1825  // +checklocksignore
  1826  func (d *netStatData) StateSave(stateSinkObject state.Sink) {
  1827  	d.beforeSave()
  1828  	stateSinkObject.Save(0, &d.DynamicBytesFile)
  1829  	stateSinkObject.Save(1, &d.stack)
  1830  }
  1831  
  1832  func (d *netStatData) afterLoad() {}
  1833  
  1834  // +checklocksignore
  1835  func (d *netStatData) StateLoad(stateSourceObject state.Source) {
  1836  	stateSourceObject.Load(0, &d.DynamicBytesFile)
  1837  	stateSourceObject.Load(1, &d.stack)
  1838  }
  1839  
  1840  func (i *tasksInode) StateTypeName() string {
  1841  	return "pkg/sentry/fsimpl/proc.tasksInode"
  1842  }
  1843  
  1844  func (i *tasksInode) StateFields() []string {
  1845  	return []string{
  1846  		"implStatFS",
  1847  		"InodeAlwaysValid",
  1848  		"InodeAttrs",
  1849  		"InodeDirectoryNoNewChildren",
  1850  		"InodeNotAnonymous",
  1851  		"InodeNotSymlink",
  1852  		"InodeTemporary",
  1853  		"InodeWatches",
  1854  		"OrderedChildren",
  1855  		"tasksInodeRefs",
  1856  		"locks",
  1857  		"fs",
  1858  		"pidns",
  1859  		"fakeCgroupControllers",
  1860  	}
  1861  }
  1862  
  1863  func (i *tasksInode) beforeSave() {}
  1864  
  1865  // +checklocksignore
  1866  func (i *tasksInode) StateSave(stateSinkObject state.Sink) {
  1867  	i.beforeSave()
  1868  	stateSinkObject.Save(0, &i.implStatFS)
  1869  	stateSinkObject.Save(1, &i.InodeAlwaysValid)
  1870  	stateSinkObject.Save(2, &i.InodeAttrs)
  1871  	stateSinkObject.Save(3, &i.InodeDirectoryNoNewChildren)
  1872  	stateSinkObject.Save(4, &i.InodeNotAnonymous)
  1873  	stateSinkObject.Save(5, &i.InodeNotSymlink)
  1874  	stateSinkObject.Save(6, &i.InodeTemporary)
  1875  	stateSinkObject.Save(7, &i.InodeWatches)
  1876  	stateSinkObject.Save(8, &i.OrderedChildren)
  1877  	stateSinkObject.Save(9, &i.tasksInodeRefs)
  1878  	stateSinkObject.Save(10, &i.locks)
  1879  	stateSinkObject.Save(11, &i.fs)
  1880  	stateSinkObject.Save(12, &i.pidns)
  1881  	stateSinkObject.Save(13, &i.fakeCgroupControllers)
  1882  }
  1883  
  1884  func (i *tasksInode) afterLoad() {}
  1885  
  1886  // +checklocksignore
  1887  func (i *tasksInode) StateLoad(stateSourceObject state.Source) {
  1888  	stateSourceObject.Load(0, &i.implStatFS)
  1889  	stateSourceObject.Load(1, &i.InodeAlwaysValid)
  1890  	stateSourceObject.Load(2, &i.InodeAttrs)
  1891  	stateSourceObject.Load(3, &i.InodeDirectoryNoNewChildren)
  1892  	stateSourceObject.Load(4, &i.InodeNotAnonymous)
  1893  	stateSourceObject.Load(5, &i.InodeNotSymlink)
  1894  	stateSourceObject.Load(6, &i.InodeTemporary)
  1895  	stateSourceObject.Load(7, &i.InodeWatches)
  1896  	stateSourceObject.Load(8, &i.OrderedChildren)
  1897  	stateSourceObject.Load(9, &i.tasksInodeRefs)
  1898  	stateSourceObject.Load(10, &i.locks)
  1899  	stateSourceObject.Load(11, &i.fs)
  1900  	stateSourceObject.Load(12, &i.pidns)
  1901  	stateSourceObject.Load(13, &i.fakeCgroupControllers)
  1902  }
  1903  
  1904  func (s *staticFileSetStat) StateTypeName() string {
  1905  	return "pkg/sentry/fsimpl/proc.staticFileSetStat"
  1906  }
  1907  
  1908  func (s *staticFileSetStat) StateFields() []string {
  1909  	return []string{
  1910  		"dynamicBytesFileSetAttr",
  1911  		"StaticData",
  1912  	}
  1913  }
  1914  
  1915  func (s *staticFileSetStat) beforeSave() {}
  1916  
  1917  // +checklocksignore
  1918  func (s *staticFileSetStat) StateSave(stateSinkObject state.Sink) {
  1919  	s.beforeSave()
  1920  	stateSinkObject.Save(0, &s.dynamicBytesFileSetAttr)
  1921  	stateSinkObject.Save(1, &s.StaticData)
  1922  }
  1923  
  1924  func (s *staticFileSetStat) afterLoad() {}
  1925  
  1926  // +checklocksignore
  1927  func (s *staticFileSetStat) StateLoad(stateSourceObject state.Source) {
  1928  	stateSourceObject.Load(0, &s.dynamicBytesFileSetAttr)
  1929  	stateSourceObject.Load(1, &s.StaticData)
  1930  }
  1931  
  1932  func (s *selfSymlink) StateTypeName() string {
  1933  	return "pkg/sentry/fsimpl/proc.selfSymlink"
  1934  }
  1935  
  1936  func (s *selfSymlink) StateFields() []string {
  1937  	return []string{
  1938  		"implStatFS",
  1939  		"InodeAttrs",
  1940  		"InodeNoopRefCount",
  1941  		"InodeNotAnonymous",
  1942  		"InodeSymlink",
  1943  		"InodeWatches",
  1944  		"pidns",
  1945  	}
  1946  }
  1947  
  1948  func (s *selfSymlink) beforeSave() {}
  1949  
  1950  // +checklocksignore
  1951  func (s *selfSymlink) StateSave(stateSinkObject state.Sink) {
  1952  	s.beforeSave()
  1953  	stateSinkObject.Save(0, &s.implStatFS)
  1954  	stateSinkObject.Save(1, &s.InodeAttrs)
  1955  	stateSinkObject.Save(2, &s.InodeNoopRefCount)
  1956  	stateSinkObject.Save(3, &s.InodeNotAnonymous)
  1957  	stateSinkObject.Save(4, &s.InodeSymlink)
  1958  	stateSinkObject.Save(5, &s.InodeWatches)
  1959  	stateSinkObject.Save(6, &s.pidns)
  1960  }
  1961  
  1962  func (s *selfSymlink) afterLoad() {}
  1963  
  1964  // +checklocksignore
  1965  func (s *selfSymlink) StateLoad(stateSourceObject state.Source) {
  1966  	stateSourceObject.Load(0, &s.implStatFS)
  1967  	stateSourceObject.Load(1, &s.InodeAttrs)
  1968  	stateSourceObject.Load(2, &s.InodeNoopRefCount)
  1969  	stateSourceObject.Load(3, &s.InodeNotAnonymous)
  1970  	stateSourceObject.Load(4, &s.InodeSymlink)
  1971  	stateSourceObject.Load(5, &s.InodeWatches)
  1972  	stateSourceObject.Load(6, &s.pidns)
  1973  }
  1974  
  1975  func (s *threadSelfSymlink) StateTypeName() string {
  1976  	return "pkg/sentry/fsimpl/proc.threadSelfSymlink"
  1977  }
  1978  
  1979  func (s *threadSelfSymlink) StateFields() []string {
  1980  	return []string{
  1981  		"implStatFS",
  1982  		"InodeAttrs",
  1983  		"InodeNoopRefCount",
  1984  		"InodeNotAnonymous",
  1985  		"InodeSymlink",
  1986  		"InodeWatches",
  1987  		"pidns",
  1988  	}
  1989  }
  1990  
  1991  func (s *threadSelfSymlink) beforeSave() {}
  1992  
  1993  // +checklocksignore
  1994  func (s *threadSelfSymlink) StateSave(stateSinkObject state.Sink) {
  1995  	s.beforeSave()
  1996  	stateSinkObject.Save(0, &s.implStatFS)
  1997  	stateSinkObject.Save(1, &s.InodeAttrs)
  1998  	stateSinkObject.Save(2, &s.InodeNoopRefCount)
  1999  	stateSinkObject.Save(3, &s.InodeNotAnonymous)
  2000  	stateSinkObject.Save(4, &s.InodeSymlink)
  2001  	stateSinkObject.Save(5, &s.InodeWatches)
  2002  	stateSinkObject.Save(6, &s.pidns)
  2003  }
  2004  
  2005  func (s *threadSelfSymlink) afterLoad() {}
  2006  
  2007  // +checklocksignore
  2008  func (s *threadSelfSymlink) StateLoad(stateSourceObject state.Source) {
  2009  	stateSourceObject.Load(0, &s.implStatFS)
  2010  	stateSourceObject.Load(1, &s.InodeAttrs)
  2011  	stateSourceObject.Load(2, &s.InodeNoopRefCount)
  2012  	stateSourceObject.Load(3, &s.InodeNotAnonymous)
  2013  	stateSourceObject.Load(4, &s.InodeSymlink)
  2014  	stateSourceObject.Load(5, &s.InodeWatches)
  2015  	stateSourceObject.Load(6, &s.pidns)
  2016  }
  2017  
  2018  func (d *dynamicBytesFileSetAttr) StateTypeName() string {
  2019  	return "pkg/sentry/fsimpl/proc.dynamicBytesFileSetAttr"
  2020  }
  2021  
  2022  func (d *dynamicBytesFileSetAttr) StateFields() []string {
  2023  	return []string{
  2024  		"DynamicBytesFile",
  2025  	}
  2026  }
  2027  
  2028  func (d *dynamicBytesFileSetAttr) beforeSave() {}
  2029  
  2030  // +checklocksignore
  2031  func (d *dynamicBytesFileSetAttr) StateSave(stateSinkObject state.Sink) {
  2032  	d.beforeSave()
  2033  	stateSinkObject.Save(0, &d.DynamicBytesFile)
  2034  }
  2035  
  2036  func (d *dynamicBytesFileSetAttr) afterLoad() {}
  2037  
  2038  // +checklocksignore
  2039  func (d *dynamicBytesFileSetAttr) StateLoad(stateSourceObject state.Source) {
  2040  	stateSourceObject.Load(0, &d.DynamicBytesFile)
  2041  }
  2042  
  2043  func (c *cpuStats) StateTypeName() string {
  2044  	return "pkg/sentry/fsimpl/proc.cpuStats"
  2045  }
  2046  
  2047  func (c *cpuStats) StateFields() []string {
  2048  	return []string{
  2049  		"user",
  2050  		"nice",
  2051  		"system",
  2052  		"idle",
  2053  		"ioWait",
  2054  		"irq",
  2055  		"softirq",
  2056  		"steal",
  2057  		"guest",
  2058  		"guestNice",
  2059  	}
  2060  }
  2061  
  2062  func (c *cpuStats) beforeSave() {}
  2063  
  2064  // +checklocksignore
  2065  func (c *cpuStats) StateSave(stateSinkObject state.Sink) {
  2066  	c.beforeSave()
  2067  	stateSinkObject.Save(0, &c.user)
  2068  	stateSinkObject.Save(1, &c.nice)
  2069  	stateSinkObject.Save(2, &c.system)
  2070  	stateSinkObject.Save(3, &c.idle)
  2071  	stateSinkObject.Save(4, &c.ioWait)
  2072  	stateSinkObject.Save(5, &c.irq)
  2073  	stateSinkObject.Save(6, &c.softirq)
  2074  	stateSinkObject.Save(7, &c.steal)
  2075  	stateSinkObject.Save(8, &c.guest)
  2076  	stateSinkObject.Save(9, &c.guestNice)
  2077  }
  2078  
  2079  func (c *cpuStats) afterLoad() {}
  2080  
  2081  // +checklocksignore
  2082  func (c *cpuStats) StateLoad(stateSourceObject state.Source) {
  2083  	stateSourceObject.Load(0, &c.user)
  2084  	stateSourceObject.Load(1, &c.nice)
  2085  	stateSourceObject.Load(2, &c.system)
  2086  	stateSourceObject.Load(3, &c.idle)
  2087  	stateSourceObject.Load(4, &c.ioWait)
  2088  	stateSourceObject.Load(5, &c.irq)
  2089  	stateSourceObject.Load(6, &c.softirq)
  2090  	stateSourceObject.Load(7, &c.steal)
  2091  	stateSourceObject.Load(8, &c.guest)
  2092  	stateSourceObject.Load(9, &c.guestNice)
  2093  }
  2094  
  2095  func (s *statData) StateTypeName() string {
  2096  	return "pkg/sentry/fsimpl/proc.statData"
  2097  }
  2098  
  2099  func (s *statData) StateFields() []string {
  2100  	return []string{
  2101  		"dynamicBytesFileSetAttr",
  2102  	}
  2103  }
  2104  
  2105  func (s *statData) beforeSave() {}
  2106  
  2107  // +checklocksignore
  2108  func (s *statData) StateSave(stateSinkObject state.Sink) {
  2109  	s.beforeSave()
  2110  	stateSinkObject.Save(0, &s.dynamicBytesFileSetAttr)
  2111  }
  2112  
  2113  func (s *statData) afterLoad() {}
  2114  
  2115  // +checklocksignore
  2116  func (s *statData) StateLoad(stateSourceObject state.Source) {
  2117  	stateSourceObject.Load(0, &s.dynamicBytesFileSetAttr)
  2118  }
  2119  
  2120  func (l *loadavgData) StateTypeName() string {
  2121  	return "pkg/sentry/fsimpl/proc.loadavgData"
  2122  }
  2123  
  2124  func (l *loadavgData) StateFields() []string {
  2125  	return []string{
  2126  		"dynamicBytesFileSetAttr",
  2127  	}
  2128  }
  2129  
  2130  func (l *loadavgData) beforeSave() {}
  2131  
  2132  // +checklocksignore
  2133  func (l *loadavgData) StateSave(stateSinkObject state.Sink) {
  2134  	l.beforeSave()
  2135  	stateSinkObject.Save(0, &l.dynamicBytesFileSetAttr)
  2136  }
  2137  
  2138  func (l *loadavgData) afterLoad() {}
  2139  
  2140  // +checklocksignore
  2141  func (l *loadavgData) StateLoad(stateSourceObject state.Source) {
  2142  	stateSourceObject.Load(0, &l.dynamicBytesFileSetAttr)
  2143  }
  2144  
  2145  func (m *meminfoData) StateTypeName() string {
  2146  	return "pkg/sentry/fsimpl/proc.meminfoData"
  2147  }
  2148  
  2149  func (m *meminfoData) StateFields() []string {
  2150  	return []string{
  2151  		"dynamicBytesFileSetAttr",
  2152  	}
  2153  }
  2154  
  2155  func (m *meminfoData) beforeSave() {}
  2156  
  2157  // +checklocksignore
  2158  func (m *meminfoData) StateSave(stateSinkObject state.Sink) {
  2159  	m.beforeSave()
  2160  	stateSinkObject.Save(0, &m.dynamicBytesFileSetAttr)
  2161  }
  2162  
  2163  func (m *meminfoData) afterLoad() {}
  2164  
  2165  // +checklocksignore
  2166  func (m *meminfoData) StateLoad(stateSourceObject state.Source) {
  2167  	stateSourceObject.Load(0, &m.dynamicBytesFileSetAttr)
  2168  }
  2169  
  2170  func (u *uptimeData) StateTypeName() string {
  2171  	return "pkg/sentry/fsimpl/proc.uptimeData"
  2172  }
  2173  
  2174  func (u *uptimeData) StateFields() []string {
  2175  	return []string{
  2176  		"dynamicBytesFileSetAttr",
  2177  	}
  2178  }
  2179  
  2180  func (u *uptimeData) beforeSave() {}
  2181  
  2182  // +checklocksignore
  2183  func (u *uptimeData) StateSave(stateSinkObject state.Sink) {
  2184  	u.beforeSave()
  2185  	stateSinkObject.Save(0, &u.dynamicBytesFileSetAttr)
  2186  }
  2187  
  2188  func (u *uptimeData) afterLoad() {}
  2189  
  2190  // +checklocksignore
  2191  func (u *uptimeData) StateLoad(stateSourceObject state.Source) {
  2192  	stateSourceObject.Load(0, &u.dynamicBytesFileSetAttr)
  2193  }
  2194  
  2195  func (v *versionData) StateTypeName() string {
  2196  	return "pkg/sentry/fsimpl/proc.versionData"
  2197  }
  2198  
  2199  func (v *versionData) StateFields() []string {
  2200  	return []string{
  2201  		"dynamicBytesFileSetAttr",
  2202  	}
  2203  }
  2204  
  2205  func (v *versionData) beforeSave() {}
  2206  
  2207  // +checklocksignore
  2208  func (v *versionData) StateSave(stateSinkObject state.Sink) {
  2209  	v.beforeSave()
  2210  	stateSinkObject.Save(0, &v.dynamicBytesFileSetAttr)
  2211  }
  2212  
  2213  func (v *versionData) afterLoad() {}
  2214  
  2215  // +checklocksignore
  2216  func (v *versionData) StateLoad(stateSourceObject state.Source) {
  2217  	stateSourceObject.Load(0, &v.dynamicBytesFileSetAttr)
  2218  }
  2219  
  2220  func (d *filesystemsData) StateTypeName() string {
  2221  	return "pkg/sentry/fsimpl/proc.filesystemsData"
  2222  }
  2223  
  2224  func (d *filesystemsData) StateFields() []string {
  2225  	return []string{
  2226  		"DynamicBytesFile",
  2227  	}
  2228  }
  2229  
  2230  func (d *filesystemsData) beforeSave() {}
  2231  
  2232  // +checklocksignore
  2233  func (d *filesystemsData) StateSave(stateSinkObject state.Sink) {
  2234  	d.beforeSave()
  2235  	stateSinkObject.Save(0, &d.DynamicBytesFile)
  2236  }
  2237  
  2238  func (d *filesystemsData) afterLoad() {}
  2239  
  2240  // +checklocksignore
  2241  func (d *filesystemsData) StateLoad(stateSourceObject state.Source) {
  2242  	stateSourceObject.Load(0, &d.DynamicBytesFile)
  2243  }
  2244  
  2245  func (c *cgroupsData) StateTypeName() string {
  2246  	return "pkg/sentry/fsimpl/proc.cgroupsData"
  2247  }
  2248  
  2249  func (c *cgroupsData) StateFields() []string {
  2250  	return []string{
  2251  		"dynamicBytesFileSetAttr",
  2252  	}
  2253  }
  2254  
  2255  func (c *cgroupsData) beforeSave() {}
  2256  
  2257  // +checklocksignore
  2258  func (c *cgroupsData) StateSave(stateSinkObject state.Sink) {
  2259  	c.beforeSave()
  2260  	stateSinkObject.Save(0, &c.dynamicBytesFileSetAttr)
  2261  }
  2262  
  2263  func (c *cgroupsData) afterLoad() {}
  2264  
  2265  // +checklocksignore
  2266  func (c *cgroupsData) StateLoad(stateSourceObject state.Source) {
  2267  	stateSourceObject.Load(0, &c.dynamicBytesFileSetAttr)
  2268  }
  2269  
  2270  func (c *cmdLineData) StateTypeName() string {
  2271  	return "pkg/sentry/fsimpl/proc.cmdLineData"
  2272  }
  2273  
  2274  func (c *cmdLineData) StateFields() []string {
  2275  	return []string{
  2276  		"dynamicBytesFileSetAttr",
  2277  	}
  2278  }
  2279  
  2280  func (c *cmdLineData) beforeSave() {}
  2281  
  2282  // +checklocksignore
  2283  func (c *cmdLineData) StateSave(stateSinkObject state.Sink) {
  2284  	c.beforeSave()
  2285  	stateSinkObject.Save(0, &c.dynamicBytesFileSetAttr)
  2286  }
  2287  
  2288  func (c *cmdLineData) afterLoad() {}
  2289  
  2290  // +checklocksignore
  2291  func (c *cmdLineData) StateLoad(stateSourceObject state.Source) {
  2292  	stateSourceObject.Load(0, &c.dynamicBytesFileSetAttr)
  2293  }
  2294  
  2295  func (s *sentryMeminfoData) StateTypeName() string {
  2296  	return "pkg/sentry/fsimpl/proc.sentryMeminfoData"
  2297  }
  2298  
  2299  func (s *sentryMeminfoData) StateFields() []string {
  2300  	return []string{
  2301  		"dynamicBytesFileSetAttr",
  2302  	}
  2303  }
  2304  
  2305  func (s *sentryMeminfoData) beforeSave() {}
  2306  
  2307  // +checklocksignore
  2308  func (s *sentryMeminfoData) StateSave(stateSinkObject state.Sink) {
  2309  	s.beforeSave()
  2310  	stateSinkObject.Save(0, &s.dynamicBytesFileSetAttr)
  2311  }
  2312  
  2313  func (s *sentryMeminfoData) afterLoad() {}
  2314  
  2315  // +checklocksignore
  2316  func (s *sentryMeminfoData) StateLoad(stateSourceObject state.Source) {
  2317  	stateSourceObject.Load(0, &s.dynamicBytesFileSetAttr)
  2318  }
  2319  
  2320  func (r *tasksInodeRefs) StateTypeName() string {
  2321  	return "pkg/sentry/fsimpl/proc.tasksInodeRefs"
  2322  }
  2323  
  2324  func (r *tasksInodeRefs) StateFields() []string {
  2325  	return []string{
  2326  		"refCount",
  2327  	}
  2328  }
  2329  
  2330  func (r *tasksInodeRefs) beforeSave() {}
  2331  
  2332  // +checklocksignore
  2333  func (r *tasksInodeRefs) StateSave(stateSinkObject state.Sink) {
  2334  	r.beforeSave()
  2335  	stateSinkObject.Save(0, &r.refCount)
  2336  }
  2337  
  2338  // +checklocksignore
  2339  func (r *tasksInodeRefs) StateLoad(stateSourceObject state.Source) {
  2340  	stateSourceObject.Load(0, &r.refCount)
  2341  	stateSourceObject.AfterLoad(r.afterLoad)
  2342  }
  2343  
  2344  func (t *tcpMemDir) StateTypeName() string {
  2345  	return "pkg/sentry/fsimpl/proc.tcpMemDir"
  2346  }
  2347  
  2348  func (t *tcpMemDir) StateFields() []string {
  2349  	return nil
  2350  }
  2351  
  2352  func (d *mmapMinAddrData) StateTypeName() string {
  2353  	return "pkg/sentry/fsimpl/proc.mmapMinAddrData"
  2354  }
  2355  
  2356  func (d *mmapMinAddrData) StateFields() []string {
  2357  	return []string{
  2358  		"DynamicBytesFile",
  2359  		"k",
  2360  	}
  2361  }
  2362  
  2363  func (d *mmapMinAddrData) beforeSave() {}
  2364  
  2365  // +checklocksignore
  2366  func (d *mmapMinAddrData) StateSave(stateSinkObject state.Sink) {
  2367  	d.beforeSave()
  2368  	stateSinkObject.Save(0, &d.DynamicBytesFile)
  2369  	stateSinkObject.Save(1, &d.k)
  2370  }
  2371  
  2372  func (d *mmapMinAddrData) afterLoad() {}
  2373  
  2374  // +checklocksignore
  2375  func (d *mmapMinAddrData) StateLoad(stateSourceObject state.Source) {
  2376  	stateSourceObject.Load(0, &d.DynamicBytesFile)
  2377  	stateSourceObject.Load(1, &d.k)
  2378  }
  2379  
  2380  func (h *hostnameData) StateTypeName() string {
  2381  	return "pkg/sentry/fsimpl/proc.hostnameData"
  2382  }
  2383  
  2384  func (h *hostnameData) StateFields() []string {
  2385  	return []string{
  2386  		"DynamicBytesFile",
  2387  	}
  2388  }
  2389  
  2390  func (h *hostnameData) beforeSave() {}
  2391  
  2392  // +checklocksignore
  2393  func (h *hostnameData) StateSave(stateSinkObject state.Sink) {
  2394  	h.beforeSave()
  2395  	stateSinkObject.Save(0, &h.DynamicBytesFile)
  2396  }
  2397  
  2398  func (h *hostnameData) afterLoad() {}
  2399  
  2400  // +checklocksignore
  2401  func (h *hostnameData) StateLoad(stateSourceObject state.Source) {
  2402  	stateSourceObject.Load(0, &h.DynamicBytesFile)
  2403  }
  2404  
  2405  func (d *tcpSackData) StateTypeName() string {
  2406  	return "pkg/sentry/fsimpl/proc.tcpSackData"
  2407  }
  2408  
  2409  func (d *tcpSackData) StateFields() []string {
  2410  	return []string{
  2411  		"DynamicBytesFile",
  2412  		"stack",
  2413  		"enabled",
  2414  	}
  2415  }
  2416  
  2417  func (d *tcpSackData) beforeSave() {}
  2418  
  2419  // +checklocksignore
  2420  func (d *tcpSackData) StateSave(stateSinkObject state.Sink) {
  2421  	d.beforeSave()
  2422  	stateSinkObject.Save(0, &d.DynamicBytesFile)
  2423  	stateSinkObject.Save(1, &d.stack)
  2424  	stateSinkObject.Save(2, &d.enabled)
  2425  }
  2426  
  2427  func (d *tcpSackData) afterLoad() {}
  2428  
  2429  // +checklocksignore
  2430  func (d *tcpSackData) StateLoad(stateSourceObject state.Source) {
  2431  	stateSourceObject.Load(0, &d.DynamicBytesFile)
  2432  	stateSourceObject.LoadWait(1, &d.stack)
  2433  	stateSourceObject.Load(2, &d.enabled)
  2434  }
  2435  
  2436  func (d *tcpRecoveryData) StateTypeName() string {
  2437  	return "pkg/sentry/fsimpl/proc.tcpRecoveryData"
  2438  }
  2439  
  2440  func (d *tcpRecoveryData) StateFields() []string {
  2441  	return []string{
  2442  		"DynamicBytesFile",
  2443  		"stack",
  2444  	}
  2445  }
  2446  
  2447  func (d *tcpRecoveryData) beforeSave() {}
  2448  
  2449  // +checklocksignore
  2450  func (d *tcpRecoveryData) StateSave(stateSinkObject state.Sink) {
  2451  	d.beforeSave()
  2452  	stateSinkObject.Save(0, &d.DynamicBytesFile)
  2453  	stateSinkObject.Save(1, &d.stack)
  2454  }
  2455  
  2456  func (d *tcpRecoveryData) afterLoad() {}
  2457  
  2458  // +checklocksignore
  2459  func (d *tcpRecoveryData) StateLoad(stateSourceObject state.Source) {
  2460  	stateSourceObject.Load(0, &d.DynamicBytesFile)
  2461  	stateSourceObject.LoadWait(1, &d.stack)
  2462  }
  2463  
  2464  func (d *tcpMemData) StateTypeName() string {
  2465  	return "pkg/sentry/fsimpl/proc.tcpMemData"
  2466  }
  2467  
  2468  func (d *tcpMemData) StateFields() []string {
  2469  	return []string{
  2470  		"DynamicBytesFile",
  2471  		"dir",
  2472  		"stack",
  2473  	}
  2474  }
  2475  
  2476  func (d *tcpMemData) beforeSave() {}
  2477  
  2478  // +checklocksignore
  2479  func (d *tcpMemData) StateSave(stateSinkObject state.Sink) {
  2480  	d.beforeSave()
  2481  	stateSinkObject.Save(0, &d.DynamicBytesFile)
  2482  	stateSinkObject.Save(1, &d.dir)
  2483  	stateSinkObject.Save(2, &d.stack)
  2484  }
  2485  
  2486  func (d *tcpMemData) afterLoad() {}
  2487  
  2488  // +checklocksignore
  2489  func (d *tcpMemData) StateLoad(stateSourceObject state.Source) {
  2490  	stateSourceObject.Load(0, &d.DynamicBytesFile)
  2491  	stateSourceObject.Load(1, &d.dir)
  2492  	stateSourceObject.LoadWait(2, &d.stack)
  2493  }
  2494  
  2495  func (ipf *ipForwarding) StateTypeName() string {
  2496  	return "pkg/sentry/fsimpl/proc.ipForwarding"
  2497  }
  2498  
  2499  func (ipf *ipForwarding) StateFields() []string {
  2500  	return []string{
  2501  		"DynamicBytesFile",
  2502  		"stack",
  2503  		"enabled",
  2504  	}
  2505  }
  2506  
  2507  func (ipf *ipForwarding) beforeSave() {}
  2508  
  2509  // +checklocksignore
  2510  func (ipf *ipForwarding) StateSave(stateSinkObject state.Sink) {
  2511  	ipf.beforeSave()
  2512  	stateSinkObject.Save(0, &ipf.DynamicBytesFile)
  2513  	stateSinkObject.Save(1, &ipf.stack)
  2514  	stateSinkObject.Save(2, &ipf.enabled)
  2515  }
  2516  
  2517  func (ipf *ipForwarding) afterLoad() {}
  2518  
  2519  // +checklocksignore
  2520  func (ipf *ipForwarding) StateLoad(stateSourceObject state.Source) {
  2521  	stateSourceObject.Load(0, &ipf.DynamicBytesFile)
  2522  	stateSourceObject.LoadWait(1, &ipf.stack)
  2523  	stateSourceObject.Load(2, &ipf.enabled)
  2524  }
  2525  
  2526  func (pr *portRange) StateTypeName() string {
  2527  	return "pkg/sentry/fsimpl/proc.portRange"
  2528  }
  2529  
  2530  func (pr *portRange) StateFields() []string {
  2531  	return []string{
  2532  		"DynamicBytesFile",
  2533  		"stack",
  2534  		"start",
  2535  		"end",
  2536  	}
  2537  }
  2538  
  2539  func (pr *portRange) beforeSave() {}
  2540  
  2541  // +checklocksignore
  2542  func (pr *portRange) StateSave(stateSinkObject state.Sink) {
  2543  	pr.beforeSave()
  2544  	stateSinkObject.Save(0, &pr.DynamicBytesFile)
  2545  	stateSinkObject.Save(1, &pr.stack)
  2546  	stateSinkObject.Save(2, &pr.start)
  2547  	stateSinkObject.Save(3, &pr.end)
  2548  }
  2549  
  2550  func (pr *portRange) afterLoad() {}
  2551  
  2552  // +checklocksignore
  2553  func (pr *portRange) StateLoad(stateSourceObject state.Source) {
  2554  	stateSourceObject.Load(0, &pr.DynamicBytesFile)
  2555  	stateSourceObject.LoadWait(1, &pr.stack)
  2556  	stateSourceObject.Load(2, &pr.start)
  2557  	stateSourceObject.Load(3, &pr.end)
  2558  }
  2559  
  2560  func (s *yamaPtraceScope) StateTypeName() string {
  2561  	return "pkg/sentry/fsimpl/proc.yamaPtraceScope"
  2562  }
  2563  
  2564  func (s *yamaPtraceScope) StateFields() []string {
  2565  	return []string{
  2566  		"DynamicBytesFile",
  2567  		"level",
  2568  	}
  2569  }
  2570  
  2571  func (s *yamaPtraceScope) beforeSave() {}
  2572  
  2573  // +checklocksignore
  2574  func (s *yamaPtraceScope) StateSave(stateSinkObject state.Sink) {
  2575  	s.beforeSave()
  2576  	stateSinkObject.Save(0, &s.DynamicBytesFile)
  2577  	stateSinkObject.Save(1, &s.level)
  2578  }
  2579  
  2580  func (s *yamaPtraceScope) afterLoad() {}
  2581  
  2582  // +checklocksignore
  2583  func (s *yamaPtraceScope) StateLoad(stateSourceObject state.Source) {
  2584  	stateSourceObject.Load(0, &s.DynamicBytesFile)
  2585  	stateSourceObject.Load(1, &s.level)
  2586  }
  2587  
  2588  func init() {
  2589  	state.Register((*fdDirInodeRefs)(nil))
  2590  	state.Register((*fdInfoDirInodeRefs)(nil))
  2591  	state.Register((*FilesystemType)(nil))
  2592  	state.Register((*filesystem)(nil))
  2593  	state.Register((*staticFile)(nil))
  2594  	state.Register((*InternalData)(nil))
  2595  	state.Register((*implStatFS)(nil))
  2596  	state.Register((*subtasksInode)(nil))
  2597  	state.Register((*subtasksFD)(nil))
  2598  	state.Register((*subtasksInodeRefs)(nil))
  2599  	state.Register((*taskInode)(nil))
  2600  	state.Register((*taskOwnedInode)(nil))
  2601  	state.Register((*fdDir)(nil))
  2602  	state.Register((*fdDirInode)(nil))
  2603  	state.Register((*fdSymlink)(nil))
  2604  	state.Register((*fdInfoDirInode)(nil))
  2605  	state.Register((*fdInfoData)(nil))
  2606  	state.Register((*auxvData)(nil))
  2607  	state.Register((*metadataData)(nil))
  2608  	state.Register((*commInode)(nil))
  2609  	state.Register((*commData)(nil))
  2610  	state.Register((*idMapData)(nil))
  2611  	state.Register((*memInode)(nil))
  2612  	state.Register((*memFD)(nil))
  2613  	state.Register((*limitsData)(nil))
  2614  	state.Register((*mapsData)(nil))
  2615  	state.Register((*smapsData)(nil))
  2616  	state.Register((*taskStatData)(nil))
  2617  	state.Register((*statmData)(nil))
  2618  	state.Register((*statusInode)(nil))
  2619  	state.Register((*statusFD)(nil))
  2620  	state.Register((*statusFDLowerBase)(nil))
  2621  	state.Register((*ioData)(nil))
  2622  	state.Register((*oomScoreAdj)(nil))
  2623  	state.Register((*exeSymlink)(nil))
  2624  	state.Register((*cwdSymlink)(nil))
  2625  	state.Register((*rootSymlink)(nil))
  2626  	state.Register((*mountInfoData)(nil))
  2627  	state.Register((*mountsData)(nil))
  2628  	state.Register((*namespaceSymlink)(nil))
  2629  	state.Register((*namespaceInode)(nil))
  2630  	state.Register((*namespaceFD)(nil))
  2631  	state.Register((*taskCgroupData)(nil))
  2632  	state.Register((*childrenData)(nil))
  2633  	state.Register((*taskInodeRefs)(nil))
  2634  	state.Register((*ifinet6)(nil))
  2635  	state.Register((*netDevData)(nil))
  2636  	state.Register((*netUnixData)(nil))
  2637  	state.Register((*netTCPData)(nil))
  2638  	state.Register((*netTCP6Data)(nil))
  2639  	state.Register((*netUDPData)(nil))
  2640  	state.Register((*netSnmpData)(nil))
  2641  	state.Register((*snmpLine)(nil))
  2642  	state.Register((*netRouteData)(nil))
  2643  	state.Register((*netStatData)(nil))
  2644  	state.Register((*tasksInode)(nil))
  2645  	state.Register((*staticFileSetStat)(nil))
  2646  	state.Register((*selfSymlink)(nil))
  2647  	state.Register((*threadSelfSymlink)(nil))
  2648  	state.Register((*dynamicBytesFileSetAttr)(nil))
  2649  	state.Register((*cpuStats)(nil))
  2650  	state.Register((*statData)(nil))
  2651  	state.Register((*loadavgData)(nil))
  2652  	state.Register((*meminfoData)(nil))
  2653  	state.Register((*uptimeData)(nil))
  2654  	state.Register((*versionData)(nil))
  2655  	state.Register((*filesystemsData)(nil))
  2656  	state.Register((*cgroupsData)(nil))
  2657  	state.Register((*cmdLineData)(nil))
  2658  	state.Register((*sentryMeminfoData)(nil))
  2659  	state.Register((*tasksInodeRefs)(nil))
  2660  	state.Register((*tcpMemDir)(nil))
  2661  	state.Register((*mmapMinAddrData)(nil))
  2662  	state.Register((*hostnameData)(nil))
  2663  	state.Register((*tcpSackData)(nil))
  2664  	state.Register((*tcpRecoveryData)(nil))
  2665  	state.Register((*tcpMemData)(nil))
  2666  	state.Register((*ipForwarding)(nil))
  2667  	state.Register((*portRange)(nil))
  2668  	state.Register((*yamaPtraceScope)(nil))
  2669  }