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/bpf | |
parent | 8f9d99c812b7599c52ed98f80c1a33717758a5c6 (diff) | |
parent | a55bd73d4802112a7055de8663e947b9c0f42a2e (diff) |
Merge release-20200928.0-66-ga55bd73d4 (automated)
Diffstat (limited to 'pkg/bpf')
-rw-r--r-- | pkg/bpf/bpf_state_autogen.go | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/pkg/bpf/bpf_state_autogen.go b/pkg/bpf/bpf_state_autogen.go index 43dd9ff9e..db56bbeb5 100644 --- a/pkg/bpf/bpf_state_autogen.go +++ b/pkg/bpf/bpf_state_autogen.go @@ -6,27 +6,27 @@ import ( "gvisor.dev/gvisor/pkg/state" ) -func (x *Program) StateTypeName() string { +func (p *Program) StateTypeName() string { return "pkg/bpf.Program" } -func (x *Program) StateFields() []string { +func (p *Program) StateFields() []string { return []string{ "instructions", } } -func (x *Program) beforeSave() {} +func (p *Program) beforeSave() {} -func (x *Program) StateSave(m state.Sink) { - x.beforeSave() - m.Save(0, &x.instructions) +func (p *Program) StateSave(stateSinkObject state.Sink) { + p.beforeSave() + stateSinkObject.Save(0, &p.instructions) } -func (x *Program) afterLoad() {} +func (p *Program) afterLoad() {} -func (x *Program) StateLoad(m state.Source) { - m.Load(0, &x.instructions) +func (p *Program) StateLoad(stateSourceObject state.Source) { + stateSourceObject.Load(0, &p.instructions) } func init() { |