diff options
Diffstat (limited to 'pkg/abi/linux')
-rw-r--r-- | pkg/abi/linux/linux_amd64_state_autogen.go | 122 | ||||
-rw-r--r-- | pkg/abi/linux/linux_arm64_state_autogen.go | 30 | ||||
-rw-r--r-- | pkg/abi/linux/linux_state_autogen.go | 128 |
3 files changed, 140 insertions, 140 deletions
diff --git a/pkg/abi/linux/linux_amd64_state_autogen.go b/pkg/abi/linux/linux_amd64_state_autogen.go index 474bb3e65..78a4a30e7 100644 --- a/pkg/abi/linux/linux_amd64_state_autogen.go +++ b/pkg/abi/linux/linux_amd64_state_autogen.go @@ -11,11 +11,11 @@ import ( "gvisor.dev/gvisor/pkg/state" ) -func (x *PtraceRegs) StateTypeName() string { +func (p *PtraceRegs) StateTypeName() string { return "pkg/abi/linux.PtraceRegs" } -func (x *PtraceRegs) StateFields() []string { +func (p *PtraceRegs) StateFields() []string { return []string{ "R15", "R14", @@ -47,69 +47,69 @@ func (x *PtraceRegs) StateFields() []string { } } -func (x *PtraceRegs) beforeSave() {} +func (p *PtraceRegs) beforeSave() {} -func (x *PtraceRegs) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.R15) - m.Save(1, &x.R14) - m.Save(2, &x.R13) - m.Save(3, &x.R12) - m.Save(4, &x.Rbp) - m.Save(5, &x.Rbx) - m.Save(6, &x.R11) - m.Save(7, &x.R10) - m.Save(8, &x.R9) - m.Save(9, &x.R8) - m.Save(10, &x.Rax) - m.Save(11, &x.Rcx) - m.Save(12, &x.Rdx) - m.Save(13, &x.Rsi) - m.Save(14, &x.Rdi) - m.Save(15, &x.Orig_rax) - m.Save(16, &x.Rip) - m.Save(17, &x.Cs) - m.Save(18, &x.Eflags) - m.Save(19, &x.Rsp) - m.Save(20, &x.Ss) - m.Save(21, &x.Fs_base) - m.Save(22, &x.Gs_base) - m.Save(23, &x.Ds) - m.Save(24, &x.Es) - m.Save(25, &x.Fs) - m.Save(26, &x.Gs) +func (p *PtraceRegs) StateSave(stateSinkObject state.Sink) { + p.beforeSave() + stateSinkObject.Save(0, &p.R15) + stateSinkObject.Save(1, &p.R14) + stateSinkObject.Save(2, &p.R13) + stateSinkObject.Save(3, &p.R12) + stateSinkObject.Save(4, &p.Rbp) + stateSinkObject.Save(5, &p.Rbx) + stateSinkObject.Save(6, &p.R11) + stateSinkObject.Save(7, &p.R10) + stateSinkObject.Save(8, &p.R9) + stateSinkObject.Save(9, &p.R8) + stateSinkObject.Save(10, &p.Rax) + stateSinkObject.Save(11, &p.Rcx) + stateSinkObject.Save(12, &p.Rdx) + stateSinkObject.Save(13, &p.Rsi) + stateSinkObject.Save(14, &p.Rdi) + stateSinkObject.Save(15, &p.Orig_rax) + stateSinkObject.Save(16, &p.Rip) + stateSinkObject.Save(17, &p.Cs) + stateSinkObject.Save(18, &p.Eflags) + stateSinkObject.Save(19, &p.Rsp) + stateSinkObject.Save(20, &p.Ss) + stateSinkObject.Save(21, &p.Fs_base) + stateSinkObject.Save(22, &p.Gs_base) + stateSinkObject.Save(23, &p.Ds) + stateSinkObject.Save(24, &p.Es) + stateSinkObject.Save(25, &p.Fs) + stateSinkObject.Save(26, &p.Gs) } -func (x *PtraceRegs) afterLoad() {} +func (p *PtraceRegs) afterLoad() {} -func (x *PtraceRegs) StateLoad(m state.Source) { - m.Load(0, &x.R15) - m.Load(1, &x.R14) - m.Load(2, &x.R13) - m.Load(3, &x.R12) - m.Load(4, &x.Rbp) - m.Load(5, &x.Rbx) - m.Load(6, &x.R11) - m.Load(7, &x.R10) - m.Load(8, &x.R9) - m.Load(9, &x.R8) - m.Load(10, &x.Rax) - m.Load(11, &x.Rcx) - m.Load(12, &x.Rdx) - m.Load(13, &x.Rsi) - m.Load(14, &x.Rdi) - m.Load(15, &x.Orig_rax) - m.Load(16, &x.Rip) - m.Load(17, &x.Cs) - m.Load(18, &x.Eflags) - m.Load(19, &x.Rsp) - m.Load(20, &x.Ss) - m.Load(21, &x.Fs_base) - m.Load(22, &x.Gs_base) - m.Load(23, &x.Ds) - m.Load(24, &x.Es) - m.Load(25, &x.Fs) - m.Load(26, &x.Gs) +func (p *PtraceRegs) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &p.R15) + stateSourceObject.Load(1, &p.R14) + stateSourceObject.Load(2, &p.R13) + stateSourceObject.Load(3, &p.R12) + stateSourceObject.Load(4, &p.Rbp) + stateSourceObject.Load(5, &p.Rbx) + stateSourceObject.Load(6, &p.R11) + stateSourceObject.Load(7, &p.R10) + stateSourceObject.Load(8, &p.R9) + stateSourceObject.Load(9, &p.R8) + stateSourceObject.Load(10, &p.Rax) + stateSourceObject.Load(11, &p.Rcx) + stateSourceObject.Load(12, &p.Rdx) + stateSourceObject.Load(13, &p.Rsi) + stateSourceObject.Load(14, &p.Rdi) + stateSourceObject.Load(15, &p.Orig_rax) + stateSourceObject.Load(16, &p.Rip) + stateSourceObject.Load(17, &p.Cs) + stateSourceObject.Load(18, &p.Eflags) + stateSourceObject.Load(19, &p.Rsp) + stateSourceObject.Load(20, &p.Ss) + stateSourceObject.Load(21, &p.Fs_base) + stateSourceObject.Load(22, &p.Gs_base) + stateSourceObject.Load(23, &p.Ds) + stateSourceObject.Load(24, &p.Es) + stateSourceObject.Load(25, &p.Fs) + stateSourceObject.Load(26, &p.Gs) } func init() { diff --git a/pkg/abi/linux/linux_arm64_state_autogen.go b/pkg/abi/linux/linux_arm64_state_autogen.go index 30c6bef55..5fc6cf73f 100644 --- a/pkg/abi/linux/linux_arm64_state_autogen.go +++ b/pkg/abi/linux/linux_arm64_state_autogen.go @@ -10,11 +10,11 @@ import ( "gvisor.dev/gvisor/pkg/state" ) -func (x *PtraceRegs) StateTypeName() string { +func (p *PtraceRegs) StateTypeName() string { return "pkg/abi/linux.PtraceRegs" } -func (x *PtraceRegs) StateFields() []string { +func (p *PtraceRegs) StateFields() []string { return []string{ "Regs", "Sp", @@ -23,23 +23,23 @@ func (x *PtraceRegs) StateFields() []string { } } -func (x *PtraceRegs) beforeSave() {} +func (p *PtraceRegs) beforeSave() {} -func (x *PtraceRegs) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.Regs) - m.Save(1, &x.Sp) - m.Save(2, &x.Pc) - m.Save(3, &x.Pstate) +func (p *PtraceRegs) StateSave(stateSinkObject state.Sink) { + p.beforeSave() + stateSinkObject.Save(0, &p.Regs) + stateSinkObject.Save(1, &p.Sp) + stateSinkObject.Save(2, &p.Pc) + stateSinkObject.Save(3, &p.Pstate) } -func (x *PtraceRegs) afterLoad() {} +func (p *PtraceRegs) afterLoad() {} -func (x *PtraceRegs) StateLoad(m state.Source) { - m.Load(0, &x.Regs) - m.Load(1, &x.Sp) - m.Load(2, &x.Pc) - m.Load(3, &x.Pstate) +func (p *PtraceRegs) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &p.Regs) + stateSourceObject.Load(1, &p.Sp) + stateSourceObject.Load(2, &p.Pc) + stateSourceObject.Load(3, &p.Pstate) } func init() { diff --git a/pkg/abi/linux/linux_state_autogen.go b/pkg/abi/linux/linux_state_autogen.go index a2bfcd215..53477bee5 100644 --- a/pkg/abi/linux/linux_state_autogen.go +++ b/pkg/abi/linux/linux_state_autogen.go @@ -6,11 +6,11 @@ import ( "gvisor.dev/gvisor/pkg/state" ) -func (x *IOEvent) StateTypeName() string { +func (i *IOEvent) StateTypeName() string { return "pkg/abi/linux.IOEvent" } -func (x *IOEvent) StateFields() []string { +func (i *IOEvent) StateFields() []string { return []string{ "Data", "Obj", @@ -19,30 +19,30 @@ func (x *IOEvent) StateFields() []string { } } -func (x *IOEvent) beforeSave() {} +func (i *IOEvent) beforeSave() {} -func (x *IOEvent) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.Data) - m.Save(1, &x.Obj) - m.Save(2, &x.Result) - m.Save(3, &x.Result2) +func (i *IOEvent) StateSave(stateSinkObject state.Sink) { + i.beforeSave() + stateSinkObject.Save(0, &i.Data) + stateSinkObject.Save(1, &i.Obj) + stateSinkObject.Save(2, &i.Result) + stateSinkObject.Save(3, &i.Result2) } -func (x *IOEvent) afterLoad() {} +func (i *IOEvent) afterLoad() {} -func (x *IOEvent) StateLoad(m state.Source) { - m.Load(0, &x.Data) - m.Load(1, &x.Obj) - m.Load(2, &x.Result) - m.Load(3, &x.Result2) +func (i *IOEvent) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &i.Data) + stateSourceObject.Load(1, &i.Obj) + stateSourceObject.Load(2, &i.Result) + stateSourceObject.Load(3, &i.Result2) } -func (x *BPFInstruction) StateTypeName() string { +func (b *BPFInstruction) StateTypeName() string { return "pkg/abi/linux.BPFInstruction" } -func (x *BPFInstruction) StateFields() []string { +func (b *BPFInstruction) StateFields() []string { return []string{ "OpCode", "JumpIfTrue", @@ -51,30 +51,30 @@ func (x *BPFInstruction) StateFields() []string { } } -func (x *BPFInstruction) beforeSave() {} +func (b *BPFInstruction) beforeSave() {} -func (x *BPFInstruction) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.OpCode) - m.Save(1, &x.JumpIfTrue) - m.Save(2, &x.JumpIfFalse) - m.Save(3, &x.K) +func (b *BPFInstruction) StateSave(stateSinkObject state.Sink) { + b.beforeSave() + stateSinkObject.Save(0, &b.OpCode) + stateSinkObject.Save(1, &b.JumpIfTrue) + stateSinkObject.Save(2, &b.JumpIfFalse) + stateSinkObject.Save(3, &b.K) } -func (x *BPFInstruction) afterLoad() {} +func (b *BPFInstruction) afterLoad() {} -func (x *BPFInstruction) StateLoad(m state.Source) { - m.Load(0, &x.OpCode) - m.Load(1, &x.JumpIfTrue) - m.Load(2, &x.JumpIfFalse) - m.Load(3, &x.K) +func (b *BPFInstruction) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &b.OpCode) + stateSourceObject.Load(1, &b.JumpIfTrue) + stateSourceObject.Load(2, &b.JumpIfFalse) + stateSourceObject.Load(3, &b.K) } -func (x *KernelTermios) StateTypeName() string { +func (k *KernelTermios) StateTypeName() string { return "pkg/abi/linux.KernelTermios" } -func (x *KernelTermios) StateFields() []string { +func (k *KernelTermios) StateFields() []string { return []string{ "InputFlags", "OutputFlags", @@ -87,57 +87,57 @@ func (x *KernelTermios) StateFields() []string { } } -func (x *KernelTermios) beforeSave() {} +func (k *KernelTermios) beforeSave() {} -func (x *KernelTermios) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.InputFlags) - m.Save(1, &x.OutputFlags) - m.Save(2, &x.ControlFlags) - m.Save(3, &x.LocalFlags) - m.Save(4, &x.LineDiscipline) - m.Save(5, &x.ControlCharacters) - m.Save(6, &x.InputSpeed) - m.Save(7, &x.OutputSpeed) +func (k *KernelTermios) StateSave(stateSinkObject state.Sink) { + k.beforeSave() + stateSinkObject.Save(0, &k.InputFlags) + stateSinkObject.Save(1, &k.OutputFlags) + stateSinkObject.Save(2, &k.ControlFlags) + stateSinkObject.Save(3, &k.LocalFlags) + stateSinkObject.Save(4, &k.LineDiscipline) + stateSinkObject.Save(5, &k.ControlCharacters) + stateSinkObject.Save(6, &k.InputSpeed) + stateSinkObject.Save(7, &k.OutputSpeed) } -func (x *KernelTermios) afterLoad() {} +func (k *KernelTermios) afterLoad() {} -func (x *KernelTermios) StateLoad(m state.Source) { - m.Load(0, &x.InputFlags) - m.Load(1, &x.OutputFlags) - m.Load(2, &x.ControlFlags) - m.Load(3, &x.LocalFlags) - m.Load(4, &x.LineDiscipline) - m.Load(5, &x.ControlCharacters) - m.Load(6, &x.InputSpeed) - m.Load(7, &x.OutputSpeed) +func (k *KernelTermios) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &k.InputFlags) + stateSourceObject.Load(1, &k.OutputFlags) + stateSourceObject.Load(2, &k.ControlFlags) + stateSourceObject.Load(3, &k.LocalFlags) + stateSourceObject.Load(4, &k.LineDiscipline) + stateSourceObject.Load(5, &k.ControlCharacters) + stateSourceObject.Load(6, &k.InputSpeed) + stateSourceObject.Load(7, &k.OutputSpeed) } -func (x *WindowSize) StateTypeName() string { +func (w *WindowSize) StateTypeName() string { return "pkg/abi/linux.WindowSize" } -func (x *WindowSize) StateFields() []string { +func (w *WindowSize) StateFields() []string { return []string{ "Rows", "Cols", } } -func (x *WindowSize) beforeSave() {} +func (w *WindowSize) beforeSave() {} -func (x *WindowSize) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.Rows) - m.Save(1, &x.Cols) +func (w *WindowSize) StateSave(stateSinkObject state.Sink) { + w.beforeSave() + stateSinkObject.Save(0, &w.Rows) + stateSinkObject.Save(1, &w.Cols) } -func (x *WindowSize) afterLoad() {} +func (w *WindowSize) afterLoad() {} -func (x *WindowSize) StateLoad(m state.Source) { - m.Load(0, &x.Rows) - m.Load(1, &x.Cols) +func (w *WindowSize) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &w.Rows) + stateSourceObject.Load(1, &w.Cols) } func init() { |