summaryrefslogtreecommitdiffhomepage
path: root/pkg/bpf/bpf_state_autogen.go
blob: ae8a36d5709c2156c6ab99bf8f20b371bb14194a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// automatically generated by stateify.

package bpf

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

func (x *Program) beforeSave() {}
func (x *Program) save(m state.Map) {
	x.beforeSave()
	m.Save("instructions", &x.instructions)
}

func (x *Program) afterLoad() {}
func (x *Program) load(m state.Map) {
	m.Load("instructions", &x.instructions)
}

func init() {
	state.Register("pkg/bpf.Program", (*Program)(nil), state.Fns{Save: (*Program).save, Load: (*Program).load})
}