//go:build linux && mips64le package proot import "golang.org/x/sys/unix" func (proot *Proot) getTrace(pid int) (*unix.PtraceRegs, error) { var regs unix.PtraceRegs if err := unix.PtraceGetRegs(pid, ®s); err != nil { return nil, err } return ®s, nil }