summaryrefslogtreecommitdiffhomepage
path: root/pkg/bpf/bpf_state_autogen.go
blob: 43dd9ff9ec2027b975cbaa7153417fdb8bde7a68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
// automatically generated by stateify.

package bpf

import (
	"gvisor.dev/gvisor/pkg/state"
)

func (x *Program) StateTypeName() string {
	return "pkg/bpf.Program"
}

func (x *Program) StateFields() []string {
	return []string{
		"instructions",
	}
}

func (x *Program) beforeSave() {}

func (x *Program) StateSave(m state.Sink) {
	x.beforeSave()
	m.Save(0, &x.instructions)
}

func (x *Program) afterLoad() {}

func (x *Program) StateLoad(m state.Source) {
	m.Load(0, &x.instructions)
}

func init() {
	state.Register((*Program)(nil))
}