vendor/golang.org/x/sys/unix/zptrace_armnn_linux.go

Wraient Nix: Vendor deps6856d21813 1 year ago

40 lines · 1200 bytes

 1// Code generated by linux/mkall.go generatePtracePair("arm", "arm64"). DO NOT EDIT.
 2
 3//go:build linux && (arm || arm64)
 4
 5package unix
 6
 7import "unsafe"
 8
 9// PtraceRegsArm is the registers used by arm binaries.
10type PtraceRegsArm struct {
11	Uregs [18]uint32
12}
13
14// PtraceGetRegsArm fetches the registers used by arm binaries.
15func PtraceGetRegsArm(pid int, regsout *PtraceRegsArm) error {
16	return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
17}
18
19// PtraceSetRegsArm sets the registers used by arm binaries.
20func PtraceSetRegsArm(pid int, regs *PtraceRegsArm) error {
21	return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
22}
23
24// PtraceRegsArm64 is the registers used by arm64 binaries.
25type PtraceRegsArm64 struct {
26	Regs   [31]uint64
27	Sp     uint64
28	Pc     uint64
29	Pstate uint64
30}
31
32// PtraceGetRegsArm64 fetches the registers used by arm64 binaries.
33func PtraceGetRegsArm64(pid int, regsout *PtraceRegsArm64) error {
34	return ptracePtr(PTRACE_GETREGS, pid, 0, unsafe.Pointer(regsout))
35}
36
37// PtraceSetRegsArm64 sets the registers used by arm64 binaries.
38func PtraceSetRegsArm64(pid int, regs *PtraceRegsArm64) error {
39	return ptracePtr(PTRACE_SETREGS, pid, 0, unsafe.Pointer(regs))
40}
Keyboard shortcuts

Global

⌘K
Command palette & jump
/
Focus search
?
Show this help
g d
Dashboard
g e
Explore repositories
g n
Notifications

Repository & editor

t
Find file in repository
y
Copy immutable SHA permalink
g c
Code tab
g i
Issues tab
g m
Merge requests tab
g b
Builds tab
⌘↵
Submit active form