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.c329 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 …]
Dpub_core_libcproc.h80 extern Int VG_(ptrace)( Int request, Int pid, void *addr, void *data );
/external/strace/
Dutil.c195 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 …]
Dsyscall.c782 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, &regs) < 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 *)&regs) == -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) &regs) < 0) in get_scno()
1151 if (ptrace(PTRACE_GETREGS, tcp->pid, (char *)&regs, 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 …]
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.h149 #define ptrace xptrace macro
151 #undef ptrace
158 extern long ptrace(int, int, char *, long);
160 extern int ptrace(int, int, char *, int, ...);
Dstrace.c443 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/
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/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/sepolicy/
Dmls26 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/
Dtsan_rtl_report.cc683 __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/
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/
Dbase-notmetreq.conf272 ptrace

12