/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 | 329 buffer[i] = ptrace (PTRACE_PEEKTEXT, inferior_pid, in ptrace_read_memory() 371 buffer[0] = ptrace (PTRACE_PEEKTEXT, inferior_pid, in ptrace_write_memory() 376 = ptrace (PTRACE_PEEKTEXT, inferior_pid, in ptrace_write_memory() 391 ptrace (PTRACE_POKETEXT, inferior_pid, in ptrace_write_memory() 494 res = ptrace (PTRACE_CONT, pid, NULL, signal_received); in waitstopped() 538 res = ptrace (PTRACE_ATTACH, pid, NULL, NULL); in attach() 666 res = ptrace (PTRACE_DETACH, vgdb_threads[i].lwpid, NULL, NULL); in detach_from_all_threads() 681 res = ptrace (PTRACE_DETACH, pid, NULL, NULL); in detach_from_all_threads() 715 res = ptrace (PTRACE_GETREGS, pid, NULL, regs); in getregs() 758 *(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 | 195 l = ptrace(request, tcp->pid, addr, (long) data); in do_ptrace() 217 ptrace(op, tcp->pid, (void *) 1, (long) sig); in ptrace_restart() 776 u.val = ptrace(PTRACE_PEEKDATA, pid, (char *) addr, 0); in umoven() 793 u.val = ptrace(PTRACE_PEEKDATA, pid, (char *) addr, 0); in umoven() 816 if (ptrace(PTRACE_READDATA, pid, in umoven() 894 u.val = ptrace(PTRACE_PEEKDATA, pid, (char *)addr, 0); in umovestr() 913 u.val = ptrace(PTRACE_PEEKDATA, pid, (char *)addr, 0); in umovestr() 972 u.val = ptrace(peek, pid, (char *) addr, 0); 978 if (ptrace(poke, pid, (char *)addr, u.val) < 0) { 986 u.val = ptrace(peek, pid, (char *) addr, 0); [all …]
|
D | syscall.c | 782 opcode = ptrace(PTRACE_PEEKTEXT, tcp->pid, (char *)(pc-sizeof(long)), 0); in get_scno() 823 scno = ptrace(PTRACE_PEEKTEXT, tcp->pid, svc_addr, 0); in get_scno() 876 if (ptrace(PTRACE_GETREGS, tcp->pid, NULL, ®s) < 0) in get_scno() 938 call = ptrace(PTRACE_PEEKTEXT, pid, (char *)rip, (char *)0); in get_scno() 991 if (ptrace(PTRACE_GETREGS, tcp->pid, NULL, (void *)®s) == -1) in get_scno() 1019 scno = ptrace(PTRACE_PEEKTEXT, tcp->pid, (void *)(regs.ARM_pc - 4), NULL); in get_scno() 1073 if (ptrace (PTRACE_GETREGS, tcp->pid, NULL, (long) ®s) < 0) in get_scno() 1151 if (ptrace(PTRACE_GETREGS, tcp->pid, (char *)®s, 0) < 0) in get_scno() 1159 trap = ptrace(PTRACE_PEEKTEXT, tcp->pid, (char *)regs.tpc, 0); in get_scno() 1162 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 | 149 #define ptrace xptrace macro 151 #undef ptrace 158 extern long ptrace(int, int, char *, long); 160 extern int ptrace(int, int, char *, int, ...);
|
D | strace.c | 443 if (ptrace(PTRACE_ATTACH, tid, (char *) 1, 0) < 0) in startup_attach() 476 if (ptrace(PTRACE_ATTACH, tcp->pid, (char *) 1, 0) < 0) { in startup_attach() 602 if (ptrace(PTRACE_TRACEME, 0, (char *) 1, 0) < 0) { in startup_child() 707 if (ptrace(PTRACE_TRACEME, 0, (char *)1, 0) < 0) in test_ptrace_setoptions() 727 if (ptrace(PTRACE_CONT, tracee_pid, 0, 0) < 0 && in test_ptrace_setoptions() 734 if (ptrace(PTRACE_SETOPTIONS, pid, in test_ptrace_setoptions() 744 if (ptrace(PTRACE_GETEVENTMSG, pid, in test_ptrace_setoptions() 750 if (ptrace(PTRACE_SYSCALL, pid, 0, 0) < 0 && in test_ptrace_setoptions() 1676 if ((error = ptrace(PTRACE_DETACH, tcp->pid, (char *) 1, sig)) == 0) { 2499 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/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/sepolicy/ |
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/compiler-rt/lib/tsan/rtl/ |
D | tsan_rtl_report.cc | 683 __sanitizer::StackTrace *ptrace = new(internal_alloc(MBlockStackTrace, in PrintCurrentStackSlow() local 685 ptrace->SlowUnwindStack(__sanitizer::StackTrace::GetCurrentPc(), in PrintCurrentStackSlow() 688 trace.Init(ptrace->trace, ptrace->size); in PrintCurrentStackSlow()
|
/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 | base-notmetreq.conf | 272 ptrace
|