github.com/binkynet/BinkyNet@v1.12.1-0.20240421190447-da4e34c20be0/proto_vendor/golang.org/x/sys/unix/zptracemipsle_linux.go (about) 1 // Code generated by linux/mkall.go generatePtracePair(mipsle, mips64le). DO NOT EDIT. 2 3 // +build linux 4 // +build mipsle mips64le 5 6 package unix 7 8 import "unsafe" 9 10 // PtraceRegsMipsle is the registers used by mipsle binaries. 11 type PtraceRegsMipsle struct { 12 Regs [32]uint64 13 Lo uint64 14 Hi uint64 15 Epc uint64 16 Badvaddr uint64 17 Status uint64 18 Cause uint64 19 } 20 21 // PtraceGetRegsMipsle fetches the registers used by mipsle binaries. 22 func PtraceGetRegsMipsle(pid int, regsout *PtraceRegsMipsle) error { 23 return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) 24 } 25 26 // PtraceSetRegsMipsle sets the registers used by mipsle binaries. 27 func PtraceSetRegsMipsle(pid int, regs *PtraceRegsMipsle) error { 28 return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) 29 } 30 31 // PtraceRegsMips64le is the registers used by mips64le binaries. 32 type PtraceRegsMips64le struct { 33 Regs [32]uint64 34 Lo uint64 35 Hi uint64 36 Epc uint64 37 Badvaddr uint64 38 Status uint64 39 Cause uint64 40 } 41 42 // PtraceGetRegsMips64le fetches the registers used by mips64le binaries. 43 func PtraceGetRegsMips64le(pid int, regsout *PtraceRegsMips64le) error { 44 return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) 45 } 46 47 // PtraceSetRegsMips64le sets the registers used by mips64le binaries. 48 func PtraceSetRegsMips64le(pid int, regs *PtraceRegsMips64le) error { 49 return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) 50 }