github.com/metacubex/gvisor@v0.0.0-20240320004321-933faba989ec/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 "context" 10 11 "github.com/metacubex/gvisor/pkg/state" 12 ) 13 14 func (c *Context64) StateTypeName() string { 15 return "pkg/sentry/arch.Context64" 16 } 17 18 func (c *Context64) StateFields() []string { 19 return []string{ 20 "State", 21 "sigFPState", 22 } 23 } 24 25 func (c *Context64) beforeSave() {} 26 27 // +checklocksignore 28 func (c *Context64) StateSave(stateSinkObject state.Sink) { 29 c.beforeSave() 30 stateSinkObject.Save(0, &c.State) 31 stateSinkObject.Save(1, &c.sigFPState) 32 } 33 34 func (c *Context64) afterLoad(context.Context) {} 35 36 // +checklocksignore 37 func (c *Context64) StateLoad(ctx context.Context, stateSourceObject state.Source) { 38 stateSourceObject.Load(0, &c.State) 39 stateSourceObject.Load(1, &c.sigFPState) 40 } 41 42 func init() { 43 state.Register((*Context64)(nil)) 44 }