Home
last modified time | relevance | path

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

12345678910

/external/linux-kselftest/tools/testing/selftests/powerpc/ptrace/
DMakefile2 TEST_GEN_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 ptrace-hwbreak ptrace-pkey core-pkey \
5 perf-hwbreak ptrace-syscall
12 $(OUTPUT)/ptrace-pkey $(OUTPUT)/core-pkey: child.h
13 $(OUTPUT)/ptrace-pkey $(OUTPUT)/core-pkey: LDLIBS += -pthread
15 $(TEST_GEN_PROGS): ../harness.c ../utils.c ../lib/reg.S ptrace.h
D.gitignore1 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
[all …]
Dptrace.h68 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()
116 ret = ptrace(PTRACE_GETREGSET, child, type, &iov); in ptrace_read_regs()
136 ret = ptrace(PTRACE_SETREGSET, child, type, &iov); in ptrace_write_regs()
158 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TAR, &iov); in show_tar_registers()
166 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_PPR, &iov); in show_tar_registers()
174 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_DSCR, &iov); in show_tar_registers()
206 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TAR, &iov); in write_tar_registers()
213 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_PPR, &iov); in write_tar_registers()
[all …]
Dptrace-syscall.c74 if (ptrace(PTRACE_TRACEME, 0, 0, 0) != 0) in test_ptrace_syscall_restart()
92 if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0) in test_ptrace_syscall_restart()
96 if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0) in test_ptrace_syscall_restart()
127 if (ptrace(PTRACE_SETREGS, chld, 0, &regs) != 0) in test_ptrace_syscall_restart()
130 if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0) in test_ptrace_syscall_restart()
134 if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0) in test_ptrace_syscall_restart()
170 if (ptrace(PTRACE_SETREGS, chld, 0, &regs) != 0) in test_ptrace_syscall_restart()
173 if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0) in test_ptrace_syscall_restart()
177 if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0) in test_ptrace_syscall_restart()
203 if (ptrace(PTRACE_CONT, chld, 0, 0) != 0) in test_ptrace_syscall_restart()
Dptrace-hwbreak.c39 ret = ptrace(PPC_PTRACE_GETHWDBGINFO, child_pid, NULL, &dbginfo); in get_dbginfo()
60 ret = ptrace(PTRACE_SET_DEBUGREG, child_pid, 0, addr); in set_breakpoint_addr()
83 ret = ptrace(PPC_PTRACE_SETHWDEBUG, child_pid, 0, &info); in set_hwbreakpoint_addr()
95 ret = ptrace(PPC_PTRACE_DELHWDEBUG, child_pid, 0, watchpoint_handle); in del_hwbreakpoint_addr()
169 ret = ptrace(PTRACE_TRACEME, 0, NULL, 0); in trigger_tests()
237 ptrace(PTRACE_CONT, child_pid, NULL, 0); in launch_watchpoints()
249 ptrace(PTRACE_CONT, child_pid, NULL, 0); in launch_watchpoints()
260 ptrace(PTRACE_CONT, child_pid, NULL, 0); in launch_watchpoints()
275 i = ptrace(PPC_PTRACE_GETHWDBGINFO, child_pid, NULL, &dbginfo); in launch_tests()
291 ptrace(PTRACE_CONT, child_pid, NULL, 0); in launch_tests()
[all …]
/external/libunwind/src/ptrace/
D_UPT_access_reg.c65 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.c48 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()
/external/compiler-rt/test/sanitizer_common/TestCases/Linux/
Dptrace.cc26 ptrace(PTRACE_TRACEME, 0, NULL, NULL); in main()
34 res = ptrace(PTRACE_GETREGS, pid, NULL, &regs); in main()
40 res = ptrace(PTRACE_GETFPREGS, pid, NULL, &fpregs); in main()
48 res = ptrace((enum __ptrace_request)PTRACE_GETREGS, pid, NULL, &regs); 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*)&regset_io); in main()
89 res = ptrace(PTRACE_GETREGSET, pid, (void*)NT_FPREGSET, (void*)&regset_io); in main()
101 res = ptrace(PTRACE_GETREGSET, pid, (void*)NT_PRSTATUS, (void*)&regset_io); in main()
109 res = ptrace(PTRACE_GETREGSET, pid, (void*)NT_FPREGSET, (void*)&regset_io); in main()
[all …]
/external/linux-kselftest/tools/testing/selftests/x86/
Dptrace_syscall.c183 if (ptrace(PTRACE_TRACEME, 0, 0, 0) != 0) in test_ptrace_syscall_restart()
204 if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0) in test_ptrace_syscall_restart()
208 if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0) in test_ptrace_syscall_restart()
232 if (ptrace(PTRACE_SETREGS, chld, 0, &regs) != 0) in test_ptrace_syscall_restart()
235 if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0) in test_ptrace_syscall_restart()
239 if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0) in test_ptrace_syscall_restart()
264 if (ptrace(PTRACE_SETREGS, chld, 0, &regs) != 0) in test_ptrace_syscall_restart()
267 if (ptrace(PTRACE_SYSEMU, chld, 0, 0) != 0) in test_ptrace_syscall_restart()
271 if (ptrace(PTRACE_GETREGS, chld, 0, &regs) != 0) in test_ptrace_syscall_restart()
283 if (ptrace(PTRACE_CONT, chld, 0, 0) != 0) in test_ptrace_syscall_restart()
[all …]
/external/ltp/m4/
Dltp-ptrace.m427 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/syzkaller/pkg/report/testdata/gvisor/report/
D141 TITLE: panic: ptrace sysemu failed: no such process
4 panic: ptrace sysemu failed: no such process
7 gvisor.googlesource.com/gvisor/pkg/sentry/platform/ptrace.(*subprocess).switchToApp(0xc4204b3d40, 0…
8 pkg/sentry/platform/ptrace/subprocess.go:457 +0x85d
9 gvisor.googlesource.com/gvisor/pkg/sentry/platform/ptrace.(*context).Switch(0xc420138f00, 0xc75440,…
10 pkg/sentry/platform/ptrace/ptrace.go:102 +0x71
D21 TITLE: panic: ptrace set regs failed: no such process
6 panic: ptrace set regs failed: no such process
11 gvisor.googlesource.com/gvisor/pkg/sentry/platform/ptrace.(*subprocess).switchToApp(0xc420130b40, 0…
12 pkg/sentry/platform/ptrace/subprocess.go:437 +0xa72 fp=0xc420b41d90 sp=0xc420b41c08 pc=0x8b7952
13 gvisor.googlesource.com/gvisor/pkg/sentry/platform/ptrace.(*context).Switch(0xc4204209c0, 0xc93e80,…
14 pkg/sentry/platform/ptrace/ptrace.go:102 +0x71 fp=0xc420b41e10 sp=0xc420b41d90 pc=0x8b4901
53 panic: ptrace set regs failed: no such process
58 gvisor.googlesource.com/gvisor/pkg/sentry/platform/ptrace.(*subprocess).switchToApp(0xc420130b40, 0…
59 pkg/sentry/platform/ptrace/subprocess.go:437 +0xa72 fp=0xc420b41d90 sp=0xc420b41c08 pc=0x8b7952
60 gvisor.googlesource.com/gvisor/pkg/sentry/platform/ptrace.(*context).Switch(0xc4204209c0, 0xc93e80,…
[all …]
/external/strace/
DREADME-linux-ptrace1 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/
Dbreakpoint_test.c45 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/
Dtest-ptrace.c220 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()
DMakefile.am3 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/libunwind/src/coredump/
DREADME1 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/
Dlibunwind-ptrace.tex8 …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/syzkaller/vendor/golang.org/x/sys/unix/
Dzptracearm_linux.go17 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)))
Dzptracemipsle_linux.go23 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)))
Dzptracemips_linux.go23 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)))
Dzptrace386_linux.go33 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/compiler-rt/test/asan/TestCases/Linux/
Dptrace.cc76 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/
Dvfork.c82 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/
Dlockdown_ptrace.txt1 Disable ptrace capability on your system.
8ptrace 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.

12345678910