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
|
// automatically generated by stateify.
//go:build arm64 && arm64 && arm64 && arm64
// +build arm64,arm64,arm64,arm64
package linux
import (
"gvisor.dev/gvisor/pkg/state"
)
func (p *PtraceRegs) StateTypeName() string {
return "pkg/abi/linux.PtraceRegs"
}
func (p *PtraceRegs) StateFields() []string {
return []string{
"Regs",
"Sp",
"Pc",
"Pstate",
}
}
func (p *PtraceRegs) beforeSave() {}
// +checklocksignore
func (p *PtraceRegs) StateSave(stateSinkObject state.Sink) {
p.beforeSave()
stateSinkObject.Save(0, &p.Regs)
stateSinkObject.Save(1, &p.Sp)
stateSinkObject.Save(2, &p.Pc)
stateSinkObject.Save(3, &p.Pstate)
}
func (p *PtraceRegs) afterLoad() {}
// +checklocksignore
func (p *PtraceRegs) StateLoad(stateSourceObject state.Source) {
stateSourceObject.Load(0, &p.Regs)
stateSourceObject.Load(1, &p.Sp)
stateSourceObject.Load(2, &p.Pc)
stateSourceObject.Load(3, &p.Pstate)
}
func init() {
state.Register((*PtraceRegs)(nil))
}
|