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
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
|
// automatically generated by stateify.
package tty
import (
"gvisor.dev/gvisor/pkg/state"
)
func (x *dirInodeOperations) beforeSave() {}
func (x *dirInodeOperations) save(m state.Map) {
x.beforeSave()
m.Save("InodeSimpleAttributes", &x.InodeSimpleAttributes)
m.Save("msrc", &x.msrc)
m.Save("master", &x.master)
m.Save("slaves", &x.slaves)
m.Save("dentryMap", &x.dentryMap)
m.Save("next", &x.next)
}
func (x *dirInodeOperations) afterLoad() {}
func (x *dirInodeOperations) load(m state.Map) {
m.Load("InodeSimpleAttributes", &x.InodeSimpleAttributes)
m.Load("msrc", &x.msrc)
m.Load("master", &x.master)
m.Load("slaves", &x.slaves)
m.Load("dentryMap", &x.dentryMap)
m.Load("next", &x.next)
}
func (x *dirFileOperations) beforeSave() {}
func (x *dirFileOperations) save(m state.Map) {
x.beforeSave()
m.Save("di", &x.di)
m.Save("dirCursor", &x.dirCursor)
}
func (x *dirFileOperations) afterLoad() {}
func (x *dirFileOperations) load(m state.Map) {
m.Load("di", &x.di)
m.Load("dirCursor", &x.dirCursor)
}
func (x *filesystem) beforeSave() {}
func (x *filesystem) save(m state.Map) {
x.beforeSave()
}
func (x *filesystem) afterLoad() {}
func (x *filesystem) load(m state.Map) {
}
func (x *superOperations) beforeSave() {}
func (x *superOperations) save(m state.Map) {
x.beforeSave()
}
func (x *superOperations) afterLoad() {}
func (x *superOperations) load(m state.Map) {
}
func (x *lineDiscipline) beforeSave() {}
func (x *lineDiscipline) save(m state.Map) {
x.beforeSave()
if !state.IsZeroValue(x.masterWaiter) { m.Failf("masterWaiter is %v, expected zero", x.masterWaiter) }
if !state.IsZeroValue(x.slaveWaiter) { m.Failf("slaveWaiter is %v, expected zero", x.slaveWaiter) }
m.Save("size", &x.size)
m.Save("inQueue", &x.inQueue)
m.Save("outQueue", &x.outQueue)
m.Save("termios", &x.termios)
m.Save("column", &x.column)
}
func (x *lineDiscipline) afterLoad() {}
func (x *lineDiscipline) load(m state.Map) {
m.Load("size", &x.size)
m.Load("inQueue", &x.inQueue)
m.Load("outQueue", &x.outQueue)
m.Load("termios", &x.termios)
m.Load("column", &x.column)
}
func (x *outputQueueTransformer) beforeSave() {}
func (x *outputQueueTransformer) save(m state.Map) {
x.beforeSave()
}
func (x *outputQueueTransformer) afterLoad() {}
func (x *outputQueueTransformer) load(m state.Map) {
}
func (x *inputQueueTransformer) beforeSave() {}
func (x *inputQueueTransformer) save(m state.Map) {
x.beforeSave()
}
func (x *inputQueueTransformer) afterLoad() {}
func (x *inputQueueTransformer) load(m state.Map) {
}
func (x *masterInodeOperations) beforeSave() {}
func (x *masterInodeOperations) save(m state.Map) {
x.beforeSave()
m.Save("SimpleFileInode", &x.SimpleFileInode)
m.Save("InodeNoopTruncate", &x.InodeNoopTruncate)
m.Save("d", &x.d)
}
func (x *masterInodeOperations) afterLoad() {}
func (x *masterInodeOperations) load(m state.Map) {
m.Load("SimpleFileInode", &x.SimpleFileInode)
m.Load("InodeNoopTruncate", &x.InodeNoopTruncate)
m.Load("d", &x.d)
}
func (x *masterFileOperations) beforeSave() {}
func (x *masterFileOperations) save(m state.Map) {
x.beforeSave()
m.Save("d", &x.d)
m.Save("t", &x.t)
}
func (x *masterFileOperations) afterLoad() {}
func (x *masterFileOperations) load(m state.Map) {
m.Load("d", &x.d)
m.Load("t", &x.t)
}
func (x *queue) beforeSave() {}
func (x *queue) save(m state.Map) {
x.beforeSave()
m.Save("readBuf", &x.readBuf)
m.Save("waitBuf", &x.waitBuf)
m.Save("waitBufLen", &x.waitBufLen)
m.Save("readable", &x.readable)
m.Save("transformer", &x.transformer)
}
func (x *queue) afterLoad() {}
func (x *queue) load(m state.Map) {
m.Load("readBuf", &x.readBuf)
m.Load("waitBuf", &x.waitBuf)
m.Load("waitBufLen", &x.waitBufLen)
m.Load("readable", &x.readable)
m.Load("transformer", &x.transformer)
}
func (x *slaveInodeOperations) beforeSave() {}
func (x *slaveInodeOperations) save(m state.Map) {
x.beforeSave()
m.Save("SimpleFileInode", &x.SimpleFileInode)
m.Save("InodeNoopTruncate", &x.InodeNoopTruncate)
m.Save("d", &x.d)
m.Save("t", &x.t)
}
func (x *slaveInodeOperations) afterLoad() {}
func (x *slaveInodeOperations) load(m state.Map) {
m.Load("SimpleFileInode", &x.SimpleFileInode)
m.Load("InodeNoopTruncate", &x.InodeNoopTruncate)
m.Load("d", &x.d)
m.Load("t", &x.t)
}
func (x *slaveFileOperations) beforeSave() {}
func (x *slaveFileOperations) save(m state.Map) {
x.beforeSave()
m.Save("si", &x.si)
}
func (x *slaveFileOperations) afterLoad() {}
func (x *slaveFileOperations) load(m state.Map) {
m.Load("si", &x.si)
}
func (x *Terminal) beforeSave() {}
func (x *Terminal) save(m state.Map) {
x.beforeSave()
m.Save("AtomicRefCount", &x.AtomicRefCount)
m.Save("n", &x.n)
m.Save("d", &x.d)
m.Save("ld", &x.ld)
m.Save("masterKTTY", &x.masterKTTY)
m.Save("slaveKTTY", &x.slaveKTTY)
}
func (x *Terminal) afterLoad() {}
func (x *Terminal) load(m state.Map) {
m.Load("AtomicRefCount", &x.AtomicRefCount)
m.Load("n", &x.n)
m.Load("d", &x.d)
m.Load("ld", &x.ld)
m.Load("masterKTTY", &x.masterKTTY)
m.Load("slaveKTTY", &x.slaveKTTY)
}
func init() {
state.Register("tty.dirInodeOperations", (*dirInodeOperations)(nil), state.Fns{Save: (*dirInodeOperations).save, Load: (*dirInodeOperations).load})
state.Register("tty.dirFileOperations", (*dirFileOperations)(nil), state.Fns{Save: (*dirFileOperations).save, Load: (*dirFileOperations).load})
state.Register("tty.filesystem", (*filesystem)(nil), state.Fns{Save: (*filesystem).save, Load: (*filesystem).load})
state.Register("tty.superOperations", (*superOperations)(nil), state.Fns{Save: (*superOperations).save, Load: (*superOperations).load})
state.Register("tty.lineDiscipline", (*lineDiscipline)(nil), state.Fns{Save: (*lineDiscipline).save, Load: (*lineDiscipline).load})
state.Register("tty.outputQueueTransformer", (*outputQueueTransformer)(nil), state.Fns{Save: (*outputQueueTransformer).save, Load: (*outputQueueTransformer).load})
state.Register("tty.inputQueueTransformer", (*inputQueueTransformer)(nil), state.Fns{Save: (*inputQueueTransformer).save, Load: (*inputQueueTransformer).load})
state.Register("tty.masterInodeOperations", (*masterInodeOperations)(nil), state.Fns{Save: (*masterInodeOperations).save, Load: (*masterInodeOperations).load})
state.Register("tty.masterFileOperations", (*masterFileOperations)(nil), state.Fns{Save: (*masterFileOperations).save, Load: (*masterFileOperations).load})
state.Register("tty.queue", (*queue)(nil), state.Fns{Save: (*queue).save, Load: (*queue).load})
state.Register("tty.slaveInodeOperations", (*slaveInodeOperations)(nil), state.Fns{Save: (*slaveInodeOperations).save, Load: (*slaveInodeOperations).load})
state.Register("tty.slaveFileOperations", (*slaveFileOperations)(nil), state.Fns{Save: (*slaveFileOperations).save, Load: (*slaveFileOperations).load})
state.Register("tty.Terminal", (*Terminal)(nil), state.Fns{Save: (*Terminal).save, Load: (*Terminal).load})
}
|