2019-06-02 06:44:55 +00:00
|
|
|
// automatically generated by stateify.
|
|
|
|
|
|
|
|
package bpf
|
|
|
|
|
|
|
|
import (
|
2019-06-13 23:58:29 +00:00
|
|
|
"gvisor.dev/gvisor/pkg/state"
|
2019-06-02 06:44:55 +00:00
|
|
|
)
|
|
|
|
|
|
|
|
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("bpf.Program", (*Program)(nil), state.Fns{Save: (*Program).save, Load: (*Program).load})
|
|
|
|
}
|