Lines Matching refs:ptrace

14 #include <sys/ptrace.h>
59 /* Basic ptrace operations */
64 ret = ptrace(PTRACE_ATTACH, child, NULL, NULL);
66 perror("ptrace(PTRACE_ATTACH) failed");
81 ret = ptrace(PTRACE_DETACH, child, NULL, NULL);
83 perror("ptrace(PTRACE_DETACH) failed");
93 ret = ptrace(PTRACE_CONT, child, NULL, NULL);
95 perror("ptrace(PTRACE_CONT) failed");
112 ret = ptrace(PTRACE_GETREGSET, child, type, &iov);
132 ret = ptrace(PTRACE_SETREGSET, child, type, &iov);
154 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TAR, &iov);
156 perror("ptrace(PTRACE_GETREGSET) failed");
162 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_PPR, &iov);
164 perror("ptrace(PTRACE_GETREGSET) failed");
170 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_DSCR, &iov);
172 perror("ptrace(PTRACE_GETREGSET) failed");
202 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TAR, &iov);
204 perror("ptrace(PTRACE_SETREGSET) failed");
209 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_PPR, &iov);
211 perror("ptrace(PTRACE_SETREGSET) failed");
216 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_DSCR, &iov);
218 perror("ptrace(PTRACE_SETREGSET) failed");
244 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CTAR, &iov);
246 perror("ptrace(PTRACE_GETREGSET) failed");
252 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CPPR, &iov);
254 perror("ptrace(PTRACE_GETREGSET) failed");
260 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CDSCR, &iov);
262 perror("ptrace(PTRACE_GETREGSET) failed");
293 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CTAR, &iov);
295 perror("ptrace(PTRACE_GETREGSET) failed");
300 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CPPR, &iov);
302 perror("ptrace(PTRACE_GETREGSET) failed");
307 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CDSCR, &iov);
309 perror("ptrace(PTRACE_GETREGSET) failed");
327 ret = ptrace(PTRACE_GETFPREGS, child, NULL, regs);
329 perror("ptrace(PTRACE_GETREGSET) failed");
346 ret = ptrace(PTRACE_GETFPREGS, child, NULL, regs);
348 perror("ptrace(PTRACE_GETREGSET) failed");
355 ret = ptrace(PTRACE_SETFPREGS, child, NULL, regs);
357 perror("ptrace(PTRACE_GETREGSET) failed");
373 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CFPR, &iov);
375 perror("ptrace(PTRACE_GETREGSET) failed");
397 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CFPR, &iov);
399 perror("ptrace(PTRACE_GETREGSET) failed");
406 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CFPR, &iov);
408 perror("ptrace(PTRACE_GETREGSET) failed");
426 ret = ptrace(PTRACE_GETREGS, child, NULL, regs);
428 perror("ptrace(PTRACE_GETREGSET) failed");
451 ret = ptrace(PTRACE_GETREGS, child, NULL, regs);
453 perror("ptrace(PTRACE_GETREGSET) failed");
460 ret = ptrace(PTRACE_SETREGS, child, NULL, regs);
462 perror("ptrace(PTRACE_GETREGSET) failed");
483 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CGPR, &iov);
485 perror("ptrace(PTRACE_GETREGSET) failed");
511 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CGPR, &iov);
513 perror("ptrace(PTRACE_GETREGSET) failed");
520 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CGPR, &iov);
522 perror("ptrace(PTRACE_GETREGSET) failed");
533 ret = ptrace(PTRACE_GETVRREGS, child, 0, vmx);
535 perror("ptrace(PTRACE_GETVRREGS) failed");
549 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CVMX, &iov);
551 perror("ptrace(PTRACE_GETREGSET, NT_PPC_TM_CVMX) failed");
563 ret = ptrace(PTRACE_SETVRREGS, child, 0, vmx);
565 perror("ptrace(PTRACE_SETVRREGS) failed");
580 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CVMX, &iov);
582 perror("ptrace(PTRACE_SETREGSET, NT_PPC_TM_CVMX) failed");
593 ret = ptrace(PTRACE_GETVSRREGS, child, 0, vsx);
595 perror("ptrace(PTRACE_GETVSRREGS) failed");
609 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CVSX, &iov);
611 perror("ptrace(PTRACE_GETREGSET, NT_PPC_TM_CVSX) failed");
622 ret = ptrace(PTRACE_SETVSRREGS, child, 0, vsx);
624 perror("ptrace(PTRACE_SETVSRREGS) failed");
639 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CVSX, &iov);
641 perror("ptrace(PTRACE_SETREGSET, NT_PPC_TM_CVSX) failed");
663 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_SPR, &iov);
665 perror("ptrace(PTRACE_GETREGSET) failed");