Sha256: ea955e807cc0b544779857ac41aec285ea2e32e14b76c8bb7e07b26f1ee7a073

Contents?: true

Size: 1.21 KB

Versions: 16

Compression:

Stored size: 1.21 KB

Contents

// Code generated by linux/mkall.go generatePtracePair("arm", "arm64"). DO NOT EDIT.

//go:build linux && (arm || arm64)
// +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 ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
}

// PtraceSetRegsArm sets the registers used by arm binaries.
func PtraceSetRegsArm(pid int, regs *PtraceRegsArm) error {
	return ptracePtr(PTRACE_SETREGS, pid, 0, 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 ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
}

// PtraceSetRegsArm64 sets the registers used by arm64 binaries.
func PtraceSetRegsArm64(pid int, regs *PtraceRegsArm64) error {
	return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
}

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
ruby_snowflake_client-1.3.7 ext/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go
ruby_snowflake_client-1.3.6 ext/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go
ruby_snowflake_client-1.3.5 ext/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go
ruby_snowflake_client-1.3.4 ext/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go
ruby_snowflake_client-1.3.4.pre.debug ext/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go
ruby_snowflake_client-1.3.3.pre.debug ext/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go
ruby_snowflake_client-1.3.2 ext/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go
ruby_snowflake_client-1.3.1 ext/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go
ruby_snowflake_client-1.3.0 ext/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go
ruby_snowflake_client-1.2.1 ext/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go
ruby_snowflake_client-1.2.0 ext/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go
ruby_snowflake_client-1.1.1 ext/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go
ruby_snowflake_client-1.1.0 ext/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go
ruby_snowflake_client-1.0.2 ext/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go
ruby_snowflake_client-1.0.1 ext/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go
ruby_snowflake_client-1.0.0 ext/vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go