/external/valgrind/main/coregrind/ |
D | m_debugger.c | 70 return VG_(ptrace)(VKI_PTRACE_SETREGS, pid, NULL, ®s); in ptrace_setregs() 108 return VG_(ptrace)(VKI_PTRACE_SETREGS, pid, NULL, ®s); in ptrace_setregs() 113 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R0 * 4), (void*)vex->guest_GPR0); in ptrace_setregs() 114 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R1 * 4), (void*)vex->guest_GPR1); in ptrace_setregs() 115 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R2 * 4), (void*)vex->guest_GPR2); in ptrace_setregs() 116 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R3 * 4), (void*)vex->guest_GPR3); in ptrace_setregs() 117 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R4 * 4), (void*)vex->guest_GPR4); in ptrace_setregs() 118 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R5 * 4), (void*)vex->guest_GPR5); in ptrace_setregs() 119 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R6 * 4), (void*)vex->guest_GPR6); in ptrace_setregs() 120 rc |= VG_(ptrace)(VKI_PTRACE_POKEUSR, pid, (void*)(VKI_PT_R7 * 4), (void*)vex->guest_GPR7); in ptrace_setregs() [all …]
|
D | vgdb.c | 326 buffer[i] = ptrace (PTRACE_PEEKTEXT, inferior_pid, in ptrace_read_memory() 368 buffer[0] = ptrace (PTRACE_PEEKTEXT, inferior_pid, in ptrace_write_memory() 373 = ptrace (PTRACE_PEEKTEXT, inferior_pid, in ptrace_write_memory() 388 ptrace (PTRACE_POKETEXT, inferior_pid, in ptrace_write_memory() 489 res = ptrace (PTRACE_CONT, pid, NULL, signal_received); in waitstopped() 533 res = ptrace (PTRACE_ATTACH, pid, NULL, NULL); in attach() 661 res = ptrace (PTRACE_DETACH, vgdb_threads[i].lwpid, NULL, NULL); in detach_from_all_threads() 676 res = ptrace (PTRACE_DETACH, pid, NULL, NULL); in detach_from_all_threads() 710 res = ptrace (PTRACE_GETREGS, pid, NULL, regs); in getregs() 753 *(long *)(pregs+offset) = ptrace(PTRACE_PEEKUSER, pid, offset, NULL); in getregs() [all …]
|
D | pub_core_libcproc.h | 80 extern Int VG_(ptrace)( Int request, Int pid, void *addr, void *data );
|
/external/strace/ |
D | util.c | 199 l = ptrace(request, tcp->pid, addr, (long) data); in do_ptrace() 221 ptrace(op, tcp->pid, (void *) 1, (long) sig); in ptrace_restart() 780 u.val = ptrace(PTRACE_PEEKDATA, pid, (char *) addr, 0); in umoven() 797 u.val = ptrace(PTRACE_PEEKDATA, pid, (char *) addr, 0); in umoven() 820 if (ptrace(PTRACE_READDATA, pid, in umoven() 898 u.val = ptrace(PTRACE_PEEKDATA, pid, (char *)addr, 0); in umovestr() 917 u.val = ptrace(PTRACE_PEEKDATA, pid, (char *)addr, 0); in umovestr() 976 u.val = ptrace(peek, pid, (char *) addr, 0); 982 if (ptrace(poke, pid, (char *)addr, u.val) < 0) { 990 u.val = ptrace(peek, pid, (char *) addr, 0); [all …]
|
D | syscall.c | 786 opcode = ptrace(PTRACE_PEEKTEXT, tcp->pid, (char *)(pc-sizeof(long)), 0); in get_scno() 827 scno = ptrace(PTRACE_PEEKTEXT, tcp->pid, svc_addr, 0); in get_scno() 880 if (ptrace(PTRACE_GETREGS, tcp->pid, NULL, ®s) < 0) in get_scno() 942 call = ptrace(PTRACE_PEEKTEXT, pid, (char *)rip, (char *)0); in get_scno() 995 if (ptrace(PTRACE_GETREGS, tcp->pid, NULL, (void *)®s) == -1) in get_scno() 1023 scno = ptrace(PTRACE_PEEKTEXT, tcp->pid, (void *)(regs.ARM_pc - 4), NULL); in get_scno() 1077 if (ptrace (PTRACE_GETREGS, tcp->pid, NULL, (long) ®s) < 0) in get_scno() 1155 if (ptrace(PTRACE_GETREGS, tcp->pid, (char *)®s, 0) < 0) in get_scno() 1163 trap = ptrace(PTRACE_PEEKTEXT, tcp->pid, (char *)regs.tpc, 0); in get_scno() 1166 trap = ptrace(PTRACE_PEEKTEXT, tcp->pid, (char *)regs.pc, 0); in get_scno() [all …]
|
D | process.c | 699 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(ORIG_EAX * 4), new) < 0) in change_syscall() 704 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(ORIG_RAX * 8), new) < 0) in change_syscall() 708 if (ptrace(PTRACE_POKEUSER, tcp->pid, in change_syscall() 714 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(PT_GPR2), new)<0) in change_syscall() 718 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(4*PT_ORIG_D0), new)<0) in change_syscall() 723 if (ptrace(PTRACE_GETREGS, tcp->pid, (char*)®s, 0)<0) in change_syscall() 726 if (ptrace(PTRACE_SETREGS, tcp->pid, (char*)®s, 0)<0) in change_syscall() 730 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(REG_V0), new)<0) in change_syscall() 734 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(REG_A3), new)<0) in change_syscall() 738 if (ptrace(PTRACE_POKEUSER, tcp->pid, (char*)(REG_R8), new) < 0) in change_syscall() [all …]
|
D | PORTING | 10 ptrace system call and the PIOCSENTRY/PIOCSEXIT ioctl for the /proc 16 Therefore the first step is to try `man 2 ptrace' and `man 4 proc' to 28 If you have arrived here, your OS should have ptrace or proc or you 31 boredom. If the mechanism is neither ptrace nor proc then examine how
|
D | defs.h | 153 #define ptrace xptrace macro 155 #undef ptrace 162 extern long ptrace(int, int, char *, long); 164 extern int ptrace(int, int, char *, int, ...);
|
D | strace.c | 446 if (ptrace(PTRACE_ATTACH, tid, (char *) 1, 0) < 0) in startup_attach() 479 if (ptrace(PTRACE_ATTACH, tcp->pid, (char *) 1, 0) < 0) { in startup_attach() 605 if (ptrace(PTRACE_TRACEME, 0, (char *) 1, 0) < 0) { in startup_child() 710 if (ptrace(PTRACE_TRACEME, 0, (char *)1, 0) < 0) in test_ptrace_setoptions() 730 if (ptrace(PTRACE_CONT, tracee_pid, 0, 0) < 0 && in test_ptrace_setoptions() 737 if (ptrace(PTRACE_SETOPTIONS, pid, in test_ptrace_setoptions() 747 if (ptrace(PTRACE_GETEVENTMSG, pid, in test_ptrace_setoptions() 753 if (ptrace(PTRACE_SYSCALL, pid, 0, 0) < 0 && in test_ptrace_setoptions() 1679 if ((error = ptrace(PTRACE_DETACH, tcp->pid, (char *) 1, sig)) == 0) { 2502 ptrace(PTRACE_CONT, pid, (char *) 1, 0); in trace() [all …]
|
/external/valgrind/main/gdbserver_tests/ |
D | mcinvokeRU.vgtest | 8 # We even disable ptrace invoker to avoid spurious attach error message 9 # on kernels where ptrace is restricted.
|
/external/kernel-headers/original/linux/ |
D | ptrace.h | 104 if (unlikely(child->ptrace)) in ptrace_link() 109 if (unlikely(child->ptrace)) in ptrace_unlink()
|
/external/kernel-headers/original/asm-x86/ |
D | signal.h | 250 if (current->ptrace & PT_DTRACE) { \ 251 current->ptrace &= ~PT_DTRACE; \
|
/external/valgrind/main/coregrind/m_gdbserver/ |
D | README_DEVELOPERS | 12 on the same machine : gdb uses system calls (such as ptrace) 42 The ptrace system calls inside gdbserver have been replaced by reading 168 This forced invocation is implemented using the ptrace system call: 169 using ptrace, vgdb will cause the valgrind process to call the 174 calls. When using ptrace as above, the linux kernel is responsible to 183 So, the ptrace based solution was chosen instead. 185 There used to be some bugs in the kernel when using ptrace on 188 with a vgdb in 64bits ptrace-ing a 32 bits process. 197 restart with ptrace. 202 Also, disabling this ptrace mechanism is necessary in case you are [all …]
|
/external/sepolicy/ |
D | debuggerd.te | 10 allow debuggerd domain:process ptrace;
|
D | mls | 26 mlsconstrain process { getsched getsession getpgid getcap getattr ptrace share } 30 mlsconstrain process { sigkill sigstop signal setsched setpgid setcap setrlimit ptrace share }
|
/external/oprofile/module/ |
D | compat24.h | 32 #define PTRACE_OFF(t) ((t)->ptrace &= ~PT_DTRACE)
|
D | compat22.h | 134 #define PTRACE_OFF(t) ((t)->ptrace &= ~PT_DTRACE)
|
/external/libsepol/tests/policies/test-linker/ |
D | small-base.conf | 273 ptrace 448 allow g_b_type_1 g_b_type_2 : process ~ptrace; #test ~
|
/external/valgrind/main/ |
D | darwin9-drd.supp | 146 drd:darwin-ptrace 148 fun:ptrace
|
/external/libsepol/tests/policies/test-hooks/ |
D | small-base.conf | 273 ptrace
|
D | cmp_policy.conf | 273 ptrace
|
/external/libsepol/tests/policies/test-expander/ |
D | role-base.conf | 273 ptrace
|
D | alias-base.conf | 273 ptrace
|
D | user-base.conf | 273 ptrace
|
/external/libsepol/tests/policies/test-deps/ |
D | small-base.conf | 273 ptrace
|