Home | History | Annotate | Download | only in ptrace

Lines Matching refs:ptrace

2  * Ptrace interface test helper functions
18 #include <sys/ptrace.h>
63 /* Basic ptrace operations */
68 ret = ptrace(PTRACE_ATTACH, child, NULL, NULL);
70 perror("ptrace(PTRACE_ATTACH) failed");
85 ret = ptrace(PTRACE_DETACH, child, NULL, NULL);
87 perror("ptrace(PTRACE_DETACH) failed");
97 ret = ptrace(PTRACE_CONT, child, NULL, NULL);
99 perror("ptrace(PTRACE_CONT) failed");
116 ret = ptrace(PTRACE_GETREGSET, child, type, &iov);
136 ret = ptrace(PTRACE_SETREGSET, child, type, &iov);
158 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TAR, &iov);
160 perror("ptrace(PTRACE_GETREGSET) failed");
166 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_PPR, &iov);
168 perror("ptrace(PTRACE_GETREGSET) failed");
174 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_DSCR, &iov);
176 perror("ptrace(PTRACE_GETREGSET) failed");
206 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TAR, &iov);
208 perror("ptrace(PTRACE_SETREGSET) failed");
213 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_PPR, &iov);
215 perror("ptrace(PTRACE_SETREGSET) failed");
220 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_DSCR, &iov);
222 perror("ptrace(PTRACE_SETREGSET) failed");
248 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CTAR, &iov);
250 perror("ptrace(PTRACE_GETREGSET) failed");
256 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CPPR, &iov);
258 perror("ptrace(PTRACE_GETREGSET) failed");
264 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CDSCR, &iov);
266 perror("ptrace(PTRACE_GETREGSET) failed");
297 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CTAR, &iov);
299 perror("ptrace(PTRACE_GETREGSET) failed");
304 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CPPR, &iov);
306 perror("ptrace(PTRACE_GETREGSET) failed");
311 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CDSCR, &iov);
313 perror("ptrace(PTRACE_GETREGSET) failed");
331 ret = ptrace(PTRACE_GETFPREGS, child, NULL, regs);
333 perror("ptrace(PTRACE_GETREGSET) failed");
350 ret = ptrace(PTRACE_GETFPREGS, child, NULL, regs);
352 perror("ptrace(PTRACE_GETREGSET) failed");
359 ret = ptrace(PTRACE_SETFPREGS, child, NULL, regs);
361 perror("ptrace(PTRACE_GETREGSET) failed");
377 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CFPR, &iov);
379 perror("ptrace(PTRACE_GETREGSET) failed");
401 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CFPR, &iov);
403 perror("ptrace(PTRACE_GETREGSET) failed");
410 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CFPR, &iov);
412 perror("ptrace(PTRACE_GETREGSET) failed");
430 ret = ptrace(PTRACE_GETREGS, child, NULL, regs);
432 perror("ptrace(PTRACE_GETREGSET) failed");
455 ret = ptrace(PTRACE_GETREGS, child, NULL, regs);
457 perror("ptrace(PTRACE_GETREGSET) failed");
464 ret = ptrace(PTRACE_SETREGS, child, NULL, regs);
466 perror("ptrace(PTRACE_GETREGSET) failed");
487 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CGPR, &iov);
489 perror("ptrace(PTRACE_GETREGSET) failed");
515 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CGPR, &iov);
517 perror("ptrace(PTRACE_GETREGSET) failed");
524 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CGPR, &iov);
526 perror("ptrace(PTRACE_GETREGSET) failed");
537 ret = ptrace(PTRACE_GETVRREGS, child, 0, vmx);
539 perror("ptrace(PTRACE_GETVRREGS) failed");
553 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CVMX, &iov);
555 perror("ptrace(PTRACE_GETREGSET, NT_PPC_TM_CVMX) failed");
567 ret = ptrace(PTRACE_SETVRREGS, child, 0, vmx);
569 perror("ptrace(PTRACE_SETVRREGS) failed");
584 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CVMX, &iov);
586 perror("ptrace(PTRACE_SETREGSET, NT_PPC_TM_CVMX) failed");
597 ret = ptrace(PTRACE_GETVSRREGS, child, 0, vsx);
599 perror("ptrace(PTRACE_GETVSRREGS) failed");
613 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CVSX, &iov);
615 perror("ptrace(PTRACE_GETREGSET, NT_PPC_TM_CVSX) failed");
626 ret = ptrace(PTRACE_SETVSRREGS, child, 0, vsx);
628 perror("ptrace(PTRACE_SETVSRREGS) failed");
643 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CVSX, &iov);
645 perror("ptrace(PTRACE_SETREGSET, NT_PPC_TM_CVSX) failed");
667 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_SPR, &iov);
669 perror("ptrace(PTRACE_GETREGSET) failed");