Home | History | Annotate | Download | only in strace

Lines Matching refs:pid

795 	int pid = tcp->pid;
820 if (upeek(pid, PT_GPR2, &syscall_mode) < 0)
840 if (upeek(pid, PT_PSWADDR, &pc) < 0)
843 opcode = ptrace(PTRACE_PEEKTEXT, pid, (char *)(pc-sizeof(long)), 0);
874 if (offset_reg && (upeek(pid, gpr_offset[offset_reg], &tmp) < 0))
880 if (offset_reg && (upeek(pid, gpr_offset[offset_reg], &tmp) < 0))
884 scno = ptrace(PTRACE_PEEKTEXT, pid, svc_addr, 0);
894 if (offset_reg && (upeek(pid, gpr_offset[offset_reg], &tmp) < 0))
901 if (upeek(pid, sizeof(unsigned long)*PT_R0, &scno) < 0)
911 if (upeek(pid, 4*ORIG_EAX, &scno) < 0)
914 if (upeek(pid, 8*ORIG_RAX, &scno) < 0)
927 if (upeek(pid, 8*CS, &val) < 0)
936 "PID=%d\n", (int)val, pid);
947 if(upeek(pid, 8*RIP, &rip)<0)
954 call = ptrace(PTRACE_PEEKTEXT,pid,(char *)rip,0);
969 "PID=%d\n", (int)call, pid);
977 printf("[ Process PID=%d runs in %s mode. ]\n",
978 pid, names[current_personality]);
983 if (upeek (pid, PT_CR_IPSR, &psr) >= 0)
987 if (upeek(pid, PT_R1, &scno) < 0) /* orig eax */
990 if (upeek (pid, PT_R15, &scno) < 0)
1000 if (upeek (pid, PT_R8, &r8) < 0)
1002 if (upeek (pid, PT_R10, &r10) < 0)
1009 if (ptrace(PTRACE_GETREGS, pid, NULL, (void *)&regs) == -1)
1037 scno = ptrace(PTRACE_PEEKTEXT, pid, (void *)(regs.ARM_pc - 4), NULL);
1068 fprintf(stderr, "pid %d stray syscall entry\n", tcp->pid);
1073 fprintf(stderr, "pid %d stray syscall exit\n", tcp->pid);
1078 if (upeek(pid, 4*PT_ORIG_D0, &scno) < 0)
1081 if (upeek(pid, REG_A3, &a3) < 0)
1085 if (upeek(pid, REG_V0, &scno) < 0)
1096 if (upeek(pid, REG_V0, &r2) < 0)
1100 if (upeek(pid, REG_A3, &a3) < 0)
1104 if (upeek(pid, REG_R0, &scno) < 0)
1126 if (upeek(pid, REG_R0, &r0) < 0)
1131 if (ptrace(PTRACE_GETREGS,pid,(char *)&regs,0) < 0)
1138 trap = ptrace(PTRACE_PEEKTEXT,pid,(char *)regs.r_pc,0);
1196 if (upeek(pid, PT_GR20, &scno) < 0)
1209 if (upeek(pid, 4*(REG_REG0+3), &scno) < 0)
1235 if (upeek(pid, REG_SYSCALL, &scno) < 0)
1249 if (upeek(pid, uoff(u_arg[7]), &scno) < 0)
1253 if (upeek(pid, 4*REG_REG0, (long *)&r0) < 0)
1257 if (upeek(pid, REG_GENERAL(9), (long *)&r9) < 0)
1307 int pid = tcp->pid;
1372 if (upeek(pid, 4*EAX, &eax) < 0)
1380 if (upeek(pid, 8*RAX, &rax) < 0)
1390 if (upeek(pid, PT_GPR2, &gpr2) < 0)
1410 if (upeek(pid, sizeof(unsigned long)*PT_CCR, &flags) < 0)
1412 if (upeek(pid, sizeof(unsigned long)*PT_R3, &result) < 0)
1417 if (upeek(pid, 4*PT_D0, &d0) < 0)
1429 if (upeek(pid, PT_GR28, &r28) < 0)
1432 if (upeek(pid, PT_R10, &r10) < 0)
1434 if (upeek(pid, PT_R8, &r8) < 0)
1622 if (upeek(pid, uoff(u_error), &u_error) < 0)
1627 if (upeek(pid, uoff(u_rval1), &tcp->u_rval) < 0)
1704 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)PT_GPR2, gpr2) < 0)
1709 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(EAX * 4), eax) < 0)
1714 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(RAX * 8), rax) < 0)
1720 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(PT_R8), r8) < 0)
1732 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(PT_R8), r8) < 0 ||
1733 ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(PT_R10), r10) < 0)
1746 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(REG_A3), a3) < 0 ||
1747 ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(REG_V0), r2) < 0)
1751 if (upeek(tcp->pid, sizeof(unsigned long)*PT_CCR, &flags) < 0)
1761 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(sizeof(unsigned long)*PT_CCR), flags) < 0 ||
1762 ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(sizeof(unsigned long)*PT_R3), result) < 0)
1767 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(4*PT_D0), d0) < 0)
1772 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(4*0), regs.ARM_r0) < 0)
1784 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(REG_A3), a3) < 0 ||
1785 ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(REG_R0), r0) < 0)
1789 if (ptrace(PTRACE_GETREGS, tcp->pid, (char *)&regs, 0) < 0)
1799 if (ptrace(PTRACE_SETREGS, tcp->pid, (char *)&regs, 0) < 0)
1803 if (ptrace(PTRACE_GETREGS, tcp->pid, (char *)&regs, 0) < 0)
1813 if (ptrace(PTRACE_SETREGS, tcp->pid, (char *)&regs, 0) < 0)
1818 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(PT_GR28), r28) < 0)
1823 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(4*REG_REG0), r0) < 0)
1828 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)REG_GENERAL(9), r9) < 0)
1846 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)uoff(u_error),
1848 ptrace(PTRACE_POKEUSER, tcp->pid, (char*)uoff(u_rval1), rval) < 0)
1885 int pid = tcp->pid;
1896 if (upeek(pid,i==0 ? PT_ORIGGPR2:PT_GPR2+i*sizeof(long), &tcp->u_arg[i]) < 0)
1911 if (upeek(pid, REG_A0+i, &tcp->u_arg[i]) < 0)
1924 if (upeek(pid, PT_RBS_END, (long *) &rbs_end) < 0)
1926 if (upeek(pid, PT_CFM, (long *) &cfm) < 0)
1947 upeek(pid, PT_R11, (long *) &tcp->u_arg[0]) < 0
1949 || upeek(pid, PT_R9, (long *) &tcp->u_arg[1]) < 0
1951 || upeek(pid, PT_R10, (long *) &tcp->u_arg[2]) < 0
1953 || upeek(pid, PT_R14, (long *) &tcp->u_arg[3]) < 0
1955 || upeek(pid, PT_R15, (long *) &tcp->u_arg[4]) < 0
1957 || upeek(pid, PT_R13, (long *) &tcp->u_arg[5]) < 0)
1981 if(upeek(pid, REG_SP, &sp) < 0)
1984 if (upeek(pid, REG_A0 + i, &tcp->u_arg[i])<0)
1991 if (upeek(pid, REG_A0 + i, &tcp->u_arg[i]) < 0)
2007 if (upeek(pid, (i==0) ?
2034 if (upeek(pid, PT_GR26-4*i, &tcp->u_arg[i]) < 0)
2059 if (upeek(pid, 4*syscall_regs[i], &tcp->u_arg[i]) < 0)
2080 if (upeek(pid, REG_GENERAL(syscall_regs[i]), &tcp->u_arg[i]) < 0)
2098 if (upeek(pid, argreg[current_personality][i]*8, &tcp->u_arg[i]) < 0)
2110 if (upeek(pid, i*4, &tcp->u_arg[i]) < 0)
2126 if (upeek(pid, uoff(u_arg[0]) +
2561 if (ptrace(PTRACE_GETREGS,tcp->pid,(char *)&regs,0) < 0)
2565 if (upeek(tcp->pid, 4*(REG_REG0+1), &val) < 0)
2568 if (upeek(tcp->pid, PT_R9, &val) < 0)
2574 if (upeek(tcp->pid, uoff(u_rval2), &val) < 0)