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