Lines Matching refs:ptrace
138 static _hack_syscall5(int,_ptrace,int,__request,int,__pid,int,__addr,int,__data,int,__addr2,ptrace)
647 u.val = ptrace(PTRACE_PEEKDATA, pid, (char *) addr, 0);
663 u.val = ptrace(PTRACE_PEEKDATA, pid, (char *) addr, 0);
693 u.val = ptrace(PTRACE_PEEKDATA, pid, (char *) addr, 0);
703 u.val = ptrace(PTRACE_PEEKDATA, pid, (char *) addr, 0);
717 if (ptrace(PTRACE_READDATA, pid,
798 u.val = ptrace(PTRACE_PEEKDATA, pid, (char *)addr, 0);
816 u.val = ptrace(PTRACE_PEEKDATA, pid, (char *)addr, 0);
860 if (ptrace(cmd, pid, (char *)addr, n, laddr) < 0) {
889 u.val = ptrace(peek, pid, (char *) addr, 0);
895 if (ptrace(poke, pid, (char *)addr, u.val) < 0) {
903 u.val = ptrace(peek, pid, (char *) addr, 0);
905 if (ptrace(poke, pid, (char *) addr, u.val) < 0) {
971 val = ptrace(PTRACE_PEEKUSER, pid, (char *) off, 0);
1018 if (ptrace(PTRACE_GETREGS,tcp->pid,(char *)®s,0) < 0)
1044 if (ptrace(PTRACE_GETREGS, tcp->pid, (char *) ®s, 0) < 0) {
1136 if (ptrace(PTRACE_GETREGS,tcp->pid,(char *)®s,0) < 0) {
1187 if (ptrace(PTRACE_GETREGS, tcp->pid, (char *) ®s, 0) < 0) {
1293 ptrace(req, tcp->pid, ap, val);
1309 ptrace(req, tcp->pid, ap, val);
1318 (ptrace (PTRACE_GETREGS, tcp->pid, (char *) (state), 0))
1320 (ptrace (PTRACE_SETREGS, tcp->pid, (char *) (state), 0))
1382 return ptrace (PTRACE_POKEUSER, tcp->pid, (char*)arg0_offset, val);
1388 return ptrace (PTRACE_POKEUSER, tcp->pid, (char*)arg1_offset, val);
1496 if (ptrace(PTRACE_GETREGS, tcp->pid, (char *)®s, 0) < 0) {
1502 tcp->inst[0] = ptrace(PTRACE_PEEKTEXT, tcp->pid, (char *)tcp->baddr, 0);
1524 ptrace(PTRACE_POKETEXT, tcp->pid, (char *) tcp->baddr, inst);
1545 tcp->inst[0] = ptrace(PTRACE_PEEKTEXT, tcp->pid,
1551 ptrace(PTRACE_POKETEXT, tcp->pid, (char *) tcp->baddr, LOOP);
1582 tcp->inst[0] = ptrace(PTRACE_PEEKTEXT, pid, (char *) addr + 0,
1584 tcp->inst[1] = ptrace(PTRACE_PEEKTEXT, pid, (char *) addr + 8,
1592 ptrace(PTRACE_POKETEXT, pid, (char *) addr + 0, LOOP0);
1593 ptrace(PTRACE_POKETEXT, pid, (char *) addr + 8, LOOP1);
1667 tcp->inst[0] = ptrace(PTRACE_PEEKTEXT, tcp->pid, (char *) tcp->baddr, 0);
1672 ptrace(PTRACE_POKETEXT, tcp->pid, (char *) tcp->baddr, LOOP);
1701 if (ptrace(PTRACE_GETREGS, tcp->pid, (char *)®s, 0) < 0) {
1706 if (ptrace(PTRACE_READTEXT, tcp->pid, (char *)tcp->baddr,
1722 if (ptrace(PTRACE_WRITETEXT, tcp->pid, (char *) tcp->baddr,
1762 ptrace(PTRACE_POKETEXT, tcp->pid, (char *) tcp->baddr, tcp->inst[0]);
1779 ptrace(PTRACE_POKETEXT, tcp->pid, (char *) tcp->baddr, tcp->inst[0]);
1809 ptrace(PTRACE_POKETEXT, pid, (char *) addr + 0, tcp->inst[0]);
1810 ptrace(PTRACE_POKETEXT, pid, (char *) addr + 8, tcp->inst[1]);
1819 ptrace(PTRACE_POKEUSER, pid, (char *) PT_CR_IPSR, ipsr);
1844 ptrace(PTRACE_POKETEXT, tcp->pid, (char *) tcp->baddr, tcp->inst[0]);
1919 ptrace(PTRACE_POKEUSER, tcp->pid, (void *)PT_IAOQ0, iaoq);
1920 ptrace(PTRACE_POKEUSER, tcp->pid, (void *)PT_IAOQ1, iaoq);
1947 if (ptrace(PTRACE_WRITETEXT, tcp->pid, (char *) tcp->baddr,
1959 if (ptrace(PTRACE_GETREGS, tcp->pid, (char *)®s, 0) < 0) {
1978 if (ptrace(PTRACE_SETREGS, tcp->pid, (char *)®s, 0) < 0) {