/external/linux-kselftest/tools/testing/selftests/breakpoints/ |
breakpoint_test_arm64.c | 22 #include <asm/ptrace.h> 25 #include <sys/ptrace.h> 46 if (ptrace(PTRACE_TRACEME, 0, NULL, NULL) != 0) { 48 "ptrace(PTRACE_TRACEME) failed: %s\n", 107 if (ptrace(PTRACE_SETREGSET, pid, NT_ARM_HW_WATCH, &iov) == 0) 112 "ptrace(PTRACE_SETREGSET, NT_ARM_HW_WATCH) not supported on this hardware: %s\n", 116 "ptrace(PTRACE_SETREGSET, NT_ARM_HW_WATCH) failed: %s\n", 155 if (ptrace(PTRACE_CONT, pid, NULL, NULL) < 0) { 157 "ptrace(PTRACE_SINGLESTEP) failed: %s\n", 182 if (ptrace(PTRACE_GETSIGINFO, pid, NULL, &siginfo) != 0) [all...] |
step_after_suspend_test.c | 25 #include <sys/ptrace.h> 45 if (ptrace(PTRACE_TRACEME, 0, NULL, NULL) != 0) { 46 ksft_print_msg("ptrace(PTRACE_TRACEME) failed: %s\n", 87 if (ptrace(PTRACE_SINGLESTEP, pid, NULL, NULL) < 0) { 90 "ptrace(PTRACE_SINGLESTEP) not supported on this architecture: %s\n", 93 ksft_print_msg("ptrace(PTRACE_SINGLESTEP) failed: %s\n", 118 if (ptrace(PTRACE_CONT, pid, NULL, NULL) < 0) { 119 ksft_print_msg("ptrace(PTRACE_CONT) failed: %s\n",
|
/bionic/libc/kernel/uapi/asm-x86/asm/ |
ptrace.h | 22 #include <asm/ptrace-abi.h>
|
/external/bcc/examples/networking/vlan_filter/ |
data-plane-tracing.c | 1 #include <uapi/linux/ptrace.h>
|
/external/bcc/examples/tracing/ |
vfsreadlat.c | 13 #include <uapi/linux/ptrace.h>
|
/external/kernel-headers/original/uapi/asm-x86/asm/ |
ptrace.h | 6 #include <asm/ptrace-abi.h>
|
/external/ltp/testcases/kernel/syscalls/ptrace/ |
ptrace07.c | 20 * bogus xcomp_bv"), or CVE-2017-15537. This bug allowed ptrace(pid, 48 #include "ptrace.h" 115 TEST(ptrace(PTRACE_ATTACH, pid, 0, 0)); 120 TEST(ptrace(PTRACE_GETREGSET, pid, NT_X86_XSTATE, &iov)); 145 TEST(ptrace(PTRACE_SETREGSET, pid, NT_X86_XSTATE, &iov)); 165 TEST(ptrace(PTRACE_DETACH, pid, 0, 0));
|
ptrace03.c | 35 * 1) ptrace() returns -1 & sets errno to EPERM while tring to trace 39 * 2) ptrace() returns -1 & sets errno to ESRCH if process with 41 * 3) ptrace() returns -1 & sets errno to EPERM if we are trying 54 * call ptrace() with proper arguments 55 * if ptrace() failed with expected return value & errno 91 #include "ptrace.h" 154 if ((ptrace(PTRACE_TRACEME, 0, 156 tst_resm(TWARN, "ptrace()" 164 TEST(ptrace(test_cases[i].request, 172 "ptrace() returned %ld" [all...] |
spawn_ptrace_child.h | 2 * Spawn a child and set it up for ptrace()-ing 23 #include <sys/ptrace.h> /* ptrace() */ 50 __ret = ptrace(request, pid, __addr, __data); \ 52 perror("ptrace(" #request ", " #pid ", " #addr ", " #data ")"); \ 92 long ret = ptrace(PTRACE_TRACEME, 0, NULL, NULL);
|
ptrace04.c | 18 #include "ptrace.h" 60 ret = ptrace(PTRACE_GETREGS, pid, NULL, &_pt_regs); 67 ret = ptrace(PTRACE_PEEKUSER, pid, 94 "PTRACE PEEKUSER/GETREGS (poison 0x%02x)", poison); 117 if (ptrace(PTRACE_SYSCALL, pid, NULL, NULL) && errno) { 125 ptrace(PTRACE_KILL, pid, NULL, NULL);
|
ptrace01.c | 23 * TEST TITLE : functionality test for ptrace(2) 34 * This test case tests the functionality of ptrace() for 36 * Here, we fork a child & the child does ptrace(PTRACE_TRACEME, ...). 38 * is notified via wait(). then parent does ptrace(PTRACE_KILL, ..) 58 * call ptrace() with PTRACE_TRACEME request 64 * do ptrace(PTRACE_KILL, ..) on child 95 #include "ptrace.h" 186 if ((ptrace(PTRACE_KILL, child_pid, 236 if ((ptrace(PTRACE_TRACEME, 0, 0, 0)) == -1) { 237 tst_resm(TWARN, "ptrace() failed in child") [all...] |
/external/strace/linux/arm/ |
get_scno.c | 47 scno = ptrace(PTRACE_PEEKTEXT, tcp->pid, (void *)(arm_regs.ARM_pc - 4), NULL);
|
/external/elfutils/backends/ |
i386_initreg.c | 36 # include <sys/ptrace.h> 51 if (ptrace (PTRACE_GETREGS, tid, NULL, &user_regs) != 0)
|
m68k_initreg.c | 35 # include <sys/ptrace.h> 50 if (ptrace (PTRACE_GETREGS, tid, NULL, &user_regs) != 0)
|
ppc_initreg.c | 35 # include <sys/ptrace.h> 89 user_regs.l[regno] = ptrace (PTRACE_PEEKUSER, tid,
|
x86_64_initreg.c | 36 # include <sys/ptrace.h> 51 if (ptrace (PTRACE_GETREGS, tid, NULL, &user_regs) != 0)
|
/external/strace/ |
ptrace.h | 40 #include <sys/ptrace.h> 52 #include <linux/ptrace.h> 66 * SPARC has a different PTRACE_DETACH value correctly defined in sys/ptrace.h, 67 * but linux/ptrace.h clobbers it with the standard one. PTRACE_SUNDETACH is 68 * also defined to the correct value by sys/ptrace.h, so use that instead.
|
/external/syzkaller/vendor/golang.org/x/sys/unix/ |
zptrace386_linux.go | 33 return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) 38 return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs))) 74 return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) 79 return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
|
/external/libunwind/doc/ |
libunwind-ptrace.tex | 8 \begin{Name}{3}{libunwind-ptrace}{David Mosberger-Tang}{Programming Library}{ptrace() support in libunwind}libunwind-ptrace -- ptrace() support in libunwind 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, 69 either by forking a new process, invoking \Const{PTRACE\_TRACEME}, an [all...] |
/external/ltp/testcases/kernel/controllers/freezer/ |
vfork.c | 27 * so we use ptrace vfork'd processes in order to pause then during each 44 #include "../../syscalls/ptrace/ptrace.h" 82 if (ptrace(PTRACE_KILL, child, NULL, NULL) < 0) { 84 "ptrace(PTRACE_KILL, %d, ..) failed", child); 207 if (ptrace(PTRACE_GETSIGINFO, gchild, NULL, &info) == -1) { 208 debug("ptrace(): "); 222 if (ptrace(PTRACE_DETACH, gchild, NULL, NULL) == -1) 223 debug("ptrace(): "); 254 if (ptrace(PTRACE_CONT, process, NULL, NULL) == -1 [all...] |
/external/elfutils/tests/ |
backtrace-child.c | 19 --ptraceme will call ptrace (PTRACE_TRACEME) in the two threads. 101 #include <sys/ptrace.h> 116 /* Execution will arrive here from jmp by an artificial ptrace-spawn signal. */ 125 /* Do not return as stack may be invalid due to ptrace-patched PC to the 147 /* Not reached, signal will get ptrace-spawn to jump into sigusr2. */ 166 long l = ptrace (PTRACE_TRACEME, 0, NULL, NULL); 237 long l = ptrace (PTRACE_TRACEME, 0, NULL, NULL);
|
/external/bcc/examples/usdt_sample/scripts/ |
bpf_text_shared.c | 2 #include <uapi/linux/ptrace.h>
|
/external/strace/linux/x86_64/ |
getregs_old.c | 38 long r = ptrace(PTRACE_GETREGS, tcp->pid, NULL, &x86_64_regs);
|
/external/u-boot/arch/riscv/lib/ |
interrupts.c | 11 #include <asm/ptrace.h>
|
/external/u-boot/include/ |
kgdb.h | 4 #include <asm/ptrace.h>
|