github.com/MerlinKodo/gvisor@v0.0.0-20231110090155-957f62ecf90e/pkg/sentry/arch/arch_arm64_state_autogen.go (about)

     1  // automatically generated by stateify.
     2  
     3  //go:build arm64 && arm64 && arm64
     4  // +build arm64,arm64,arm64
     5  
     6  package arch
     7  
     8  import (
     9  	"github.com/MerlinKodo/gvisor/pkg/state"
    10  )
    11  
    12  func (c *Context64) StateTypeName() string {
    13  	return "pkg/sentry/arch.Context64"
    14  }
    15  
    16  func (c *Context64) StateFields() []string {
    17  	return []string{
    18  		"State",
    19  		"sigFPState",
    20  	}
    21  }
    22  
    23  func (c *Context64) beforeSave() {}
    24  
    25  // +checklocksignore
    26  func (c *Context64) StateSave(stateSinkObject state.Sink) {
    27  	c.beforeSave()
    28  	stateSinkObject.Save(0, &c.State)
    29  	stateSinkObject.Save(1, &c.sigFPState)
    30  }
    31  
    32  func (c *Context64) afterLoad() {}
    33  
    34  // +checklocksignore
    35  func (c *Context64) StateLoad(stateSourceObject state.Source) {
    36  	stateSourceObject.Load(0, &c.State)
    37  	stateSourceObject.Load(1, &c.sigFPState)
    38  }
    39  
    40  func init() {
    41  	state.Register((*Context64)(nil))
    42  }