diff options
author | gVisor bot <gvisor-bot@google.com> | 2020-10-08 01:32:17 +0000 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-10-08 01:32:17 +0000 |
commit | 8f70c8003e9d132fc766ed7d92ce805c093d518b (patch) | |
tree | 6d77a3246e3f04605790d410e7630cb910704ced /pkg/sentry/arch | |
parent | 8f9d99c812b7599c52ed98f80c1a33717758a5c6 (diff) | |
parent | a55bd73d4802112a7055de8663e947b9c0f42a2e (diff) |
Merge release-20200928.0-66-ga55bd73d4 (automated)
Diffstat (limited to 'pkg/sentry/arch')
-rw-r--r-- | pkg/sentry/arch/arch_aarch64_state_autogen.go | 52 | ||||
-rw-r--r-- | pkg/sentry/arch/arch_amd64_state_autogen.go | 22 | ||||
-rw-r--r-- | pkg/sentry/arch/arch_arm64_state_autogen.go | 22 | ||||
-rw-r--r-- | pkg/sentry/arch/arch_state_autogen.go | 146 | ||||
-rw-r--r-- | pkg/sentry/arch/arch_x86_impl_state_autogen.go | 26 | ||||
-rw-r--r-- | pkg/sentry/arch/arch_x86_state_autogen.go | 18 |
6 files changed, 143 insertions, 143 deletions
diff --git a/pkg/sentry/arch/arch_aarch64_state_autogen.go b/pkg/sentry/arch/arch_aarch64_state_autogen.go index 6b698f9ce..817679b05 100644 --- a/pkg/sentry/arch/arch_aarch64_state_autogen.go +++ b/pkg/sentry/arch/arch_aarch64_state_autogen.go @@ -8,37 +8,37 @@ import ( "gvisor.dev/gvisor/pkg/state" ) -func (x *Registers) StateTypeName() string { +func (r *Registers) StateTypeName() string { return "pkg/sentry/arch.Registers" } -func (x *Registers) StateFields() []string { +func (r *Registers) StateFields() []string { return []string{ "PtraceRegs", "TPIDR_EL0", } } -func (x *Registers) beforeSave() {} +func (r *Registers) beforeSave() {} -func (x *Registers) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.PtraceRegs) - m.Save(1, &x.TPIDR_EL0) +func (r *Registers) StateSave(stateSinkObject state.Sink) { + r.beforeSave() + stateSinkObject.Save(0, &r.PtraceRegs) + stateSinkObject.Save(1, &r.TPIDR_EL0) } -func (x *Registers) afterLoad() {} +func (r *Registers) afterLoad() {} -func (x *Registers) StateLoad(m state.Source) { - m.Load(0, &x.PtraceRegs) - m.Load(1, &x.TPIDR_EL0) +func (r *Registers) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &r.PtraceRegs) + stateSourceObject.Load(1, &r.TPIDR_EL0) } -func (x *State) StateTypeName() string { +func (s *State) StateTypeName() string { return "pkg/sentry/arch.State" } -func (x *State) StateFields() []string { +func (s *State) StateFields() []string { return []string{ "Regs", "aarch64FPState", @@ -47,23 +47,23 @@ func (x *State) StateFields() []string { } } -func (x *State) beforeSave() {} +func (s *State) beforeSave() {} -func (x *State) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.Regs) - m.Save(1, &x.aarch64FPState) - m.Save(2, &x.FeatureSet) - m.Save(3, &x.OrigR0) +func (s *State) StateSave(stateSinkObject state.Sink) { + s.beforeSave() + stateSinkObject.Save(0, &s.Regs) + stateSinkObject.Save(1, &s.aarch64FPState) + stateSinkObject.Save(2, &s.FeatureSet) + stateSinkObject.Save(3, &s.OrigR0) } -func (x *State) afterLoad() {} +func (s *State) afterLoad() {} -func (x *State) StateLoad(m state.Source) { - m.Load(0, &x.Regs) - m.LoadWait(1, &x.aarch64FPState) - m.Load(2, &x.FeatureSet) - m.Load(3, &x.OrigR0) +func (s *State) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &s.Regs) + stateSourceObject.LoadWait(1, &s.aarch64FPState) + stateSourceObject.Load(2, &s.FeatureSet) + stateSourceObject.Load(3, &s.OrigR0) } func init() { diff --git a/pkg/sentry/arch/arch_amd64_state_autogen.go b/pkg/sentry/arch/arch_amd64_state_autogen.go index a6afbbb53..7fe18338d 100644 --- a/pkg/sentry/arch/arch_amd64_state_autogen.go +++ b/pkg/sentry/arch/arch_amd64_state_autogen.go @@ -10,30 +10,30 @@ import ( "gvisor.dev/gvisor/pkg/state" ) -func (x *context64) StateTypeName() string { +func (c *context64) StateTypeName() string { return "pkg/sentry/arch.context64" } -func (x *context64) StateFields() []string { +func (c *context64) StateFields() []string { return []string{ "State", "sigFPState", } } -func (x *context64) beforeSave() {} +func (c *context64) beforeSave() {} -func (x *context64) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.State) - m.Save(1, &x.sigFPState) +func (c *context64) StateSave(stateSinkObject state.Sink) { + c.beforeSave() + stateSinkObject.Save(0, &c.State) + stateSinkObject.Save(1, &c.sigFPState) } -func (x *context64) afterLoad() {} +func (c *context64) afterLoad() {} -func (x *context64) StateLoad(m state.Source) { - m.Load(0, &x.State) - m.Load(1, &x.sigFPState) +func (c *context64) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &c.State) + stateSourceObject.Load(1, &c.sigFPState) } func init() { diff --git a/pkg/sentry/arch/arch_arm64_state_autogen.go b/pkg/sentry/arch/arch_arm64_state_autogen.go index 4e69512bb..bece3fa9e 100644 --- a/pkg/sentry/arch/arch_arm64_state_autogen.go +++ b/pkg/sentry/arch/arch_arm64_state_autogen.go @@ -10,30 +10,30 @@ import ( "gvisor.dev/gvisor/pkg/state" ) -func (x *context64) StateTypeName() string { +func (c *context64) StateTypeName() string { return "pkg/sentry/arch.context64" } -func (x *context64) StateFields() []string { +func (c *context64) StateFields() []string { return []string{ "State", "sigFPState", } } -func (x *context64) beforeSave() {} +func (c *context64) beforeSave() {} -func (x *context64) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.State) - m.Save(1, &x.sigFPState) +func (c *context64) StateSave(stateSinkObject state.Sink) { + c.beforeSave() + stateSinkObject.Save(0, &c.State) + stateSinkObject.Save(1, &c.sigFPState) } -func (x *context64) afterLoad() {} +func (c *context64) afterLoad() {} -func (x *context64) StateLoad(m state.Source) { - m.Load(0, &x.State) - m.Load(1, &x.sigFPState) +func (c *context64) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &c.State) + stateSourceObject.Load(1, &c.sigFPState) } func init() { diff --git a/pkg/sentry/arch/arch_state_autogen.go b/pkg/sentry/arch/arch_state_autogen.go index b29124813..e0a1de627 100644 --- a/pkg/sentry/arch/arch_state_autogen.go +++ b/pkg/sentry/arch/arch_state_autogen.go @@ -8,11 +8,11 @@ import ( "gvisor.dev/gvisor/pkg/state" ) -func (x *MmapLayout) StateTypeName() string { +func (m *MmapLayout) StateTypeName() string { return "pkg/sentry/arch.MmapLayout" } -func (x *MmapLayout) StateFields() []string { +func (m *MmapLayout) StateFields() []string { return []string{ "MinAddr", "MaxAddr", @@ -23,60 +23,60 @@ func (x *MmapLayout) StateFields() []string { } } -func (x *MmapLayout) beforeSave() {} +func (m *MmapLayout) beforeSave() {} -func (x *MmapLayout) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.MinAddr) - m.Save(1, &x.MaxAddr) - m.Save(2, &x.BottomUpBase) - m.Save(3, &x.TopDownBase) - m.Save(4, &x.DefaultDirection) - m.Save(5, &x.MaxStackRand) +func (m *MmapLayout) StateSave(stateSinkObject state.Sink) { + m.beforeSave() + stateSinkObject.Save(0, &m.MinAddr) + stateSinkObject.Save(1, &m.MaxAddr) + stateSinkObject.Save(2, &m.BottomUpBase) + stateSinkObject.Save(3, &m.TopDownBase) + stateSinkObject.Save(4, &m.DefaultDirection) + stateSinkObject.Save(5, &m.MaxStackRand) } -func (x *MmapLayout) afterLoad() {} +func (m *MmapLayout) afterLoad() {} -func (x *MmapLayout) StateLoad(m state.Source) { - m.Load(0, &x.MinAddr) - m.Load(1, &x.MaxAddr) - m.Load(2, &x.BottomUpBase) - m.Load(3, &x.TopDownBase) - m.Load(4, &x.DefaultDirection) - m.Load(5, &x.MaxStackRand) +func (m *MmapLayout) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &m.MinAddr) + stateSourceObject.Load(1, &m.MaxAddr) + stateSourceObject.Load(2, &m.BottomUpBase) + stateSourceObject.Load(3, &m.TopDownBase) + stateSourceObject.Load(4, &m.DefaultDirection) + stateSourceObject.Load(5, &m.MaxStackRand) } -func (x *AuxEntry) StateTypeName() string { +func (a *AuxEntry) StateTypeName() string { return "pkg/sentry/arch.AuxEntry" } -func (x *AuxEntry) StateFields() []string { +func (a *AuxEntry) StateFields() []string { return []string{ "Key", "Value", } } -func (x *AuxEntry) beforeSave() {} +func (a *AuxEntry) beforeSave() {} -func (x *AuxEntry) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.Key) - m.Save(1, &x.Value) +func (a *AuxEntry) StateSave(stateSinkObject state.Sink) { + a.beforeSave() + stateSinkObject.Save(0, &a.Key) + stateSinkObject.Save(1, &a.Value) } -func (x *AuxEntry) afterLoad() {} +func (a *AuxEntry) afterLoad() {} -func (x *AuxEntry) StateLoad(m state.Source) { - m.Load(0, &x.Key) - m.Load(1, &x.Value) +func (a *AuxEntry) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &a.Key) + stateSourceObject.Load(1, &a.Value) } -func (x *SignalAct) StateTypeName() string { +func (s *SignalAct) StateTypeName() string { return "pkg/sentry/arch.SignalAct" } -func (x *SignalAct) StateFields() []string { +func (s *SignalAct) StateFields() []string { return []string{ "Handler", "Flags", @@ -85,30 +85,30 @@ func (x *SignalAct) StateFields() []string { } } -func (x *SignalAct) beforeSave() {} +func (s *SignalAct) beforeSave() {} -func (x *SignalAct) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.Handler) - m.Save(1, &x.Flags) - m.Save(2, &x.Restorer) - m.Save(3, &x.Mask) +func (s *SignalAct) StateSave(stateSinkObject state.Sink) { + s.beforeSave() + stateSinkObject.Save(0, &s.Handler) + stateSinkObject.Save(1, &s.Flags) + stateSinkObject.Save(2, &s.Restorer) + stateSinkObject.Save(3, &s.Mask) } -func (x *SignalAct) afterLoad() {} +func (s *SignalAct) afterLoad() {} -func (x *SignalAct) StateLoad(m state.Source) { - m.Load(0, &x.Handler) - m.Load(1, &x.Flags) - m.Load(2, &x.Restorer) - m.Load(3, &x.Mask) +func (s *SignalAct) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &s.Handler) + stateSourceObject.Load(1, &s.Flags) + stateSourceObject.Load(2, &s.Restorer) + stateSourceObject.Load(3, &s.Mask) } -func (x *SignalStack) StateTypeName() string { +func (s *SignalStack) StateTypeName() string { return "pkg/sentry/arch.SignalStack" } -func (x *SignalStack) StateFields() []string { +func (s *SignalStack) StateFields() []string { return []string{ "Addr", "Flags", @@ -116,28 +116,28 @@ func (x *SignalStack) StateFields() []string { } } -func (x *SignalStack) beforeSave() {} +func (s *SignalStack) beforeSave() {} -func (x *SignalStack) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.Addr) - m.Save(1, &x.Flags) - m.Save(2, &x.Size) +func (s *SignalStack) StateSave(stateSinkObject state.Sink) { + s.beforeSave() + stateSinkObject.Save(0, &s.Addr) + stateSinkObject.Save(1, &s.Flags) + stateSinkObject.Save(2, &s.Size) } -func (x *SignalStack) afterLoad() {} +func (s *SignalStack) afterLoad() {} -func (x *SignalStack) StateLoad(m state.Source) { - m.Load(0, &x.Addr) - m.Load(1, &x.Flags) - m.Load(2, &x.Size) +func (s *SignalStack) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &s.Addr) + stateSourceObject.Load(1, &s.Flags) + stateSourceObject.Load(2, &s.Size) } -func (x *SignalInfo) StateTypeName() string { +func (s *SignalInfo) StateTypeName() string { return "pkg/sentry/arch.SignalInfo" } -func (x *SignalInfo) StateFields() []string { +func (s *SignalInfo) StateFields() []string { return []string{ "Signo", "Errno", @@ -146,23 +146,23 @@ func (x *SignalInfo) StateFields() []string { } } -func (x *SignalInfo) beforeSave() {} +func (s *SignalInfo) beforeSave() {} -func (x *SignalInfo) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.Signo) - m.Save(1, &x.Errno) - m.Save(2, &x.Code) - m.Save(3, &x.Fields) +func (s *SignalInfo) StateSave(stateSinkObject state.Sink) { + s.beforeSave() + stateSinkObject.Save(0, &s.Signo) + stateSinkObject.Save(1, &s.Errno) + stateSinkObject.Save(2, &s.Code) + stateSinkObject.Save(3, &s.Fields) } -func (x *SignalInfo) afterLoad() {} +func (s *SignalInfo) afterLoad() {} -func (x *SignalInfo) StateLoad(m state.Source) { - m.Load(0, &x.Signo) - m.Load(1, &x.Errno) - m.Load(2, &x.Code) - m.Load(3, &x.Fields) +func (s *SignalInfo) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &s.Signo) + stateSourceObject.Load(1, &s.Errno) + stateSourceObject.Load(2, &s.Code) + stateSourceObject.Load(3, &s.Fields) } func init() { diff --git a/pkg/sentry/arch/arch_x86_impl_state_autogen.go b/pkg/sentry/arch/arch_x86_impl_state_autogen.go index e7738a847..e584c3f83 100644 --- a/pkg/sentry/arch/arch_x86_impl_state_autogen.go +++ b/pkg/sentry/arch/arch_x86_impl_state_autogen.go @@ -8,11 +8,11 @@ import ( "gvisor.dev/gvisor/pkg/state" ) -func (x *State) StateTypeName() string { +func (s *State) StateTypeName() string { return "pkg/sentry/arch.State" } -func (x *State) StateFields() []string { +func (s *State) StateFields() []string { return []string{ "Regs", "x86FPState", @@ -20,20 +20,20 @@ func (x *State) StateFields() []string { } } -func (x *State) beforeSave() {} +func (s *State) beforeSave() {} -func (x *State) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.Regs) - m.Save(1, &x.x86FPState) - m.Save(2, &x.FeatureSet) +func (s *State) StateSave(stateSinkObject state.Sink) { + s.beforeSave() + stateSinkObject.Save(0, &s.Regs) + stateSinkObject.Save(1, &s.x86FPState) + stateSinkObject.Save(2, &s.FeatureSet) } -func (x *State) StateLoad(m state.Source) { - m.Load(0, &x.Regs) - m.LoadWait(1, &x.x86FPState) - m.Load(2, &x.FeatureSet) - m.AfterLoad(x.afterLoad) +func (s *State) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &s.Regs) + stateSourceObject.LoadWait(1, &s.x86FPState) + stateSourceObject.Load(2, &s.FeatureSet) + stateSourceObject.AfterLoad(s.afterLoad) } func init() { diff --git a/pkg/sentry/arch/arch_x86_state_autogen.go b/pkg/sentry/arch/arch_x86_state_autogen.go index c52b40a26..11378624b 100644 --- a/pkg/sentry/arch/arch_x86_state_autogen.go +++ b/pkg/sentry/arch/arch_x86_state_autogen.go @@ -9,27 +9,27 @@ import ( "gvisor.dev/gvisor/pkg/state" ) -func (x *Registers) StateTypeName() string { +func (r *Registers) StateTypeName() string { return "pkg/sentry/arch.Registers" } -func (x *Registers) StateFields() []string { +func (r *Registers) StateFields() []string { return []string{ "PtraceRegs", } } -func (x *Registers) beforeSave() {} +func (r *Registers) beforeSave() {} -func (x *Registers) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.PtraceRegs) +func (r *Registers) StateSave(stateSinkObject state.Sink) { + r.beforeSave() + stateSinkObject.Save(0, &r.PtraceRegs) } -func (x *Registers) afterLoad() {} +func (r *Registers) afterLoad() {} -func (x *Registers) StateLoad(m state.Source) { - m.Load(0, &x.PtraceRegs) +func (r *Registers) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &r.PtraceRegs) } func init() { |