github.com/nicocha30/gvisor-ligolo@v0.0.0-20230726075806-989fa2c0a413/pkg/abi/linux/linux_amd64_state_autogen.go (about) 1 // automatically generated by stateify. 2 3 //go:build amd64 && amd64 && amd64 && amd64 && amd64 && amd64 4 // +build amd64,amd64,amd64,amd64,amd64,amd64 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 "R15", 19 "R14", 20 "R13", 21 "R12", 22 "Rbp", 23 "Rbx", 24 "R11", 25 "R10", 26 "R9", 27 "R8", 28 "Rax", 29 "Rcx", 30 "Rdx", 31 "Rsi", 32 "Rdi", 33 "Orig_rax", 34 "Rip", 35 "Cs", 36 "Eflags", 37 "Rsp", 38 "Ss", 39 "Fs_base", 40 "Gs_base", 41 "Ds", 42 "Es", 43 "Fs", 44 "Gs", 45 } 46 } 47 48 func (p *PtraceRegs) beforeSave() {} 49 50 // +checklocksignore 51 func (p *PtraceRegs) StateSave(stateSinkObject state.Sink) { 52 p.beforeSave() 53 stateSinkObject.Save(0, &p.R15) 54 stateSinkObject.Save(1, &p.R14) 55 stateSinkObject.Save(2, &p.R13) 56 stateSinkObject.Save(3, &p.R12) 57 stateSinkObject.Save(4, &p.Rbp) 58 stateSinkObject.Save(5, &p.Rbx) 59 stateSinkObject.Save(6, &p.R11) 60 stateSinkObject.Save(7, &p.R10) 61 stateSinkObject.Save(8, &p.R9) 62 stateSinkObject.Save(9, &p.R8) 63 stateSinkObject.Save(10, &p.Rax) 64 stateSinkObject.Save(11, &p.Rcx) 65 stateSinkObject.Save(12, &p.Rdx) 66 stateSinkObject.Save(13, &p.Rsi) 67 stateSinkObject.Save(14, &p.Rdi) 68 stateSinkObject.Save(15, &p.Orig_rax) 69 stateSinkObject.Save(16, &p.Rip) 70 stateSinkObject.Save(17, &p.Cs) 71 stateSinkObject.Save(18, &p.Eflags) 72 stateSinkObject.Save(19, &p.Rsp) 73 stateSinkObject.Save(20, &p.Ss) 74 stateSinkObject.Save(21, &p.Fs_base) 75 stateSinkObject.Save(22, &p.Gs_base) 76 stateSinkObject.Save(23, &p.Ds) 77 stateSinkObject.Save(24, &p.Es) 78 stateSinkObject.Save(25, &p.Fs) 79 stateSinkObject.Save(26, &p.Gs) 80 } 81 82 func (p *PtraceRegs) afterLoad() {} 83 84 // +checklocksignore 85 func (p *PtraceRegs) StateLoad(stateSourceObject state.Source) { 86 stateSourceObject.Load(0, &p.R15) 87 stateSourceObject.Load(1, &p.R14) 88 stateSourceObject.Load(2, &p.R13) 89 stateSourceObject.Load(3, &p.R12) 90 stateSourceObject.Load(4, &p.Rbp) 91 stateSourceObject.Load(5, &p.Rbx) 92 stateSourceObject.Load(6, &p.R11) 93 stateSourceObject.Load(7, &p.R10) 94 stateSourceObject.Load(8, &p.R9) 95 stateSourceObject.Load(9, &p.R8) 96 stateSourceObject.Load(10, &p.Rax) 97 stateSourceObject.Load(11, &p.Rcx) 98 stateSourceObject.Load(12, &p.Rdx) 99 stateSourceObject.Load(13, &p.Rsi) 100 stateSourceObject.Load(14, &p.Rdi) 101 stateSourceObject.Load(15, &p.Orig_rax) 102 stateSourceObject.Load(16, &p.Rip) 103 stateSourceObject.Load(17, &p.Cs) 104 stateSourceObject.Load(18, &p.Eflags) 105 stateSourceObject.Load(19, &p.Rsp) 106 stateSourceObject.Load(20, &p.Ss) 107 stateSourceObject.Load(21, &p.Fs_base) 108 stateSourceObject.Load(22, &p.Gs_base) 109 stateSourceObject.Load(23, &p.Ds) 110 stateSourceObject.Load(24, &p.Es) 111 stateSourceObject.Load(25, &p.Fs) 112 stateSourceObject.Load(26, &p.Gs) 113 } 114 115 func init() { 116 state.Register((*PtraceRegs)(nil)) 117 }