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/memmap/memmap_state_autogen.go | |
parent | 8f9d99c812b7599c52ed98f80c1a33717758a5c6 (diff) | |
parent | a55bd73d4802112a7055de8663e947b9c0f42a2e (diff) |
Merge release-20200928.0-66-ga55bd73d4 (automated)
Diffstat (limited to 'pkg/sentry/memmap/memmap_state_autogen.go')
-rw-r--r-- | pkg/sentry/memmap/memmap_state_autogen.go | 70 |
1 files changed, 35 insertions, 35 deletions
diff --git a/pkg/sentry/memmap/memmap_state_autogen.go b/pkg/sentry/memmap/memmap_state_autogen.go index 4feb2eb66..55ccf8cfd 100644 --- a/pkg/sentry/memmap/memmap_state_autogen.go +++ b/pkg/sentry/memmap/memmap_state_autogen.go @@ -6,63 +6,63 @@ import ( "gvisor.dev/gvisor/pkg/state" ) -func (x *FileRange) StateTypeName() string { +func (f *FileRange) StateTypeName() string { return "pkg/sentry/memmap.FileRange" } -func (x *FileRange) StateFields() []string { +func (f *FileRange) StateFields() []string { return []string{ "Start", "End", } } -func (x *FileRange) beforeSave() {} +func (f *FileRange) beforeSave() {} -func (x *FileRange) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.Start) - m.Save(1, &x.End) +func (f *FileRange) StateSave(stateSinkObject state.Sink) { + f.beforeSave() + stateSinkObject.Save(0, &f.Start) + stateSinkObject.Save(1, &f.End) } -func (x *FileRange) afterLoad() {} +func (f *FileRange) afterLoad() {} -func (x *FileRange) StateLoad(m state.Source) { - m.Load(0, &x.Start) - m.Load(1, &x.End) +func (f *FileRange) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &f.Start) + stateSourceObject.Load(1, &f.End) } -func (x *MappableRange) StateTypeName() string { +func (m *MappableRange) StateTypeName() string { return "pkg/sentry/memmap.MappableRange" } -func (x *MappableRange) StateFields() []string { +func (m *MappableRange) StateFields() []string { return []string{ "Start", "End", } } -func (x *MappableRange) beforeSave() {} +func (m *MappableRange) beforeSave() {} -func (x *MappableRange) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.Start) - m.Save(1, &x.End) +func (m *MappableRange) StateSave(stateSinkObject state.Sink) { + m.beforeSave() + stateSinkObject.Save(0, &m.Start) + stateSinkObject.Save(1, &m.End) } -func (x *MappableRange) afterLoad() {} +func (m *MappableRange) afterLoad() {} -func (x *MappableRange) StateLoad(m state.Source) { - m.Load(0, &x.Start) - m.Load(1, &x.End) +func (m *MappableRange) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &m.Start) + stateSourceObject.Load(1, &m.End) } -func (x *MappingOfRange) StateTypeName() string { +func (m *MappingOfRange) StateTypeName() string { return "pkg/sentry/memmap.MappingOfRange" } -func (x *MappingOfRange) StateFields() []string { +func (m *MappingOfRange) StateFields() []string { return []string{ "MappingSpace", "AddrRange", @@ -70,21 +70,21 @@ func (x *MappingOfRange) StateFields() []string { } } -func (x *MappingOfRange) beforeSave() {} +func (m *MappingOfRange) beforeSave() {} -func (x *MappingOfRange) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.MappingSpace) - m.Save(1, &x.AddrRange) - m.Save(2, &x.Writable) +func (m *MappingOfRange) StateSave(stateSinkObject state.Sink) { + m.beforeSave() + stateSinkObject.Save(0, &m.MappingSpace) + stateSinkObject.Save(1, &m.AddrRange) + stateSinkObject.Save(2, &m.Writable) } -func (x *MappingOfRange) afterLoad() {} +func (m *MappingOfRange) afterLoad() {} -func (x *MappingOfRange) StateLoad(m state.Source) { - m.Load(0, &x.MappingSpace) - m.Load(1, &x.AddrRange) - m.Load(2, &x.Writable) +func (m *MappingOfRange) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &m.MappingSpace) + stateSourceObject.Load(1, &m.AddrRange) + stateSourceObject.Load(2, &m.Writable) } func init() { |