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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
// automatically generated by stateify.
package linux
import (
"gvisor.dev/gvisor/pkg/state"
)
func (x *ioEvent) beforeSave() {}
func (x *ioEvent) save(m state.Map) {
x.beforeSave()
m.Save("Data", &x.Data)
m.Save("Obj", &x.Obj)
m.Save("Result", &x.Result)
m.Save("Result2", &x.Result2)
}
func (x *ioEvent) afterLoad() {}
func (x *ioEvent) load(m state.Map) {
m.Load("Data", &x.Data)
m.Load("Obj", &x.Obj)
m.Load("Result", &x.Result)
m.Load("Result2", &x.Result2)
}
func (x *futexWaitRestartBlock) beforeSave() {}
func (x *futexWaitRestartBlock) save(m state.Map) {
x.beforeSave()
m.Save("duration", &x.duration)
m.Save("addr", &x.addr)
m.Save("private", &x.private)
m.Save("val", &x.val)
m.Save("mask", &x.mask)
}
func (x *futexWaitRestartBlock) afterLoad() {}
func (x *futexWaitRestartBlock) load(m state.Map) {
m.Load("duration", &x.duration)
m.Load("addr", &x.addr)
m.Load("private", &x.private)
m.Load("val", &x.val)
m.Load("mask", &x.mask)
}
func (x *pollRestartBlock) beforeSave() {}
func (x *pollRestartBlock) save(m state.Map) {
x.beforeSave()
m.Save("pfdAddr", &x.pfdAddr)
m.Save("nfds", &x.nfds)
m.Save("timeout", &x.timeout)
}
func (x *pollRestartBlock) afterLoad() {}
func (x *pollRestartBlock) load(m state.Map) {
m.Load("pfdAddr", &x.pfdAddr)
m.Load("nfds", &x.nfds)
m.Load("timeout", &x.timeout)
}
func (x *clockNanosleepRestartBlock) beforeSave() {}
func (x *clockNanosleepRestartBlock) save(m state.Map) {
x.beforeSave()
m.Save("c", &x.c)
m.Save("duration", &x.duration)
m.Save("rem", &x.rem)
}
func (x *clockNanosleepRestartBlock) afterLoad() {}
func (x *clockNanosleepRestartBlock) load(m state.Map) {
m.Load("c", &x.c)
m.Load("duration", &x.duration)
m.Load("rem", &x.rem)
}
func init() {
state.Register("linux.ioEvent", (*ioEvent)(nil), state.Fns{Save: (*ioEvent).save, Load: (*ioEvent).load})
state.Register("linux.futexWaitRestartBlock", (*futexWaitRestartBlock)(nil), state.Fns{Save: (*futexWaitRestartBlock).save, Load: (*futexWaitRestartBlock).load})
state.Register("linux.pollRestartBlock", (*pollRestartBlock)(nil), state.Fns{Save: (*pollRestartBlock).save, Load: (*pollRestartBlock).load})
state.Register("linux.clockNanosleepRestartBlock", (*clockNanosleepRestartBlock)(nil), state.Fns{Save: (*clockNanosleepRestartBlock).save, Load: (*clockNanosleepRestartBlock).load})
}
|