summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2019-08-09 21:59:27 +0000
committergVisor bot <gvisor-bot@google.com>2019-08-09 21:59:27 +0000
commit93df07f7290ebc93e043d22675d327bdb247834e (patch)
tree0862caff32749bbac31020a5e9daf73e0006f232 /pkg/abi
parent336d285f604c005cea589a1d12f5e4e839b98a80 (diff)
parent5a38eb120abe0aecd4b64cf9e3a9e1ff1dc0edd7 (diff)
Merge 5a38eb12 (automated)
Diffstat (limited to 'pkg/abi')
-rw-r--r--pkg/abi/linux/elf.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/pkg/abi/linux/elf.go b/pkg/abi/linux/elf.go
index fb1c679d2..40f0459a0 100644
--- a/pkg/abi/linux/elf.go
+++ b/pkg/abi/linux/elf.go
@@ -89,3 +89,17 @@ const (
// AT_SYSINFO_EHDR is the address of the VDSO.
AT_SYSINFO_EHDR = 33
)
+
+// ELF ET_CORE and ptrace GETREGSET/SETREGSET register set types.
+//
+// See include/uapi/linux/elf.h.
+const (
+ // NT_PRSTATUS is for general purpose register.
+ NT_PRSTATUS = 0x1
+
+ // NT_PRFPREG is for float point register.
+ NT_PRFPREG = 0x2
+
+ // NT_X86_XSTATE is for x86 extended state using xsave.
+ NT_X86_XSTATE = 0x202
+)