Home
last modified time | relevance | path

Searched refs:ptrace (Results 1 – 25 of 47) sorted by relevance

12

/external/valgrind/main/coregrind/
Dm_debugger.c70 return VG_(ptrace)(VKI_PTRACE_SETREGS, pid, NULL, &regs); in ptrace_setregs()
108 return VG_(ptrace)(VKI_PTRACE_SETREGS, pid, NULL, &regs); 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 …]
Dvgdb.c326 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 …]
Dpub_core_libcproc.h80 extern Int VG_(ptrace)( Int request, Int pid, void *addr, void *data );
/external/strace/
Dutil.c199 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 …]
Dsyscall.c786 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, &regs) < 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 *)&regs) == -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) &regs) < 0) in get_scno()
1155 if (ptrace(PTRACE_GETREGS, tcp->pid, (char *)&regs, 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 …]
Dprocess.c699 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*)&regs, 0)<0) in change_syscall()
726 if (ptrace(PTRACE_SETREGS, tcp->pid, (char*)&regs, 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 …]
DPORTING10 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
Ddefs.h153 #define ptrace xptrace macro
155 #undef ptrace
162 extern long ptrace(int, int, char *, long);
164 extern int ptrace(int, int, char *, int, ...);
Dstrace.c446 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/
DmcinvokeRU.vgtest8 # We even disable ptrace invoker to avoid spurious attach error message
9 # on kernels where ptrace is restricted.
/external/kernel-headers/original/linux/
Dptrace.h104 if (unlikely(child->ptrace)) in ptrace_link()
109 if (unlikely(child->ptrace)) in ptrace_unlink()
/external/kernel-headers/original/asm-x86/
Dsignal.h250 if (current->ptrace & PT_DTRACE) { \
251 current->ptrace &= ~PT_DTRACE; \
/external/valgrind/main/coregrind/m_gdbserver/
DREADME_DEVELOPERS12 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/
Ddebuggerd.te10 allow debuggerd domain:process ptrace;
Dmls26 mlsconstrain process { getsched getsession getpgid getcap getattr ptrace share }
30 mlsconstrain process { sigkill sigstop signal setsched setpgid setcap setrlimit ptrace share }
/external/oprofile/module/
Dcompat24.h32 #define PTRACE_OFF(t) ((t)->ptrace &= ~PT_DTRACE)
Dcompat22.h134 #define PTRACE_OFF(t) ((t)->ptrace &= ~PT_DTRACE)
/external/libsepol/tests/policies/test-linker/
Dsmall-base.conf273 ptrace
448 allow g_b_type_1 g_b_type_2 : process ~ptrace; #test ~
/external/valgrind/main/
Ddarwin9-drd.supp146 drd:darwin-ptrace
148 fun:ptrace
/external/libsepol/tests/policies/test-hooks/
Dsmall-base.conf273 ptrace
Dcmp_policy.conf273 ptrace
/external/libsepol/tests/policies/test-expander/
Drole-base.conf273 ptrace
Dalias-base.conf273 ptrace
Duser-base.conf273 ptrace
/external/libsepol/tests/policies/test-deps/
Dsmall-base.conf273 ptrace

12