HomeSort by relevance Sort by last modified time
    Searched refs:ptrace (Results 26 - 50 of 233) sorted by null

12 3 4 5 6 7 8 910

  /external/strace/linux/aarch64/
set_scno.c 17 int rc = ptrace(PTRACE_SETREGSET, tcp->pid, NT_ARM_SYSTEM_CALL, &io);
  /external/strace/linux/arm/
set_scno.c 13 int rc = ptrace(PTRACE_SET_SYSCALL, tcp->pid, NULL, (unsigned long) n);
  /external/strace/linux/sparc64/
get_scno.c 8 trap = ptrace(PTRACE_PEEKTEXT, tcp->pid, (void *) sparc_regs.tpc, 0);
  /external/strace/
upeek.c 36 #include "ptrace.h"
44 val = ptrace(PTRACE_PEEKUSER, (pid_t) tcp->pid, (void *) off, 0);
  /external/u-boot/arch/arm/include/asm/
ptrace.h 14 #include <asm/proc-armv/ptrace.h>
  /external/libunwind/src/ptrace/
_UPT_access_mem.c 48 ptrace (PTRACE_POKEDATA, pid, (void*) (uintptr_t) addr, (void*) (uintptr_t) *val);
64 reg1 = ptrace (PTRACE_PEEKDATA, pid, (void*) (uintptr_t) addr, 0);
67 reg2 = ptrace (PTRACE_PEEKDATA, pid, (void*) (uintptr_t) (addr + sizeof(long)), 0);
73 *val = ptrace (PTRACE_PEEKDATA, pid, (void*) addr, 0);
100 if (ptrace(PT_IO, pid, (caddr_t)&iod, 0) == -1)
_UPT_access_fpreg.c 50 ptrace (PTRACE_POKEUSER, pid, (void*) (_UPT_reg_offset[reg] + i * sizeof(wp[i])),
64 wp[i] = ptrace (PTRACE_PEEKUSER, pid,
85 if (ptrace(PT_GETFPREGS, pid, (caddr_t)&fpreg, 0) == -1)
95 if (ptrace(PT_SETFPREGS, pid, (caddr_t)&fpreg, 0) == -1)
  /external/linux-kselftest/tools/testing/selftests/powerpc/ptrace/
ptrace.h 2 * Ptrace interface test helper functions
18 #include <sys/ptrace.h>
63 /* Basic ptrace operations */
68 ret = ptrace(PTRACE_ATTACH, child, NULL, NULL);
70 perror("ptrace(PTRACE_ATTACH) failed");
85 ret = ptrace(PTRACE_DETACH, child, NULL, NULL);
87 perror("ptrace(PTRACE_DETACH) failed");
97 ret = ptrace(PTRACE_CONT, child, NULL, NULL);
99 perror("ptrace(PTRACE_CONT) failed");
116 ret = ptrace(PTRACE_GETREGSET, child, type, &iov)
    [all...]
ptrace-hwbreak.c 4 * Ptrace test for hw breakpoints
9 * types of ptrace enabled breakpoints
14 #include <sys/ptrace.h>
23 #include "ptrace.h"
39 ret = ptrace(PPC_PTRACE_GETHWDBGINFO, child_pid, NULL, &dbginfo);
60 ret = ptrace(PTRACE_SET_DEBUGREG, child_pid, 0, addr);
83 ret = ptrace(PPC_PTRACE_SETHWDEBUG, child_pid, 0, &info);
95 ret = ptrace(PPC_PTRACE_DELHWDEBUG, child_pid, 0, watchpoint_handle);
169 ret = ptrace(PTRACE_TRACEME, 0, NULL, 0);
237 ptrace(PTRACE_CONT, child_pid, NULL, 0)
    [all...]
  /bionic/tests/
sys_ptrace_test.cpp 17 #include <sys/ptrace.h>
24 #include <sys/ptrace.h>
68 long result = ptrace(PTRACE_GETHBPREGS, child, 0, &capabilities);
91 long result = ptrace(PTRACE_GETREGSET, child,
113 ASSERT_EQ(0, ptrace(PTRACE_SETHBPREGS, child, -1, &address)) << strerror(errno);
114 ASSERT_EQ(0, ptrace(PTRACE_SETHBPREGS, child, -2, &control)) << strerror(errno);
125 ASSERT_EQ(0, ptrace(PTRACE_SETREGSET, child, NT_ARM_HW_WATCH, &iov)) << strerror(errno);
128 ASSERT_EQ(0, ptrace(PTRACE_POKEUSER, child, offsetof(user, u_debugreg[0]), address)) << strerror(errno);
130 unsigned data = ptrace(PTRACE_PEEKUSER, child, offsetof(user, u_debugreg[7]), nullptr);
141 ASSERT_EQ(0, ptrace(PTRACE_POKEUSER, child, offsetof(user, u_debugreg[7]), data)) << strerror(errno)
    [all...]
  /external/compiler-rt/test/asan/TestCases/Linux/
ptrace.cc 10 #include <sys/ptrace.h>
18 # include <asm/ptrace.h>
55 # include <asm/ptrace.h>
76 ptrace(PTRACE_TRACEME, 0, NULL, NULL);
100 res = ptrace((enum __ptrace_request)__PTRACE_REQUEST, pid, __PTRACE_ARGS);
102 // CHECK: {{.*ptrace.cc:}}[[@LINE-2]]
112 res = ptrace((enum __ptrace_request)PTRACE_GETREGSET, pid, (void*)NT_FPREGSET,
117 res = ptrace((enum __ptrace_request)__PTRACE_FPREQUEST, pid, __PTRACE_FPARGS);
123 res = ptrace(PTRACE_GETFPXREGS, pid, NULL, &fpxregs);
128 ptrace(PTRACE_CONT, pid, NULL, NULL)
    [all...]
  /external/elfutils/backends/
riscv_initreg.c 37 # include <sys/ptrace.h>
57 if (ptrace (PTRACE_GETREGSET, tid, NT_PRSTATUS, &iovec) != 0)
aarch64_initreg.c 38 # include <sys/ptrace.h>
63 if (ptrace (PTRACE_GETREGSET, tid, NT_PRSTATUS, &iovec) != 0)
80 if (ptrace (PTRACE_GETREGSET, tid, NT_FPREGSET, &iovec) != 0)
s390_initreg.c 37 # include <sys/ptrace.h>
38 # include <asm/ptrace.h>
57 if (ptrace (PTRACE_PEEKUSR_AREA, tid, &parea, NULL) != 0)
  /external/strace/m4/
st_libunwind.m4 54 AC_CHECK_HEADERS([libunwind-ptrace.h],
66 [AC_LANG_PROGRAM([[#include <libunwind-ptrace.h>]],
72 AC_CHECK_LIB([unwind-ptrace], [_UPT_create],
73 [libunwind_LIBS="-lunwind-ptrace $libunwind_LIBS"
77 AC_MSG_FAILURE([failed to find _UPT_create in libunwind-ptrace])
102 AC_MSG_FAILURE([failed to find libunwind-ptrace.h])
  /external/syzkaller/vendor/golang.org/x/sys/unix/
zptracearm_linux.go 17 return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
22 return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
35 return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
40 return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
zptracemips_linux.go 23 return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
28 return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
44 return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
49 return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
zptracemipsle_linux.go 23 return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
28 return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
44 return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
49 return ptrace(PTRACE_SETREGS, pid, 0, uintptr(unsafe.Pointer(regs)))
  /external/bcc/examples/lua/
bashreadline.c 1 #include <uapi/linux/ptrace.h>
  /external/strace/tests/
test_ucopy.c 34 #include <sys/ptrace.h>
83 return ptrace(PTRACE_PEEKDATA, pid, addr, 0) == 1;
101 if (ptrace(PTRACE_TRACEME, 0, 0, 0))
140 if (ptrace(PTRACE_CONT, pid, 0, 0)) {
  /external/strace/tests-m32/
test_ucopy.c 34 #include <sys/ptrace.h>
83 return ptrace(PTRACE_PEEKDATA, pid, addr, 0) == 1;
101 if (ptrace(PTRACE_TRACEME, 0, 0, 0))
140 if (ptrace(PTRACE_CONT, pid, 0, 0)) {
  /external/strace/tests-mx32/
test_ucopy.c 34 #include <sys/ptrace.h>
83 return ptrace(PTRACE_PEEKDATA, pid, addr, 0) == 1;
101 if (ptrace(PTRACE_TRACEME, 0, 0, 0))
140 if (ptrace(PTRACE_CONT, pid, 0, 0)) {
  /external/libunwind/tests/
test-ptrace.c 41 #include <libunwind-ptrace.h>
48 #include <sys/ptrace.h>
220 ptrace (PTRACE_TRACEME, 0, 0, 0);
222 ptrace (PT_TRACE_ME, 0, 0, 0);
296 ptrace (PTRACE_CONT, target_pid, 0, 0);
298 ptrace (PT_CONTINUE, target_pid, (caddr_t)1, 0);
306 ptrace (PTRACE_SINGLESTEP, target_pid, 0, pending_sig);
308 ptrace (PT_STEP, target_pid, (caddr_t)1, pending_sig);
320 ptrace (PTRACE_SYSCALL, target_pid, 0, pending_sig);
322 ptrace (PT_SYSCALL, target_pid, (caddr_t)1, pending_sig)
    [all...]
  /external/linux-kselftest/tools/testing/selftests/breakpoints/
breakpoint_test.c 10 #include <sys/ptrace.h>
45 ret = ptrace(PTRACE_POKEUSER, child_pid,
87 dr7 = ptrace(PTRACE_PEEKUSER, child_pid,
107 ret = ptrace(PTRACE_POKEUSER, child_pid,
208 ret = ptrace(PTRACE_TRACEME, 0, NULL, 0);
275 child_nr_tests = ptrace(PTRACE_PEEKDATA, child_pid,
279 if (ptrace(PTRACE_POKEDATA, child_pid, &trapped, 1))
298 ptrace(PTRACE_CONT, child_pid, NULL, 0);
320 ptrace(PTRACE_CONT, child_pid, NULL, 0);
369 ptrace(PTRACE_CONT, child_pid, NULL, 0)
    [all...]
  /external/linux-kselftest/tools/testing/selftests/x86/
ptrace_syscall.c 4 #include <sys/ptrace.h>
15 #include <asm/ptrace-abi.h>
183 if (ptrace(PTRACE_TRACEME, 0, 0, 0) != 0)
204 if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0)
208 if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0)
227 * magical. It needs to work so that ptrace and syscall restart
232 if (ptrace(PTRACE_SETREGS, chld, 0, &regs) != 0)
235 if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0)
239 if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0)
264 if (ptrace(PTRACE_SETREGS, chld, 0, &regs) != 0
    [all...]

Completed in 4291 milliseconds

12 3 4 5 6 7 8 910