1 // Code generated by linux/mkall.go generatePtracePair(arm, arm64). DO NOT EDIT.
10 // PtraceRegsArm is the registers used by arm binaries.
11 type PtraceRegsArm struct {
15 // PtraceGetRegsArm fetches the registers used by arm binaries.
16 func PtraceGetRegsArm(pid int, regsout *PtraceRegsArm) error {
17 return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
20 // PtraceSetRegsArm sets the registers used by arm binaries.
21 func PtraceSetRegsArm(pid int, regs *PtraceRegsArm) error {
22 return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
25 // PtraceRegsArm64 is the registers used by arm64 binaries.
26 type PtraceRegsArm64 struct {
33 // PtraceGetRegsArm64 fetches the registers used by arm64 binaries.
34 func PtraceGetRegsArm64(pid int, regsout *PtraceRegsArm64) error {
35 return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
38 // PtraceSetRegsArm64 sets the registers used by arm64 binaries.
39 func PtraceSetRegsArm64(pid int, regs *PtraceRegsArm64) error {
40 return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))