golang.org/x/sys@v0.20.1-0.20240517151509-673e0f94c16d/unix/zptrace_linux_arm64.go (about) 1 // Code generated by linux/mkall.go generatePtraceRegSet("arm64"). DO NOT EDIT. 2 3 package unix 4 5 import "unsafe" 6 7 // PtraceGetRegSetArm64 fetches the registers used by arm64 binaries. 8 func PtraceGetRegSetArm64(pid, addr int, regsout *PtraceRegsArm64) error { 9 iovec := Iovec{(*byte)(unsafe.Pointer(regsout)), uint64(unsafe.Sizeof(*regsout))} 10 return ptracePtr(PTRACE_GETREGSET, pid, uintptr(addr), unsafe.Pointer(&iovec)) 11 } 12 13 // PtraceSetRegSetArm64 sets the registers used by arm64 binaries. 14 func PtraceSetRegSetArm64(pid, addr int, regs *PtraceRegsArm64) error { 15 iovec := Iovec{(*byte)(unsafe.Pointer(regs)), uint64(unsafe.Sizeof(*regs))} 16 return ptracePtr(PTRACE_SETREGSET, pid, uintptr(addr), unsafe.Pointer(&iovec)) 17 }