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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
|
// automatically generated by stateify.
package linux
import (
"gvisor.dev/gvisor/pkg/state"
)
func (x *IOEvent) StateTypeName() string {
return "pkg/abi/linux.IOEvent"
}
func (x *IOEvent) StateFields() []string {
return []string{
"Data",
"Obj",
"Result",
"Result2",
}
}
func (x *IOEvent) beforeSave() {}
func (x *IOEvent) StateSave(m state.Sink) {
x.beforeSave()
m.Save(0, &x.Data)
m.Save(1, &x.Obj)
m.Save(2, &x.Result)
m.Save(3, &x.Result2)
}
func (x *IOEvent) afterLoad() {}
func (x *IOEvent) StateLoad(m state.Source) {
m.Load(0, &x.Data)
m.Load(1, &x.Obj)
m.Load(2, &x.Result)
m.Load(3, &x.Result2)
}
func (x *BPFInstruction) StateTypeName() string {
return "pkg/abi/linux.BPFInstruction"
}
func (x *BPFInstruction) StateFields() []string {
return []string{
"OpCode",
"JumpIfTrue",
"JumpIfFalse",
"K",
}
}
func (x *BPFInstruction) beforeSave() {}
func (x *BPFInstruction) StateSave(m state.Sink) {
x.beforeSave()
m.Save(0, &x.OpCode)
m.Save(1, &x.JumpIfTrue)
m.Save(2, &x.JumpIfFalse)
m.Save(3, &x.K)
}
func (x *BPFInstruction) afterLoad() {}
func (x *BPFInstruction) StateLoad(m state.Source) {
m.Load(0, &x.OpCode)
m.Load(1, &x.JumpIfTrue)
m.Load(2, &x.JumpIfFalse)
m.Load(3, &x.K)
}
func (x *KernelTermios) StateTypeName() string {
return "pkg/abi/linux.KernelTermios"
}
func (x *KernelTermios) StateFields() []string {
return []string{
"InputFlags",
"OutputFlags",
"ControlFlags",
"LocalFlags",
"LineDiscipline",
"ControlCharacters",
"InputSpeed",
"OutputSpeed",
}
}
func (x *KernelTermios) beforeSave() {}
func (x *KernelTermios) StateSave(m state.Sink) {
x.beforeSave()
m.Save(0, &x.InputFlags)
m.Save(1, &x.OutputFlags)
m.Save(2, &x.ControlFlags)
m.Save(3, &x.LocalFlags)
m.Save(4, &x.LineDiscipline)
m.Save(5, &x.ControlCharacters)
m.Save(6, &x.InputSpeed)
m.Save(7, &x.OutputSpeed)
}
func (x *KernelTermios) afterLoad() {}
func (x *KernelTermios) StateLoad(m state.Source) {
m.Load(0, &x.InputFlags)
m.Load(1, &x.OutputFlags)
m.Load(2, &x.ControlFlags)
m.Load(3, &x.LocalFlags)
m.Load(4, &x.LineDiscipline)
m.Load(5, &x.ControlCharacters)
m.Load(6, &x.InputSpeed)
m.Load(7, &x.OutputSpeed)
}
func (x *WindowSize) StateTypeName() string {
return "pkg/abi/linux.WindowSize"
}
func (x *WindowSize) StateFields() []string {
return []string{
"Rows",
"Cols",
}
}
func (x *WindowSize) beforeSave() {}
func (x *WindowSize) StateSave(m state.Sink) {
x.beforeSave()
m.Save(0, &x.Rows)
m.Save(1, &x.Cols)
}
func (x *WindowSize) afterLoad() {}
func (x *WindowSize) StateLoad(m state.Source) {
m.Load(0, &x.Rows)
m.Load(1, &x.Cols)
}
func init() {
state.Register((*IOEvent)(nil))
state.Register((*BPFInstruction)(nil))
state.Register((*KernelTermios)(nil))
state.Register((*WindowSize)(nil))
}
|