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/syscalls/linux | |
parent | 8f9d99c812b7599c52ed98f80c1a33717758a5c6 (diff) | |
parent | a55bd73d4802112a7055de8663e947b9c0f42a2e (diff) |
Merge release-20200928.0-66-ga55bd73d4 (automated)
Diffstat (limited to 'pkg/sentry/syscalls/linux')
-rw-r--r-- | pkg/sentry/syscalls/linux/linux_state_autogen.go | 86 | ||||
-rw-r--r-- | pkg/sentry/syscalls/linux/vfs2/vfs2_state_autogen.go | 26 |
2 files changed, 56 insertions, 56 deletions
diff --git a/pkg/sentry/syscalls/linux/linux_state_autogen.go b/pkg/sentry/syscalls/linux/linux_state_autogen.go index 8d70a3ee6..0ad0d2177 100644 --- a/pkg/sentry/syscalls/linux/linux_state_autogen.go +++ b/pkg/sentry/syscalls/linux/linux_state_autogen.go @@ -6,11 +6,11 @@ import ( "gvisor.dev/gvisor/pkg/state" ) -func (x *futexWaitRestartBlock) StateTypeName() string { +func (f *futexWaitRestartBlock) StateTypeName() string { return "pkg/sentry/syscalls/linux.futexWaitRestartBlock" } -func (x *futexWaitRestartBlock) StateFields() []string { +func (f *futexWaitRestartBlock) StateFields() []string { return []string{ "duration", "addr", @@ -20,32 +20,32 @@ func (x *futexWaitRestartBlock) StateFields() []string { } } -func (x *futexWaitRestartBlock) beforeSave() {} +func (f *futexWaitRestartBlock) beforeSave() {} -func (x *futexWaitRestartBlock) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.duration) - m.Save(1, &x.addr) - m.Save(2, &x.private) - m.Save(3, &x.val) - m.Save(4, &x.mask) +func (f *futexWaitRestartBlock) StateSave(stateSinkObject state.Sink) { + f.beforeSave() + stateSinkObject.Save(0, &f.duration) + stateSinkObject.Save(1, &f.addr) + stateSinkObject.Save(2, &f.private) + stateSinkObject.Save(3, &f.val) + stateSinkObject.Save(4, &f.mask) } -func (x *futexWaitRestartBlock) afterLoad() {} +func (f *futexWaitRestartBlock) afterLoad() {} -func (x *futexWaitRestartBlock) StateLoad(m state.Source) { - m.Load(0, &x.duration) - m.Load(1, &x.addr) - m.Load(2, &x.private) - m.Load(3, &x.val) - m.Load(4, &x.mask) +func (f *futexWaitRestartBlock) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &f.duration) + stateSourceObject.Load(1, &f.addr) + stateSourceObject.Load(2, &f.private) + stateSourceObject.Load(3, &f.val) + stateSourceObject.Load(4, &f.mask) } -func (x *pollRestartBlock) StateTypeName() string { +func (p *pollRestartBlock) StateTypeName() string { return "pkg/sentry/syscalls/linux.pollRestartBlock" } -func (x *pollRestartBlock) StateFields() []string { +func (p *pollRestartBlock) StateFields() []string { return []string{ "pfdAddr", "nfds", @@ -53,28 +53,28 @@ func (x *pollRestartBlock) StateFields() []string { } } -func (x *pollRestartBlock) beforeSave() {} +func (p *pollRestartBlock) beforeSave() {} -func (x *pollRestartBlock) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.pfdAddr) - m.Save(1, &x.nfds) - m.Save(2, &x.timeout) +func (p *pollRestartBlock) StateSave(stateSinkObject state.Sink) { + p.beforeSave() + stateSinkObject.Save(0, &p.pfdAddr) + stateSinkObject.Save(1, &p.nfds) + stateSinkObject.Save(2, &p.timeout) } -func (x *pollRestartBlock) afterLoad() {} +func (p *pollRestartBlock) afterLoad() {} -func (x *pollRestartBlock) StateLoad(m state.Source) { - m.Load(0, &x.pfdAddr) - m.Load(1, &x.nfds) - m.Load(2, &x.timeout) +func (p *pollRestartBlock) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &p.pfdAddr) + stateSourceObject.Load(1, &p.nfds) + stateSourceObject.Load(2, &p.timeout) } -func (x *clockNanosleepRestartBlock) StateTypeName() string { +func (c *clockNanosleepRestartBlock) StateTypeName() string { return "pkg/sentry/syscalls/linux.clockNanosleepRestartBlock" } -func (x *clockNanosleepRestartBlock) StateFields() []string { +func (c *clockNanosleepRestartBlock) StateFields() []string { return []string{ "c", "duration", @@ -82,21 +82,21 @@ func (x *clockNanosleepRestartBlock) StateFields() []string { } } -func (x *clockNanosleepRestartBlock) beforeSave() {} +func (c *clockNanosleepRestartBlock) beforeSave() {} -func (x *clockNanosleepRestartBlock) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.c) - m.Save(1, &x.duration) - m.Save(2, &x.rem) +func (c *clockNanosleepRestartBlock) StateSave(stateSinkObject state.Sink) { + c.beforeSave() + stateSinkObject.Save(0, &c.c) + stateSinkObject.Save(1, &c.duration) + stateSinkObject.Save(2, &c.rem) } -func (x *clockNanosleepRestartBlock) afterLoad() {} +func (c *clockNanosleepRestartBlock) afterLoad() {} -func (x *clockNanosleepRestartBlock) StateLoad(m state.Source) { - m.Load(0, &x.c) - m.Load(1, &x.duration) - m.Load(2, &x.rem) +func (c *clockNanosleepRestartBlock) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &c.c) + stateSourceObject.Load(1, &c.duration) + stateSourceObject.Load(2, &c.rem) } func init() { diff --git a/pkg/sentry/syscalls/linux/vfs2/vfs2_state_autogen.go b/pkg/sentry/syscalls/linux/vfs2/vfs2_state_autogen.go index 031381834..11d1bcc43 100644 --- a/pkg/sentry/syscalls/linux/vfs2/vfs2_state_autogen.go +++ b/pkg/sentry/syscalls/linux/vfs2/vfs2_state_autogen.go @@ -6,11 +6,11 @@ import ( "gvisor.dev/gvisor/pkg/state" ) -func (x *pollRestartBlock) StateTypeName() string { +func (p *pollRestartBlock) StateTypeName() string { return "pkg/sentry/syscalls/linux/vfs2.pollRestartBlock" } -func (x *pollRestartBlock) StateFields() []string { +func (p *pollRestartBlock) StateFields() []string { return []string{ "pfdAddr", "nfds", @@ -18,21 +18,21 @@ func (x *pollRestartBlock) StateFields() []string { } } -func (x *pollRestartBlock) beforeSave() {} +func (p *pollRestartBlock) beforeSave() {} -func (x *pollRestartBlock) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.pfdAddr) - m.Save(1, &x.nfds) - m.Save(2, &x.timeout) +func (p *pollRestartBlock) StateSave(stateSinkObject state.Sink) { + p.beforeSave() + stateSinkObject.Save(0, &p.pfdAddr) + stateSinkObject.Save(1, &p.nfds) + stateSinkObject.Save(2, &p.timeout) } -func (x *pollRestartBlock) afterLoad() {} +func (p *pollRestartBlock) afterLoad() {} -func (x *pollRestartBlock) StateLoad(m state.Source) { - m.Load(0, &x.pfdAddr) - m.Load(1, &x.nfds) - m.Load(2, &x.timeout) +func (p *pollRestartBlock) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &p.pfdAddr) + stateSourceObject.Load(1, &p.nfds) + stateSourceObject.Load(2, &p.timeout) } func init() { |