Home | History | Annotate | Download | only in strace

Lines Matching refs:pid

638 	if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(ORIG_EAX * 4), new) < 0)
643 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(ORIG_RAX * 8), new) < 0)
647 if (ptrace(PTRACE_POKEUSER, tcp->pid,
653 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(PT_GPR2), new)<0)
657 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(4*PT_ORIG_D0), new)<0)
662 if (ptrace(PTRACE_GETREGS, tcp->pid, (char*)&regs, 0)<0)
665 if (ptrace(PTRACE_SETREGS, tcp->pid, (char*)&regs, 0)<0)
669 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(REG_V0), new)<0)
673 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(REG_A3), new)<0)
686 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(PT_R1), new)<0)
688 } else if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(PT_R15), new)<0)
692 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(PT_GR20), new)<0)
696 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(4*(REG_REG0+3)), new)<0)
702 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(REG_SYSCALL),
712 if (ptrace (PTRACE_SET_SYSCALL, tcp->pid, 0, new) != 0)
733 if (upeek(tcp->pid, PT_AR_BSP, (long *) &bsp) , 0)
738 ptrace(PTRACE_POKEDATA, tcp->pid, (char *) ap, tcp->u_arg[argnum]);
745 ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(4*argnum), tcp->u_arg[argnum]);
751 ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(8*(long)argnum), tcp->u_arg[argnum]);
760 ptrace(PTRACE_POKEUSER, tcp->pid,
770 ptrace(PTRACE_POKEUSER, tcp->pid,
775 if (upeek(tcp->pid, REG_SP, (long *) &sp) , 0)
778 ptrace(PTRACE_POKEDATA, tcp->pid,
787 ptrace(PTRACE_POKEUSER, tcp->pid,
809 int pid;
829 pid = tcp->u_rval;
832 tcpchild = pid2tcb(pid);
841 pid, tcp->pid);
845 if ((tcpchild = alloctcb(pid)) == NULL) {
849 kill(pid, SIGKILL); /* XXX */
855 if (ptrace(PTRACE_ATTACH, pid, (char *) 1, 0) < 0) {
885 if (ptrace(PTRACE_SYSCALL, pid, (char *) 1, 0) < 0) {
893 pid, tcp->pid);
898 fprintf(stderr, "Process %d attached\n", pid);
951 int pid;
981 pid = tcp->u_rval;
982 if ((tcpchild = alloctcb(pid)) == NULL) {
984 kill(pid, SIGKILL); /* XXX */
1006 if (ptrace(PTRACE_ATTACH, pid, (char *) 1, 0) < 0) {
1022 if (ptrace(PTRACE_ATTACH, pid, (char *)1, 0) < 0) {
1033 if (ptrace(PTRACE_ATTACH, pid, (char *) 1, 0) >= 0)
1056 fprintf(stderr, "Process %d attached\n", pid);
1975 XXX If we attached with strace -f -p PID, then there
1997 * PID, then it must get ECHILD right away
1998 * if that PID is not one of its children.
1999 * Make sure that the requested PID matches