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
|
// automatically generated by stateify.
package memmap
import (
"gvisor.dev/gvisor/pkg/state"
)
func (fr *FileRange) StateTypeName() string {
return "pkg/sentry/memmap.FileRange"
}
func (fr *FileRange) StateFields() []string {
return []string{
"Start",
"End",
}
}
func (fr *FileRange) beforeSave() {}
// +checklocksignore
func (fr *FileRange) StateSave(stateSinkObject state.Sink) {
fr.beforeSave()
stateSinkObject.Save(0, &fr.Start)
stateSinkObject.Save(1, &fr.End)
}
func (fr *FileRange) afterLoad() {}
// +checklocksignore
func (fr *FileRange) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &fr.Start)
stateSourceObject.Load(1, &fr.End)
}
func (mr *MappableRange) StateTypeName() string {
return "pkg/sentry/memmap.MappableRange"
}
func (mr *MappableRange) StateFields() []string {
return []string{
"Start",
"End",
}
}
func (mr *MappableRange) beforeSave() {}
// +checklocksignore
func (mr *MappableRange) StateSave(stateSinkObject state.Sink) {
mr.beforeSave()
stateSinkObject.Save(0, &mr.Start)
stateSinkObject.Save(1, &mr.End)
}
func (mr *MappableRange) afterLoad() {}
// +checklocksignore
func (mr *MappableRange) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &mr.Start)
stateSourceObject.Load(1, &mr.End)
}
func (r *MappingOfRange) StateTypeName() string {
return "pkg/sentry/memmap.MappingOfRange"
}
func (r *MappingOfRange) StateFields() []string {
return []string{
"MappingSpace",
"AddrRange",
"Writable",
}
}
func (r *MappingOfRange) beforeSave() {}
// +checklocksignore
func (r *MappingOfRange) StateSave(stateSinkObject state.Sink) {
r.beforeSave()
stateSinkObject.Save(0, &r.MappingSpace)
stateSinkObject.Save(1, &r.AddrRange)
stateSinkObject.Save(2, &r.Writable)
}
func (r *MappingOfRange) afterLoad() {}
// +checklocksignore
func (r *MappingOfRange) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &r.MappingSpace)
stateSourceObject.Load(1, &r.AddrRange)
stateSourceObject.Load(2, &r.Writable)
}
func init() {
state.Register((*FileRange)(nil))
state.Register((*MappableRange)(nil))
state.Register((*MappingOfRange)(nil))
}
|