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/usermem | |
parent | 8f9d99c812b7599c52ed98f80c1a33717758a5c6 (diff) | |
parent | a55bd73d4802112a7055de8663e947b9c0f42a2e (diff) |
Merge release-20200928.0-66-ga55bd73d4 (automated)
Diffstat (limited to 'pkg/usermem')
-rw-r--r-- | pkg/usermem/usermem_state_autogen.go | 52 |
1 files changed, 26 insertions, 26 deletions
diff --git a/pkg/usermem/usermem_state_autogen.go b/pkg/usermem/usermem_state_autogen.go index d0c854254..9ea1da43e 100644 --- a/pkg/usermem/usermem_state_autogen.go +++ b/pkg/usermem/usermem_state_autogen.go @@ -6,11 +6,11 @@ import ( "gvisor.dev/gvisor/pkg/state" ) -func (x *AccessType) StateTypeName() string { +func (a *AccessType) StateTypeName() string { return "pkg/usermem.AccessType" } -func (x *AccessType) StateFields() []string { +func (a *AccessType) StateFields() []string { return []string{ "Read", "Write", @@ -18,55 +18,55 @@ func (x *AccessType) StateFields() []string { } } -func (x *AccessType) beforeSave() {} +func (a *AccessType) beforeSave() {} -func (x *AccessType) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.Read) - m.Save(1, &x.Write) - m.Save(2, &x.Execute) +func (a *AccessType) StateSave(stateSinkObject state.Sink) { + a.beforeSave() + stateSinkObject.Save(0, &a.Read) + stateSinkObject.Save(1, &a.Write) + stateSinkObject.Save(2, &a.Execute) } -func (x *AccessType) afterLoad() {} +func (a *AccessType) afterLoad() {} -func (x *AccessType) StateLoad(m state.Source) { - m.Load(0, &x.Read) - m.Load(1, &x.Write) - m.Load(2, &x.Execute) +func (a *AccessType) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &a.Read) + stateSourceObject.Load(1, &a.Write) + stateSourceObject.Load(2, &a.Execute) } -func (x *Addr) StateTypeName() string { +func (a *Addr) StateTypeName() string { return "pkg/usermem.Addr" } -func (x *Addr) StateFields() []string { +func (a *Addr) StateFields() []string { return nil } -func (x *AddrRange) StateTypeName() string { +func (a *AddrRange) StateTypeName() string { return "pkg/usermem.AddrRange" } -func (x *AddrRange) StateFields() []string { +func (a *AddrRange) StateFields() []string { return []string{ "Start", "End", } } -func (x *AddrRange) beforeSave() {} +func (a *AddrRange) beforeSave() {} -func (x *AddrRange) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.Start) - m.Save(1, &x.End) +func (a *AddrRange) StateSave(stateSinkObject state.Sink) { + a.beforeSave() + stateSinkObject.Save(0, &a.Start) + stateSinkObject.Save(1, &a.End) } -func (x *AddrRange) afterLoad() {} +func (a *AddrRange) afterLoad() {} -func (x *AddrRange) StateLoad(m state.Source) { - m.Load(0, &x.Start) - m.Load(1, &x.End) +func (a *AddrRange) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &a.Start) + stateSourceObject.Load(1, &a.End) } func init() { |