github.com/nicocha30/gvisor-ligolo@v0.0.0-20230726075806-989fa2c0a413/pkg/abi/linux/linux_arm64_state_autogen.go (about) 1 // automatically generated by stateify. 2 3 //go:build arm64 && arm64 && arm64 && arm64 && arm64 4 // +build arm64,arm64,arm64,arm64,arm64 5 6 package linux 7 8 import ( 9 "github.com/nicocha30/gvisor-ligolo/pkg/state" 10 ) 11 12 func (p *PtraceRegs) StateTypeName() string { 13 return "pkg/abi/linux.PtraceRegs" 14 } 15 16 func (p *PtraceRegs) StateFields() []string { 17 return []string{ 18 "Regs", 19 "Sp", 20 "Pc", 21 "Pstate", 22 } 23 } 24 25 func (p *PtraceRegs) beforeSave() {} 26 27 // +checklocksignore 28 func (p *PtraceRegs) StateSave(stateSinkObject state.Sink) { 29 p.beforeSave() 30 stateSinkObject.Save(0, &p.Regs) 31 stateSinkObject.Save(1, &p.Sp) 32 stateSinkObject.Save(2, &p.Pc) 33 stateSinkObject.Save(3, &p.Pstate) 34 } 35 36 func (p *PtraceRegs) afterLoad() {} 37 38 // +checklocksignore 39 func (p *PtraceRegs) StateLoad(stateSourceObject state.Source) { 40 stateSourceObject.Load(0, &p.Regs) 41 stateSourceObject.Load(1, &p.Sp) 42 stateSourceObject.Load(2, &p.Pc) 43 stateSourceObject.Load(3, &p.Pstate) 44 } 45 46 func init() { 47 state.Register((*PtraceRegs)(nil)) 48 }