/external/linux-kselftest/tools/testing/selftests/powerpc/ptrace/ |
D | Makefile | 2 TEST_PROGS := ptrace-gpr ptrace-tm-gpr ptrace-tm-spd-gpr \ 3 ptrace-tar ptrace-tm-tar ptrace-tm-spd-tar ptrace-vsx ptrace-tm-vsx \ 4 ptrace-tm-spd-vsx ptrace-tm-spr 12 $(TEST_PROGS): ../harness.c ../utils.c ../lib/reg.S ptrace.h
|
D | .gitignore | 1 ptrace-gpr 2 ptrace-tm-gpr 3 ptrace-tm-spd-gpr 4 ptrace-tar 5 ptrace-tm-tar 6 ptrace-tm-spd-tar 7 ptrace-vsx 8 ptrace-tm-vsx 9 ptrace-tm-spd-vsx 10 ptrace-tm-spr
|
D | ptrace.h | 68 ret = ptrace(PTRACE_ATTACH, child, NULL, NULL); in start_trace() 85 ret = ptrace(PTRACE_DETACH, child, NULL, NULL); in stop_trace() 97 ret = ptrace(PTRACE_CONT, child, NULL, NULL); in cont_trace() 120 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TAR, &iov); in show_tar_registers() 128 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_PPR, &iov); in show_tar_registers() 136 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_DSCR, &iov); in show_tar_registers() 168 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TAR, &iov); in write_tar_registers() 175 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_PPR, &iov); in write_tar_registers() 182 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_DSCR, &iov); in write_tar_registers() 210 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CTAR, &iov); in show_tm_checkpointed_state() [all …]
|
/external/libunwind/src/ptrace/ |
D | _UPT_access_reg.c | 65 nat_bits = ptrace (PTRACE_PEEKUSER, pid, PT_NAT_BITS, 0); in _UPT_access_reg() 80 ptrace (PTRACE_POKEUSER, pid, PT_NAT_BITS, nat_bits); in _UPT_access_reg() 105 psr = ptrace (PTRACE_PEEKUSER, pid, PT_CR_IPSR, 0); in _UPT_access_reg() 117 ptrace (PTRACE_POKEUSER, pid, PT_CR_IIP, ip); in _UPT_access_reg() 118 ptrace (PTRACE_POKEUSER, pid, PT_CR_IPSR, psr); in _UPT_access_reg() 129 ip = ptrace (PTRACE_PEEKUSER, pid, PT_CR_IIP, 0); in _UPT_access_reg() 153 cfm = ptrace (PTRACE_PEEKUSER, pid, PT_CFM, 0); in _UPT_access_reg() 166 ptrace (PTRACE_POKEUSER, pid, PT_AR_BSP, bsp); in _UPT_access_reg() 177 bsp = ptrace (PTRACE_PEEKUSER, pid, PT_AR_BSP, 0); in _UPT_access_reg() 197 bsp = ptrace (PTRACE_PEEKUSER, pid, PT_AR_BSP, 0); in _UPT_access_reg() [all …]
|
D | _UPT_access_mem.c | 48 ptrace (PTRACE_POKEDATA, pid, (void*) (uintptr_t) addr, (void*) (uintptr_t) *val); in _UPT_access_mem() 64 reg1 = ptrace (PTRACE_PEEKDATA, pid, (void*) (uintptr_t) addr, 0); in _UPT_access_mem() 67 reg2 = ptrace (PTRACE_PEEKDATA, pid, (void*) (uintptr_t) (addr + sizeof(long)), 0); in _UPT_access_mem() 73 *val = ptrace (PTRACE_PEEKDATA, pid, (void*) addr, 0); in _UPT_access_mem() 100 if (ptrace(PT_IO, pid, (caddr_t)&iod, 0) == -1) in _UPT_access_mem()
|
D | libunwind-ptrace.pc.in | 6 Name: libunwind-ptrace 7 Description: libunwind ptrace library 10 Libs: -L${libdir} -lunwind-ptrace
|
D | _UPT_access_fpreg.c | 50 ptrace (PTRACE_POKEUSER, pid, (void*) (_UPT_reg_offset[reg] + i * sizeof(wp[i])), in _UPT_access_fpreg() 64 wp[i] = ptrace (PTRACE_PEEKUSER, pid, in _UPT_access_fpreg() 85 if (ptrace(PT_GETFPREGS, pid, (caddr_t)&fpreg, 0) == -1) in _UPT_access_fpreg() 95 if (ptrace(PT_SETFPREGS, pid, (caddr_t)&fpreg, 0) == -1) in _UPT_access_fpreg()
|
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/ |
D | ptrace.cc | 26 ptrace(PTRACE_TRACEME, 0, NULL, NULL); in main() 34 res = ptrace(PTRACE_GETREGS, pid, NULL, ®s); in main() 40 res = ptrace(PTRACE_GETFPREGS, pid, NULL, &fpregs); in main() 48 res = ptrace((enum __ptrace_request)PTRACE_GETREGS, pid, NULL, ®s); in main() 62 res = ptrace((enum __ptrace_request)PTRACE_GETFPREGS, pid, NULL, &fpregs); in main() 68 res = ptrace((enum __ptrace_request)PTRACE_GETVFPREGS, pid, 0, regbuf); in main() 81 res = ptrace(PTRACE_GETREGSET, pid, (void*)NT_PRSTATUS, (void*)®set_io); in main() 89 res = ptrace(PTRACE_GETREGSET, pid, (void*)NT_FPREGSET, (void*)®set_io); in main() 101 res = ptrace(PTRACE_GETREGSET, pid, (void*)NT_PRSTATUS, (void*)®set_io); in main() 109 res = ptrace(PTRACE_GETREGSET, pid, (void*)NT_FPREGSET, (void*)®set_io); in main() [all …]
|
/external/linux-kselftest/tools/testing/selftests/x86/ |
D | ptrace_syscall.c | 183 if (ptrace(PTRACE_TRACEME, 0, 0, 0) != 0) in test_ptrace_syscall_restart() 202 if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0) in test_ptrace_syscall_restart() 206 if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0) in test_ptrace_syscall_restart() 230 if (ptrace(PTRACE_SETREGS, chld, 0, ®s) != 0) in test_ptrace_syscall_restart() 233 if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0) in test_ptrace_syscall_restart() 237 if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0) in test_ptrace_syscall_restart() 262 if (ptrace(PTRACE_SETREGS, chld, 0, ®s) != 0) in test_ptrace_syscall_restart() 265 if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0) in test_ptrace_syscall_restart() 269 if (ptrace(PTRACE_GETREGS, chld, 0, ®s) != 0) in test_ptrace_syscall_restart() 281 if (ptrace(PTRACE_CONT, chld, 0, 0) != 0) in test_ptrace_syscall_restart() [all …]
|
/external/ltp/m4/ |
D | ltp-ptrace.m4 | 27 dnl Check for ptrace support 34 sys/ptrace.h \ 36 asm/ptrace.h \ 37 linux/ptrace.h \ 40 CPPFLAGS="$CPPFLAGS -I$srcdir/testcases/kernel/syscalls/ptrace" 41 AC_CHECK_TYPES([struct user_regs_struct, struct pt_regs],,,[#include "ptrace.h"]) 42 AC_CHECK_DECLS([PTRACE_GETSIGINFO, PTRACE_O_TRACEVFORKDONE, PTRACE_SETOPTIONS],,,[#include "ptrace.… 43 dnl glibc-2.18 defines ptrace_peeksiginfo_args in sys/ptrace.h which 44 dnl conflicts with the one from linux kernel in linux/ptrace.h 45 AC_CHECK_TYPES([struct ptrace_peeksiginfo_args],,,[#include <sys/ptrace.h>])
|
/external/strace/ |
D | README-linux-ptrace | 1 This document describes Linux ptrace implementation in Linux kernels 18 a specific tracee using ptrace(PTRACE_foo, pid, ...), where pid is a 23 There are many kinds of states when tracee is stopped, and in ptrace 28 ptrace commands from the tracer is called ptrace-stop. Ptrace-stops can 33 1.x Death under ptrace. 38 not a ptrace-stop (because tracer can't query tracee status such as 41 ptrace-stop. 55 Tracer can kill a tracee with ptrace(PTRACE_KILL, pid, 0, 0). This 72 Tracer cannot assume that ptrace-stopped tracee exists. There are many 75 ptrace operation. Unfortunately, the same error is returned if tracee [all …]
|
/external/linux-kselftest/tools/testing/selftests/breakpoints/ |
D | breakpoint_test.c | 45 ret = ptrace(PTRACE_POKEUSER, child_pid, in set_breakpoint_addr() 87 dr7 = ptrace(PTRACE_PEEKUSER, child_pid, in toggle_breakpoint() 107 ret = ptrace(PTRACE_POKEUSER, child_pid, in toggle_breakpoint() 208 ret = ptrace(PTRACE_TRACEME, 0, NULL, 0); in trigger_tests() 275 child_nr_tests = ptrace(PTRACE_PEEKDATA, child_pid, in check_success() 279 if (ptrace(PTRACE_POKEDATA, child_pid, &trapped, 1)) in check_success() 298 ptrace(PTRACE_CONT, child_pid, NULL, 0); in launch_instruction_breakpoints() 320 ptrace(PTRACE_CONT, child_pid, NULL, 0); in launch_watchpoints() 369 ptrace(PTRACE_CONT, child_pid, NULL, 0); in launch_tests() 373 ptrace(PTRACE_CONT, child_pid, NULL, 0); in launch_tests() [all …]
|
/external/libunwind/tests/ |
D | test-ptrace.c | 220 ptrace (PTRACE_TRACEME, 0, 0, 0); in main() 222 ptrace (PT_TRACE_ME, 0, 0, 0); in main() 296 ptrace (PTRACE_CONT, target_pid, 0, 0); in main() 298 ptrace (PT_CONTINUE, target_pid, (caddr_t)1, 0); in main() 306 ptrace (PTRACE_SINGLESTEP, target_pid, 0, pending_sig); in main() 308 ptrace (PT_STEP, target_pid, (caddr_t)1, pending_sig); in main() 320 ptrace (PTRACE_SYSCALL, target_pid, 0, pending_sig); in main() 322 ptrace (PT_SYSCALL, target_pid, (caddr_t)1, pending_sig); in main() 331 ptrace (PTRACE_SINGLESTEP, target_pid, 0, pending_sig); in main() 333 ptrace (PT_STEP, target_pid, (caddr_t)1, pending_sig); in main()
|
D | Makefile.am | 3 EXTRA_DIST = run-ia64-test-dyn1 run-ptrace-mapper run-ptrace-misc \ 54 check_SCRIPTS_cdep += run-ptrace-mapper run-ptrace-misc 55 check_PROGRAMS_cdep += test-ptrace 56 noinst_PROGRAMS_cdep += mapper test-ptrace-misc 129 test_ptrace_misc_SOURCES = test-ptrace-misc.c ident.c 136 LIBUNWIND_ptrace = $(top_builddir)/src/libunwind-ptrace.la
|
/external/valgrind/coregrind/ |
D | vgdb-invoker-ptrace.c | 119 buffer[i] = ptrace (PTRACE_PEEKTEXT, inferior_pid, in ptrace_read_memory() 161 buffer[0] = ptrace (PTRACE_PEEKTEXT, inferior_pid, in ptrace_write_memory() 166 = ptrace (PTRACE_PEEKTEXT, inferior_pid, in ptrace_write_memory() 181 ptrace (PTRACE_POKETEXT, inferior_pid, in ptrace_write_memory() 309 res = ptrace (PTRACE_GETSIGINFO, pid, NULL, newsiginfo); in waitstopped() 317 res = ptrace (PTRACE_CONT, pid, NULL, 0); in waitstopped() 320 res = ptrace (PTRACE_CONT, pid, NULL, signal_received); in waitstopped() 365 res = ptrace (PTRACE_ATTACH, pid, NULL, NULL); in attach() 498 res = ptrace (PTRACE_DETACH, vgdb_threads[i].lwpid, NULL, NULL); in detach_from_all_threads() 515 res = ptrace (PTRACE_DETACH, pid, NULL, NULL); in detach_from_all_threads() [all …]
|
/external/libunwind/src/coredump/ |
D | README | 1 This code is based on "unwinding via ptrace" code from ptrace/ 5 from their ptrace/_UPT_... progenitors. 8 from ptrace/, or unimplemented stubs.
|
/external/libunwind/doc/ |
D | libunwind-ptrace.tex | 8 …gin{Name}{3}{libunwind-ptrace}{David Mosberger-Tang}{Programming Library}{ptrace() support in libu… 13 \File{\#include $<$libunwind-ptrace.h$>$}\\ 41 The \Func{ptrace}(2) system-call makes it possible for a process to 45 \Func{ptrace}(2). While it's not very difficult to do so directly, 49 stands for ``unwind-via-ptrace''. 68 Next, the application can turn on ptrace-mode on the target process, 80 the target process. It simply invokes \Func{ptrace}(2) with a command 91 Since \Func{ptrace}(2) works within a single machine only, the 113 \item[\File{libunwind-ptrace.h}] Headerfile to include when using the 115 \item[\Opt{-l}\File{unwind-ptrace} \Opt{-l}\File{unwind-generic}] [all …]
|
/external/compiler-rt/test/asan/TestCases/Linux/ |
D | ptrace.cc | 76 ptrace(PTRACE_TRACEME, 0, NULL, NULL); in main() 100 res = ptrace((enum __ptrace_request)__PTRACE_REQUEST, pid, __PTRACE_ARGS); in main() 112 res = ptrace((enum __ptrace_request)PTRACE_GETREGSET, pid, (void*)NT_FPREGSET, in main() 117 res = ptrace((enum __ptrace_request)__PTRACE_FPREQUEST, pid, __PTRACE_FPARGS); in main() 123 res = ptrace(PTRACE_GETFPXREGS, pid, NULL, &fpxregs); in main() 128 ptrace(PTRACE_CONT, pid, NULL, NULL); in main()
|
/external/ltp/testcases/kernel/controllers/freezer/ |
D | vfork.c | 82 if (ptrace(PTRACE_KILL, child, NULL, NULL) < 0) { in kill_child() 207 if (ptrace(PTRACE_GETSIGINFO, gchild, NULL, &info) == -1) { in trace_grandchild() 222 if (ptrace(PTRACE_DETACH, gchild, NULL, NULL) == -1) in trace_grandchild() 254 if (ptrace(PTRACE_CONT, process, NULL, NULL) == -1) in do_trace() 341 if (ptrace(PTRACE_ATTACH, child, NULL, NULL) == -1) { in main() 351 if (ptrace(PTRACE_SETOPTIONS, child, NULL, in main() 357 if (ptrace(PTRACE_CONT, child, NULL, NULL) == in main()
|
/external/selinux/python/sepolicy/sepolicy/help/ |
D | lockdown_ptrace.txt | 1 Disable ptrace capability on your system. 8 …ptrace and sys_ptrace. These accesses allow one process to read the memory of another process. … 14 Note: Disabling ptrace can break some bug trappers that attempt to collect crash data.
|
/external/honggfuzz/docs/ |
D | Android.md | 4 both ptrace() API and POSIX signals interface. When ptrace() API is enabled, 30 | **armeabi** | ptrace() API & POSIX signal interface | 31 | **armeabi-v7a** | ptrace() API & POSIX signal interface | 32 | **arm64-v8a** | ptrace() API & POSIX signal interface `*`| 33 | **x86** | ptrace() API & POSIX signal interface | 34 | **x86_64** | ptrace() API & POSIX signal interface |
|
/external/ltp/testcases/kernel/syscalls/ptrace/ |
D | ptrace07.c | 115 TEST(ptrace(PTRACE_ATTACH, pid, 0, 0)); in do_test() 120 TEST(ptrace(PTRACE_GETREGSET, pid, NT_X86_XSTATE, &iov)); in do_test() 145 TEST(ptrace(PTRACE_SETREGSET, pid, NT_X86_XSTATE, &iov)); in do_test() 156 TEST(ptrace(PTRACE_CONT, pid, 0, 0)); in do_test()
|
/external/elfutils/libdwfl/ |
D | linux-pid-attach.c | 74 if (ptrace (PTRACE_ATTACH, tid, NULL, NULL) != 0) in __libdwfl_ptrace_attach() 89 ptrace (PTRACE_CONT, tid, NULL, NULL); in __libdwfl_ptrace_attach() 97 ptrace (PTRACE_DETACH, tid, NULL, NULL); in __libdwfl_ptrace_attach() 104 if (ptrace (PTRACE_CONT, tid, NULL, in __libdwfl_ptrace_attach() 108 ptrace (PTRACE_DETACH, tid, NULL, NULL); in __libdwfl_ptrace_attach() 128 *result = ptrace (PTRACE_PEEKDATA, tid, (void *) (uintptr_t) addr, NULL); in pid_memory_read() 143 *result = ptrace (PTRACE_PEEKDATA, tid, (void *) (uintptr_t) addr, NULL); in pid_memory_read() 269 ptrace (PTRACE_DETACH, tid, NULL, in __libdwfl_ptrace_detach()
|
/external/autotest/client/site_tests/security_ptraceRestrictions/ |
D | control | 7 PURPOSE = "Verify ptrace restrictions introduced by the Yama LSM" 8 CRITERIA = "Fails if kernel lacks ptrace restrictions" 17 Checks that the kernel correctly restricts the use of ptrace between
|
/external/elfutils/backends/ |
D | sparc_initreg.c | 60 if (ptrace (PTRACE_GETREGS, tid, ®s, 0) == -1) in EBLHOOK() 94 locals_outs[i] = ptrace (PTRACE_PEEKDATA, tid, in EBLHOOK() 107 Dwarf_Word tuple = ptrace (PTRACE_PEEKDATA, tid, in EBLHOOK()
|