diff options
author | baude <bbaude@redhat.com> | 2018-06-28 13:52:12 -0500 |
---|---|---|
committer | Atomic Bot <atomic-devel@projectatomic.io> | 2018-06-28 20:28:38 +0000 |
commit | 67f68626e6e5116ec088f511a0f8a17158b303db (patch) | |
tree | f95284f8e3ea61421309f2b363a0b3bca6764075 /vendor/golang.org/x/sys/unix/zptracearm_linux.go | |
parent | 45c745e0b0d0fe648283e954b8e1b37a46887458 (diff) | |
download | podman-67f68626e6e5116ec088f511a0f8a17158b303db.tar.gz podman-67f68626e6e5116ec088f511a0f8a17158b303db.tar.bz2 podman-67f68626e6e5116ec088f511a0f8a17158b303db.zip |
vendor in latest golang/x/sys
Signed-off-by: baude <bbaude@redhat.com>
Closes: #1022
Approved by: baude
Diffstat (limited to 'vendor/golang.org/x/sys/unix/zptracearm_linux.go')
-rw-r--r-- | vendor/golang.org/x/sys/unix/zptracearm_linux.go | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/vendor/golang.org/x/sys/unix/zptracearm_linux.go b/vendor/golang.org/x/sys/unix/zptracearm_linux.go new file mode 100644 index 000000000..faf23bbed --- /dev/null +++ b/vendor/golang.org/x/sys/unix/zptracearm_linux.go @@ -0,0 +1,41 @@ +// Code generated by linux/mkall.go generatePtracePair(arm, arm64). DO NOT EDIT. + +// +build linux +// +build arm arm64 + +package unix + +import "unsafe" + +// PtraceRegsArm is the registers used by arm binaries. +type PtraceRegsArm struct { + Uregs [18]uint32 +} + +// PtraceGetRegsArm fetches the registers used by arm binaries. +func PtraceGetRegsArm(pid int, regsout *PtraceRegsArm) error { + return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) +} + +// PtraceSetRegsArm sets the registers used by arm binaries. +func PtraceSetRegsArm(pid int, regs *PtraceRegsArm) error { + return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) +} + +// PtraceRegsArm64 is the registers used by arm64 binaries. +type PtraceRegsArm64 struct { + Regs [31]uint64 + Sp uint64 + Pc uint64 + Pstate uint64 +} + +// PtraceGetRegsArm64 fetches the registers used by arm64 binaries. +func PtraceGetRegsArm64(pid int, regsout *PtraceRegsArm64) error { + return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) +} + +// PtraceSetRegsArm64 sets the registers used by arm64 binaries. +func PtraceSetRegsArm64(pid int, regs *PtraceRegsArm64) error { + return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) +} |