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

     1  // automatically generated by stateify.
     2  
     3  package cgroupfs
     4  
     5  import (
     6  	"github.com/ttpreport/gvisor-ligolo/pkg/state"
     7  )
     8  
     9  func (c *controllerCommon) StateTypeName() string {
    10  	return "pkg/sentry/fsimpl/cgroupfs.controllerCommon"
    11  }
    12  
    13  func (c *controllerCommon) StateFields() []string {
    14  	return []string{
    15  		"ty",
    16  		"fs",
    17  		"parent",
    18  	}
    19  }
    20  
    21  func (c *controllerCommon) beforeSave() {}
    22  
    23  // +checklocksignore
    24  func (c *controllerCommon) StateSave(stateSinkObject state.Sink) {
    25  	c.beforeSave()
    26  	stateSinkObject.Save(0, &c.ty)
    27  	stateSinkObject.Save(1, &c.fs)
    28  	stateSinkObject.Save(2, &c.parent)
    29  }
    30  
    31  func (c *controllerCommon) afterLoad() {}
    32  
    33  // +checklocksignore
    34  func (c *controllerCommon) StateLoad(stateSourceObject state.Source) {
    35  	stateSourceObject.Load(0, &c.ty)
    36  	stateSourceObject.Load(1, &c.fs)
    37  	stateSourceObject.Load(2, &c.parent)
    38  }
    39  
    40  func (c *cgroupInode) StateTypeName() string {
    41  	return "pkg/sentry/fsimpl/cgroupfs.cgroupInode"
    42  }
    43  
    44  func (c *cgroupInode) StateFields() []string {
    45  	return []string{
    46  		"dir",
    47  		"id",
    48  		"controllers",
    49  		"ts",
    50  	}
    51  }
    52  
    53  func (c *cgroupInode) beforeSave() {}
    54  
    55  // +checklocksignore
    56  func (c *cgroupInode) StateSave(stateSinkObject state.Sink) {
    57  	c.beforeSave()
    58  	stateSinkObject.Save(0, &c.dir)
    59  	stateSinkObject.Save(1, &c.id)
    60  	stateSinkObject.Save(2, &c.controllers)
    61  	stateSinkObject.Save(3, &c.ts)
    62  }
    63  
    64  func (c *cgroupInode) afterLoad() {}
    65  
    66  // +checklocksignore
    67  func (c *cgroupInode) StateLoad(stateSourceObject state.Source) {
    68  	stateSourceObject.Load(0, &c.dir)
    69  	stateSourceObject.Load(1, &c.id)
    70  	stateSourceObject.Load(2, &c.controllers)
    71  	stateSourceObject.Load(3, &c.ts)
    72  }
    73  
    74  func (d *cgroupProcsData) StateTypeName() string {
    75  	return "pkg/sentry/fsimpl/cgroupfs.cgroupProcsData"
    76  }
    77  
    78  func (d *cgroupProcsData) StateFields() []string {
    79  	return []string{
    80  		"cgroupInode",
    81  	}
    82  }
    83  
    84  func (d *cgroupProcsData) beforeSave() {}
    85  
    86  // +checklocksignore
    87  func (d *cgroupProcsData) StateSave(stateSinkObject state.Sink) {
    88  	d.beforeSave()
    89  	stateSinkObject.Save(0, &d.cgroupInode)
    90  }
    91  
    92  func (d *cgroupProcsData) afterLoad() {}
    93  
    94  // +checklocksignore
    95  func (d *cgroupProcsData) StateLoad(stateSourceObject state.Source) {
    96  	stateSourceObject.Load(0, &d.cgroupInode)
    97  }
    98  
    99  func (d *tasksData) StateTypeName() string {
   100  	return "pkg/sentry/fsimpl/cgroupfs.tasksData"
   101  }
   102  
   103  func (d *tasksData) StateFields() []string {
   104  	return []string{
   105  		"cgroupInode",
   106  	}
   107  }
   108  
   109  func (d *tasksData) beforeSave() {}
   110  
   111  // +checklocksignore
   112  func (d *tasksData) StateSave(stateSinkObject state.Sink) {
   113  	d.beforeSave()
   114  	stateSinkObject.Save(0, &d.cgroupInode)
   115  }
   116  
   117  func (d *tasksData) afterLoad() {}
   118  
   119  // +checklocksignore
   120  func (d *tasksData) StateLoad(stateSourceObject state.Source) {
   121  	stateSourceObject.Load(0, &d.cgroupInode)
   122  }
   123  
   124  func (fsType *FilesystemType) StateTypeName() string {
   125  	return "pkg/sentry/fsimpl/cgroupfs.FilesystemType"
   126  }
   127  
   128  func (fsType *FilesystemType) StateFields() []string {
   129  	return []string{}
   130  }
   131  
   132  func (fsType *FilesystemType) beforeSave() {}
   133  
   134  // +checklocksignore
   135  func (fsType *FilesystemType) StateSave(stateSinkObject state.Sink) {
   136  	fsType.beforeSave()
   137  }
   138  
   139  func (fsType *FilesystemType) afterLoad() {}
   140  
   141  // +checklocksignore
   142  func (fsType *FilesystemType) StateLoad(stateSourceObject state.Source) {
   143  }
   144  
   145  func (i *InitialCgroup) StateTypeName() string {
   146  	return "pkg/sentry/fsimpl/cgroupfs.InitialCgroup"
   147  }
   148  
   149  func (i *InitialCgroup) StateFields() []string {
   150  	return []string{
   151  		"Path",
   152  		"SetOwner",
   153  		"UID",
   154  		"GID",
   155  		"SetMode",
   156  		"Mode",
   157  	}
   158  }
   159  
   160  func (i *InitialCgroup) beforeSave() {}
   161  
   162  // +checklocksignore
   163  func (i *InitialCgroup) StateSave(stateSinkObject state.Sink) {
   164  	i.beforeSave()
   165  	stateSinkObject.Save(0, &i.Path)
   166  	stateSinkObject.Save(1, &i.SetOwner)
   167  	stateSinkObject.Save(2, &i.UID)
   168  	stateSinkObject.Save(3, &i.GID)
   169  	stateSinkObject.Save(4, &i.SetMode)
   170  	stateSinkObject.Save(5, &i.Mode)
   171  }
   172  
   173  func (i *InitialCgroup) afterLoad() {}
   174  
   175  // +checklocksignore
   176  func (i *InitialCgroup) StateLoad(stateSourceObject state.Source) {
   177  	stateSourceObject.Load(0, &i.Path)
   178  	stateSourceObject.Load(1, &i.SetOwner)
   179  	stateSourceObject.Load(2, &i.UID)
   180  	stateSourceObject.Load(3, &i.GID)
   181  	stateSourceObject.Load(4, &i.SetMode)
   182  	stateSourceObject.Load(5, &i.Mode)
   183  }
   184  
   185  func (i *InternalData) StateTypeName() string {
   186  	return "pkg/sentry/fsimpl/cgroupfs.InternalData"
   187  }
   188  
   189  func (i *InternalData) StateFields() []string {
   190  	return []string{
   191  		"DefaultControlValues",
   192  		"InitialCgroup",
   193  	}
   194  }
   195  
   196  func (i *InternalData) beforeSave() {}
   197  
   198  // +checklocksignore
   199  func (i *InternalData) StateSave(stateSinkObject state.Sink) {
   200  	i.beforeSave()
   201  	stateSinkObject.Save(0, &i.DefaultControlValues)
   202  	stateSinkObject.Save(1, &i.InitialCgroup)
   203  }
   204  
   205  func (i *InternalData) afterLoad() {}
   206  
   207  // +checklocksignore
   208  func (i *InternalData) StateLoad(stateSourceObject state.Source) {
   209  	stateSourceObject.Load(0, &i.DefaultControlValues)
   210  	stateSourceObject.Load(1, &i.InitialCgroup)
   211  }
   212  
   213  func (fs *filesystem) StateTypeName() string {
   214  	return "pkg/sentry/fsimpl/cgroupfs.filesystem"
   215  }
   216  
   217  func (fs *filesystem) StateFields() []string {
   218  	return []string{
   219  		"Filesystem",
   220  		"devMinor",
   221  		"hierarchyID",
   222  		"hierarchyName",
   223  		"controllers",
   224  		"kcontrollers",
   225  		"numCgroups",
   226  		"root",
   227  		"effectiveRoot",
   228  	}
   229  }
   230  
   231  func (fs *filesystem) beforeSave() {}
   232  
   233  // +checklocksignore
   234  func (fs *filesystem) StateSave(stateSinkObject state.Sink) {
   235  	fs.beforeSave()
   236  	stateSinkObject.Save(0, &fs.Filesystem)
   237  	stateSinkObject.Save(1, &fs.devMinor)
   238  	stateSinkObject.Save(2, &fs.hierarchyID)
   239  	stateSinkObject.Save(3, &fs.hierarchyName)
   240  	stateSinkObject.Save(4, &fs.controllers)
   241  	stateSinkObject.Save(5, &fs.kcontrollers)
   242  	stateSinkObject.Save(6, &fs.numCgroups)
   243  	stateSinkObject.Save(7, &fs.root)
   244  	stateSinkObject.Save(8, &fs.effectiveRoot)
   245  }
   246  
   247  func (fs *filesystem) afterLoad() {}
   248  
   249  // +checklocksignore
   250  func (fs *filesystem) StateLoad(stateSourceObject state.Source) {
   251  	stateSourceObject.Load(0, &fs.Filesystem)
   252  	stateSourceObject.Load(1, &fs.devMinor)
   253  	stateSourceObject.Load(2, &fs.hierarchyID)
   254  	stateSourceObject.Load(3, &fs.hierarchyName)
   255  	stateSourceObject.Load(4, &fs.controllers)
   256  	stateSourceObject.Load(5, &fs.kcontrollers)
   257  	stateSourceObject.Load(6, &fs.numCgroups)
   258  	stateSourceObject.Load(7, &fs.root)
   259  	stateSourceObject.Load(8, &fs.effectiveRoot)
   260  }
   261  
   262  func (i *implStatFS) StateTypeName() string {
   263  	return "pkg/sentry/fsimpl/cgroupfs.implStatFS"
   264  }
   265  
   266  func (i *implStatFS) StateFields() []string {
   267  	return []string{}
   268  }
   269  
   270  func (i *implStatFS) beforeSave() {}
   271  
   272  // +checklocksignore
   273  func (i *implStatFS) StateSave(stateSinkObject state.Sink) {
   274  	i.beforeSave()
   275  }
   276  
   277  func (i *implStatFS) afterLoad() {}
   278  
   279  // +checklocksignore
   280  func (i *implStatFS) StateLoad(stateSourceObject state.Source) {
   281  }
   282  
   283  func (d *dir) StateTypeName() string {
   284  	return "pkg/sentry/fsimpl/cgroupfs.dir"
   285  }
   286  
   287  func (d *dir) StateFields() []string {
   288  	return []string{
   289  		"InodeAlwaysValid",
   290  		"InodeAttrs",
   291  		"InodeDirectoryNoNewChildren",
   292  		"InodeNoopRefCount",
   293  		"InodeNotAnonymous",
   294  		"InodeNotSymlink",
   295  		"InodeWatches",
   296  		"OrderedChildren",
   297  		"implStatFS",
   298  		"locks",
   299  		"fs",
   300  		"cgi",
   301  	}
   302  }
   303  
   304  func (d *dir) beforeSave() {}
   305  
   306  // +checklocksignore
   307  func (d *dir) StateSave(stateSinkObject state.Sink) {
   308  	d.beforeSave()
   309  	stateSinkObject.Save(0, &d.InodeAlwaysValid)
   310  	stateSinkObject.Save(1, &d.InodeAttrs)
   311  	stateSinkObject.Save(2, &d.InodeDirectoryNoNewChildren)
   312  	stateSinkObject.Save(3, &d.InodeNoopRefCount)
   313  	stateSinkObject.Save(4, &d.InodeNotAnonymous)
   314  	stateSinkObject.Save(5, &d.InodeNotSymlink)
   315  	stateSinkObject.Save(6, &d.InodeWatches)
   316  	stateSinkObject.Save(7, &d.OrderedChildren)
   317  	stateSinkObject.Save(8, &d.implStatFS)
   318  	stateSinkObject.Save(9, &d.locks)
   319  	stateSinkObject.Save(10, &d.fs)
   320  	stateSinkObject.Save(11, &d.cgi)
   321  }
   322  
   323  func (d *dir) afterLoad() {}
   324  
   325  // +checklocksignore
   326  func (d *dir) StateLoad(stateSourceObject state.Source) {
   327  	stateSourceObject.Load(0, &d.InodeAlwaysValid)
   328  	stateSourceObject.Load(1, &d.InodeAttrs)
   329  	stateSourceObject.Load(2, &d.InodeDirectoryNoNewChildren)
   330  	stateSourceObject.Load(3, &d.InodeNoopRefCount)
   331  	stateSourceObject.Load(4, &d.InodeNotAnonymous)
   332  	stateSourceObject.Load(5, &d.InodeNotSymlink)
   333  	stateSourceObject.Load(6, &d.InodeWatches)
   334  	stateSourceObject.Load(7, &d.OrderedChildren)
   335  	stateSourceObject.Load(8, &d.implStatFS)
   336  	stateSourceObject.Load(9, &d.locks)
   337  	stateSourceObject.Load(10, &d.fs)
   338  	stateSourceObject.Load(11, &d.cgi)
   339  }
   340  
   341  func (f *controllerFile) StateTypeName() string {
   342  	return "pkg/sentry/fsimpl/cgroupfs.controllerFile"
   343  }
   344  
   345  func (f *controllerFile) StateFields() []string {
   346  	return []string{
   347  		"DynamicBytesFile",
   348  		"implStatFS",
   349  		"allowBackgroundAccess",
   350  	}
   351  }
   352  
   353  func (f *controllerFile) beforeSave() {}
   354  
   355  // +checklocksignore
   356  func (f *controllerFile) StateSave(stateSinkObject state.Sink) {
   357  	f.beforeSave()
   358  	stateSinkObject.Save(0, &f.DynamicBytesFile)
   359  	stateSinkObject.Save(1, &f.implStatFS)
   360  	stateSinkObject.Save(2, &f.allowBackgroundAccess)
   361  }
   362  
   363  func (f *controllerFile) afterLoad() {}
   364  
   365  // +checklocksignore
   366  func (f *controllerFile) StateLoad(stateSourceObject state.Source) {
   367  	stateSourceObject.Load(0, &f.DynamicBytesFile)
   368  	stateSourceObject.Load(1, &f.implStatFS)
   369  	stateSourceObject.Load(2, &f.allowBackgroundAccess)
   370  }
   371  
   372  func (f *staticControllerFile) StateTypeName() string {
   373  	return "pkg/sentry/fsimpl/cgroupfs.staticControllerFile"
   374  }
   375  
   376  func (f *staticControllerFile) StateFields() []string {
   377  	return []string{
   378  		"DynamicBytesFile",
   379  		"StaticData",
   380  	}
   381  }
   382  
   383  func (f *staticControllerFile) beforeSave() {}
   384  
   385  // +checklocksignore
   386  func (f *staticControllerFile) StateSave(stateSinkObject state.Sink) {
   387  	f.beforeSave()
   388  	stateSinkObject.Save(0, &f.DynamicBytesFile)
   389  	stateSinkObject.Save(1, &f.StaticData)
   390  }
   391  
   392  func (f *staticControllerFile) afterLoad() {}
   393  
   394  // +checklocksignore
   395  func (f *staticControllerFile) StateLoad(stateSourceObject state.Source) {
   396  	stateSourceObject.Load(0, &f.DynamicBytesFile)
   397  	stateSourceObject.Load(1, &f.StaticData)
   398  }
   399  
   400  func (f *stubControllerFile) StateTypeName() string {
   401  	return "pkg/sentry/fsimpl/cgroupfs.stubControllerFile"
   402  }
   403  
   404  func (f *stubControllerFile) StateFields() []string {
   405  	return []string{
   406  		"controllerFile",
   407  		"data",
   408  	}
   409  }
   410  
   411  func (f *stubControllerFile) beforeSave() {}
   412  
   413  // +checklocksignore
   414  func (f *stubControllerFile) StateSave(stateSinkObject state.Sink) {
   415  	f.beforeSave()
   416  	stateSinkObject.Save(0, &f.controllerFile)
   417  	stateSinkObject.Save(1, &f.data)
   418  }
   419  
   420  func (f *stubControllerFile) afterLoad() {}
   421  
   422  // +checklocksignore
   423  func (f *stubControllerFile) StateLoad(stateSourceObject state.Source) {
   424  	stateSourceObject.Load(0, &f.controllerFile)
   425  	stateSourceObject.Load(1, &f.data)
   426  }
   427  
   428  func (c *cpuController) StateTypeName() string {
   429  	return "pkg/sentry/fsimpl/cgroupfs.cpuController"
   430  }
   431  
   432  func (c *cpuController) StateFields() []string {
   433  	return []string{
   434  		"controllerCommon",
   435  		"controllerStateless",
   436  		"controllerNoResource",
   437  		"cfsPeriod",
   438  		"cfsQuota",
   439  		"shares",
   440  	}
   441  }
   442  
   443  func (c *cpuController) beforeSave() {}
   444  
   445  // +checklocksignore
   446  func (c *cpuController) StateSave(stateSinkObject state.Sink) {
   447  	c.beforeSave()
   448  	stateSinkObject.Save(0, &c.controllerCommon)
   449  	stateSinkObject.Save(1, &c.controllerStateless)
   450  	stateSinkObject.Save(2, &c.controllerNoResource)
   451  	stateSinkObject.Save(3, &c.cfsPeriod)
   452  	stateSinkObject.Save(4, &c.cfsQuota)
   453  	stateSinkObject.Save(5, &c.shares)
   454  }
   455  
   456  func (c *cpuController) afterLoad() {}
   457  
   458  // +checklocksignore
   459  func (c *cpuController) StateLoad(stateSourceObject state.Source) {
   460  	stateSourceObject.Load(0, &c.controllerCommon)
   461  	stateSourceObject.Load(1, &c.controllerStateless)
   462  	stateSourceObject.Load(2, &c.controllerNoResource)
   463  	stateSourceObject.Load(3, &c.cfsPeriod)
   464  	stateSourceObject.Load(4, &c.cfsQuota)
   465  	stateSourceObject.Load(5, &c.shares)
   466  }
   467  
   468  func (c *cpuacctController) StateTypeName() string {
   469  	return "pkg/sentry/fsimpl/cgroupfs.cpuacctController"
   470  }
   471  
   472  func (c *cpuacctController) StateFields() []string {
   473  	return []string{
   474  		"controllerCommon",
   475  		"controllerNoResource",
   476  		"taskCommittedCharges",
   477  		"usage",
   478  	}
   479  }
   480  
   481  func (c *cpuacctController) beforeSave() {}
   482  
   483  // +checklocksignore
   484  func (c *cpuacctController) StateSave(stateSinkObject state.Sink) {
   485  	c.beforeSave()
   486  	stateSinkObject.Save(0, &c.controllerCommon)
   487  	stateSinkObject.Save(1, &c.controllerNoResource)
   488  	stateSinkObject.Save(2, &c.taskCommittedCharges)
   489  	stateSinkObject.Save(3, &c.usage)
   490  }
   491  
   492  func (c *cpuacctController) afterLoad() {}
   493  
   494  // +checklocksignore
   495  func (c *cpuacctController) StateLoad(stateSourceObject state.Source) {
   496  	stateSourceObject.Load(0, &c.controllerCommon)
   497  	stateSourceObject.Load(1, &c.controllerNoResource)
   498  	stateSourceObject.Load(2, &c.taskCommittedCharges)
   499  	stateSourceObject.Load(3, &c.usage)
   500  }
   501  
   502  func (c *cpuacctCgroup) StateTypeName() string {
   503  	return "pkg/sentry/fsimpl/cgroupfs.cpuacctCgroup"
   504  }
   505  
   506  func (c *cpuacctCgroup) StateFields() []string {
   507  	return []string{
   508  		"cgroupInode",
   509  	}
   510  }
   511  
   512  func (c *cpuacctCgroup) beforeSave() {}
   513  
   514  // +checklocksignore
   515  func (c *cpuacctCgroup) StateSave(stateSinkObject state.Sink) {
   516  	c.beforeSave()
   517  	stateSinkObject.Save(0, &c.cgroupInode)
   518  }
   519  
   520  func (c *cpuacctCgroup) afterLoad() {}
   521  
   522  // +checklocksignore
   523  func (c *cpuacctCgroup) StateLoad(stateSourceObject state.Source) {
   524  	stateSourceObject.Load(0, &c.cgroupInode)
   525  }
   526  
   527  func (d *cpuacctStatData) StateTypeName() string {
   528  	return "pkg/sentry/fsimpl/cgroupfs.cpuacctStatData"
   529  }
   530  
   531  func (d *cpuacctStatData) StateFields() []string {
   532  	return []string{
   533  		"cpuacctCgroup",
   534  	}
   535  }
   536  
   537  func (d *cpuacctStatData) beforeSave() {}
   538  
   539  // +checklocksignore
   540  func (d *cpuacctStatData) StateSave(stateSinkObject state.Sink) {
   541  	d.beforeSave()
   542  	stateSinkObject.Save(0, &d.cpuacctCgroup)
   543  }
   544  
   545  func (d *cpuacctStatData) afterLoad() {}
   546  
   547  // +checklocksignore
   548  func (d *cpuacctStatData) StateLoad(stateSourceObject state.Source) {
   549  	stateSourceObject.Load(0, &d.cpuacctCgroup)
   550  }
   551  
   552  func (d *cpuacctUsageData) StateTypeName() string {
   553  	return "pkg/sentry/fsimpl/cgroupfs.cpuacctUsageData"
   554  }
   555  
   556  func (d *cpuacctUsageData) StateFields() []string {
   557  	return []string{
   558  		"cpuacctCgroup",
   559  	}
   560  }
   561  
   562  func (d *cpuacctUsageData) beforeSave() {}
   563  
   564  // +checklocksignore
   565  func (d *cpuacctUsageData) StateSave(stateSinkObject state.Sink) {
   566  	d.beforeSave()
   567  	stateSinkObject.Save(0, &d.cpuacctCgroup)
   568  }
   569  
   570  func (d *cpuacctUsageData) afterLoad() {}
   571  
   572  // +checklocksignore
   573  func (d *cpuacctUsageData) StateLoad(stateSourceObject state.Source) {
   574  	stateSourceObject.Load(0, &d.cpuacctCgroup)
   575  }
   576  
   577  func (d *cpuacctUsageUserData) StateTypeName() string {
   578  	return "pkg/sentry/fsimpl/cgroupfs.cpuacctUsageUserData"
   579  }
   580  
   581  func (d *cpuacctUsageUserData) StateFields() []string {
   582  	return []string{
   583  		"cpuacctCgroup",
   584  	}
   585  }
   586  
   587  func (d *cpuacctUsageUserData) beforeSave() {}
   588  
   589  // +checklocksignore
   590  func (d *cpuacctUsageUserData) StateSave(stateSinkObject state.Sink) {
   591  	d.beforeSave()
   592  	stateSinkObject.Save(0, &d.cpuacctCgroup)
   593  }
   594  
   595  func (d *cpuacctUsageUserData) afterLoad() {}
   596  
   597  // +checklocksignore
   598  func (d *cpuacctUsageUserData) StateLoad(stateSourceObject state.Source) {
   599  	stateSourceObject.Load(0, &d.cpuacctCgroup)
   600  }
   601  
   602  func (d *cpuacctUsageSysData) StateTypeName() string {
   603  	return "pkg/sentry/fsimpl/cgroupfs.cpuacctUsageSysData"
   604  }
   605  
   606  func (d *cpuacctUsageSysData) StateFields() []string {
   607  	return []string{
   608  		"cpuacctCgroup",
   609  	}
   610  }
   611  
   612  func (d *cpuacctUsageSysData) beforeSave() {}
   613  
   614  // +checklocksignore
   615  func (d *cpuacctUsageSysData) StateSave(stateSinkObject state.Sink) {
   616  	d.beforeSave()
   617  	stateSinkObject.Save(0, &d.cpuacctCgroup)
   618  }
   619  
   620  func (d *cpuacctUsageSysData) afterLoad() {}
   621  
   622  // +checklocksignore
   623  func (d *cpuacctUsageSysData) StateLoad(stateSourceObject state.Source) {
   624  	stateSourceObject.Load(0, &d.cpuacctCgroup)
   625  }
   626  
   627  func (c *cpusetController) StateTypeName() string {
   628  	return "pkg/sentry/fsimpl/cgroupfs.cpusetController"
   629  }
   630  
   631  func (c *cpusetController) StateFields() []string {
   632  	return []string{
   633  		"controllerCommon",
   634  		"controllerStateless",
   635  		"controllerNoResource",
   636  		"maxCpus",
   637  		"maxMems",
   638  		"cpus",
   639  		"mems",
   640  	}
   641  }
   642  
   643  func (c *cpusetController) beforeSave() {}
   644  
   645  // +checklocksignore
   646  func (c *cpusetController) StateSave(stateSinkObject state.Sink) {
   647  	c.beforeSave()
   648  	stateSinkObject.Save(0, &c.controllerCommon)
   649  	stateSinkObject.Save(1, &c.controllerStateless)
   650  	stateSinkObject.Save(2, &c.controllerNoResource)
   651  	stateSinkObject.Save(3, &c.maxCpus)
   652  	stateSinkObject.Save(4, &c.maxMems)
   653  	stateSinkObject.Save(5, &c.cpus)
   654  	stateSinkObject.Save(6, &c.mems)
   655  }
   656  
   657  func (c *cpusetController) afterLoad() {}
   658  
   659  // +checklocksignore
   660  func (c *cpusetController) StateLoad(stateSourceObject state.Source) {
   661  	stateSourceObject.Load(0, &c.controllerCommon)
   662  	stateSourceObject.Load(1, &c.controllerStateless)
   663  	stateSourceObject.Load(2, &c.controllerNoResource)
   664  	stateSourceObject.Load(3, &c.maxCpus)
   665  	stateSourceObject.Load(4, &c.maxMems)
   666  	stateSourceObject.Load(5, &c.cpus)
   667  	stateSourceObject.Load(6, &c.mems)
   668  }
   669  
   670  func (d *cpusData) StateTypeName() string {
   671  	return "pkg/sentry/fsimpl/cgroupfs.cpusData"
   672  }
   673  
   674  func (d *cpusData) StateFields() []string {
   675  	return []string{
   676  		"c",
   677  	}
   678  }
   679  
   680  func (d *cpusData) beforeSave() {}
   681  
   682  // +checklocksignore
   683  func (d *cpusData) StateSave(stateSinkObject state.Sink) {
   684  	d.beforeSave()
   685  	stateSinkObject.Save(0, &d.c)
   686  }
   687  
   688  func (d *cpusData) afterLoad() {}
   689  
   690  // +checklocksignore
   691  func (d *cpusData) StateLoad(stateSourceObject state.Source) {
   692  	stateSourceObject.Load(0, &d.c)
   693  }
   694  
   695  func (d *memsData) StateTypeName() string {
   696  	return "pkg/sentry/fsimpl/cgroupfs.memsData"
   697  }
   698  
   699  func (d *memsData) StateFields() []string {
   700  	return []string{
   701  		"c",
   702  	}
   703  }
   704  
   705  func (d *memsData) beforeSave() {}
   706  
   707  // +checklocksignore
   708  func (d *memsData) StateSave(stateSinkObject state.Sink) {
   709  	d.beforeSave()
   710  	stateSinkObject.Save(0, &d.c)
   711  }
   712  
   713  func (d *memsData) afterLoad() {}
   714  
   715  // +checklocksignore
   716  func (d *memsData) StateLoad(stateSourceObject state.Source) {
   717  	stateSourceObject.Load(0, &d.c)
   718  }
   719  
   720  func (r *dirRefs) StateTypeName() string {
   721  	return "pkg/sentry/fsimpl/cgroupfs.dirRefs"
   722  }
   723  
   724  func (r *dirRefs) StateFields() []string {
   725  	return []string{
   726  		"refCount",
   727  	}
   728  }
   729  
   730  func (r *dirRefs) beforeSave() {}
   731  
   732  // +checklocksignore
   733  func (r *dirRefs) StateSave(stateSinkObject state.Sink) {
   734  	r.beforeSave()
   735  	stateSinkObject.Save(0, &r.refCount)
   736  }
   737  
   738  // +checklocksignore
   739  func (r *dirRefs) StateLoad(stateSourceObject state.Source) {
   740  	stateSourceObject.Load(0, &r.refCount)
   741  	stateSourceObject.AfterLoad(r.afterLoad)
   742  }
   743  
   744  func (c *jobController) StateTypeName() string {
   745  	return "pkg/sentry/fsimpl/cgroupfs.jobController"
   746  }
   747  
   748  func (c *jobController) StateFields() []string {
   749  	return []string{
   750  		"controllerCommon",
   751  		"controllerStateless",
   752  		"controllerNoResource",
   753  		"id",
   754  	}
   755  }
   756  
   757  func (c *jobController) beforeSave() {}
   758  
   759  // +checklocksignore
   760  func (c *jobController) StateSave(stateSinkObject state.Sink) {
   761  	c.beforeSave()
   762  	stateSinkObject.Save(0, &c.controllerCommon)
   763  	stateSinkObject.Save(1, &c.controllerStateless)
   764  	stateSinkObject.Save(2, &c.controllerNoResource)
   765  	stateSinkObject.Save(3, &c.id)
   766  }
   767  
   768  func (c *jobController) afterLoad() {}
   769  
   770  // +checklocksignore
   771  func (c *jobController) StateLoad(stateSourceObject state.Source) {
   772  	stateSourceObject.Load(0, &c.controllerCommon)
   773  	stateSourceObject.Load(1, &c.controllerStateless)
   774  	stateSourceObject.Load(2, &c.controllerNoResource)
   775  	stateSourceObject.Load(3, &c.id)
   776  }
   777  
   778  func (c *memoryController) StateTypeName() string {
   779  	return "pkg/sentry/fsimpl/cgroupfs.memoryController"
   780  }
   781  
   782  func (c *memoryController) StateFields() []string {
   783  	return []string{
   784  		"controllerCommon",
   785  		"controllerStateless",
   786  		"controllerNoResource",
   787  		"limitBytes",
   788  		"softLimitBytes",
   789  		"moveChargeAtImmigrate",
   790  		"pressureLevel",
   791  	}
   792  }
   793  
   794  func (c *memoryController) beforeSave() {}
   795  
   796  // +checklocksignore
   797  func (c *memoryController) StateSave(stateSinkObject state.Sink) {
   798  	c.beforeSave()
   799  	stateSinkObject.Save(0, &c.controllerCommon)
   800  	stateSinkObject.Save(1, &c.controllerStateless)
   801  	stateSinkObject.Save(2, &c.controllerNoResource)
   802  	stateSinkObject.Save(3, &c.limitBytes)
   803  	stateSinkObject.Save(4, &c.softLimitBytes)
   804  	stateSinkObject.Save(5, &c.moveChargeAtImmigrate)
   805  	stateSinkObject.Save(6, &c.pressureLevel)
   806  }
   807  
   808  func (c *memoryController) afterLoad() {}
   809  
   810  // +checklocksignore
   811  func (c *memoryController) StateLoad(stateSourceObject state.Source) {
   812  	stateSourceObject.Load(0, &c.controllerCommon)
   813  	stateSourceObject.Load(1, &c.controllerStateless)
   814  	stateSourceObject.Load(2, &c.controllerNoResource)
   815  	stateSourceObject.Load(3, &c.limitBytes)
   816  	stateSourceObject.Load(4, &c.softLimitBytes)
   817  	stateSourceObject.Load(5, &c.moveChargeAtImmigrate)
   818  	stateSourceObject.Load(6, &c.pressureLevel)
   819  }
   820  
   821  func (d *memoryUsageInBytesData) StateTypeName() string {
   822  	return "pkg/sentry/fsimpl/cgroupfs.memoryUsageInBytesData"
   823  }
   824  
   825  func (d *memoryUsageInBytesData) StateFields() []string {
   826  	return []string{}
   827  }
   828  
   829  func (d *memoryUsageInBytesData) beforeSave() {}
   830  
   831  // +checklocksignore
   832  func (d *memoryUsageInBytesData) StateSave(stateSinkObject state.Sink) {
   833  	d.beforeSave()
   834  }
   835  
   836  func (d *memoryUsageInBytesData) afterLoad() {}
   837  
   838  // +checklocksignore
   839  func (d *memoryUsageInBytesData) StateLoad(stateSourceObject state.Source) {
   840  }
   841  
   842  func (c *pidsController) StateTypeName() string {
   843  	return "pkg/sentry/fsimpl/cgroupfs.pidsController"
   844  }
   845  
   846  func (c *pidsController) StateFields() []string {
   847  	return []string{
   848  		"controllerCommon",
   849  		"isRoot",
   850  		"pendingTotal",
   851  		"pendingPool",
   852  		"committed",
   853  		"max",
   854  	}
   855  }
   856  
   857  func (c *pidsController) beforeSave() {}
   858  
   859  // +checklocksignore
   860  func (c *pidsController) StateSave(stateSinkObject state.Sink) {
   861  	c.beforeSave()
   862  	stateSinkObject.Save(0, &c.controllerCommon)
   863  	stateSinkObject.Save(1, &c.isRoot)
   864  	stateSinkObject.Save(2, &c.pendingTotal)
   865  	stateSinkObject.Save(3, &c.pendingPool)
   866  	stateSinkObject.Save(4, &c.committed)
   867  	stateSinkObject.Save(5, &c.max)
   868  }
   869  
   870  func (c *pidsController) afterLoad() {}
   871  
   872  // +checklocksignore
   873  func (c *pidsController) StateLoad(stateSourceObject state.Source) {
   874  	stateSourceObject.Load(0, &c.controllerCommon)
   875  	stateSourceObject.Load(1, &c.isRoot)
   876  	stateSourceObject.Load(2, &c.pendingTotal)
   877  	stateSourceObject.Load(3, &c.pendingPool)
   878  	stateSourceObject.Load(4, &c.committed)
   879  	stateSourceObject.Load(5, &c.max)
   880  }
   881  
   882  func (d *pidsCurrentData) StateTypeName() string {
   883  	return "pkg/sentry/fsimpl/cgroupfs.pidsCurrentData"
   884  }
   885  
   886  func (d *pidsCurrentData) StateFields() []string {
   887  	return []string{
   888  		"c",
   889  	}
   890  }
   891  
   892  func (d *pidsCurrentData) beforeSave() {}
   893  
   894  // +checklocksignore
   895  func (d *pidsCurrentData) StateSave(stateSinkObject state.Sink) {
   896  	d.beforeSave()
   897  	stateSinkObject.Save(0, &d.c)
   898  }
   899  
   900  func (d *pidsCurrentData) afterLoad() {}
   901  
   902  // +checklocksignore
   903  func (d *pidsCurrentData) StateLoad(stateSourceObject state.Source) {
   904  	stateSourceObject.Load(0, &d.c)
   905  }
   906  
   907  func (d *pidsMaxData) StateTypeName() string {
   908  	return "pkg/sentry/fsimpl/cgroupfs.pidsMaxData"
   909  }
   910  
   911  func (d *pidsMaxData) StateFields() []string {
   912  	return []string{
   913  		"c",
   914  	}
   915  }
   916  
   917  func (d *pidsMaxData) beforeSave() {}
   918  
   919  // +checklocksignore
   920  func (d *pidsMaxData) StateSave(stateSinkObject state.Sink) {
   921  	d.beforeSave()
   922  	stateSinkObject.Save(0, &d.c)
   923  }
   924  
   925  func (d *pidsMaxData) afterLoad() {}
   926  
   927  // +checklocksignore
   928  func (d *pidsMaxData) StateLoad(stateSourceObject state.Source) {
   929  	stateSourceObject.Load(0, &d.c)
   930  }
   931  
   932  func init() {
   933  	state.Register((*controllerCommon)(nil))
   934  	state.Register((*cgroupInode)(nil))
   935  	state.Register((*cgroupProcsData)(nil))
   936  	state.Register((*tasksData)(nil))
   937  	state.Register((*FilesystemType)(nil))
   938  	state.Register((*InitialCgroup)(nil))
   939  	state.Register((*InternalData)(nil))
   940  	state.Register((*filesystem)(nil))
   941  	state.Register((*implStatFS)(nil))
   942  	state.Register((*dir)(nil))
   943  	state.Register((*controllerFile)(nil))
   944  	state.Register((*staticControllerFile)(nil))
   945  	state.Register((*stubControllerFile)(nil))
   946  	state.Register((*cpuController)(nil))
   947  	state.Register((*cpuacctController)(nil))
   948  	state.Register((*cpuacctCgroup)(nil))
   949  	state.Register((*cpuacctStatData)(nil))
   950  	state.Register((*cpuacctUsageData)(nil))
   951  	state.Register((*cpuacctUsageUserData)(nil))
   952  	state.Register((*cpuacctUsageSysData)(nil))
   953  	state.Register((*cpusetController)(nil))
   954  	state.Register((*cpusData)(nil))
   955  	state.Register((*memsData)(nil))
   956  	state.Register((*dirRefs)(nil))
   957  	state.Register((*jobController)(nil))
   958  	state.Register((*memoryController)(nil))
   959  	state.Register((*memoryUsageInBytesData)(nil))
   960  	state.Register((*pidsController)(nil))
   961  	state.Register((*pidsCurrentData)(nil))
   962  	state.Register((*pidsMaxData)(nil))
   963  }