HomeSort by: relevance | last modified time | path
    Searched refs:PT_ATTACH (Results 1 - 13 of 13) sorted by relevancy

  /src/tests/lib/libc/sys/
t_ptrace.c 90 ATF_REQUIRE_ERRNO(EPERM, ptrace(PT_ATTACH, 0, NULL, 0) == -1);
104 ATF_REQUIRE_ERRNO(EPERM, ptrace(PT_ATTACH, 1, NULL, 0) == -1);
128 ATF_REQUIRE_ERRNO(EPERM, ptrace(PT_ATTACH, 1, NULL, 0) == -1);
140 ATF_REQUIRE_ERRNO(EINVAL, ptrace(PT_ATTACH, getpid(), NULL, 0) == -1);
182 if (ptrace(PT_ATTACH, getppid(), NULL, 0) == 0) {
184 "ptrace(PT_ATTACH, getppid(), NULL, 0)");
187 "ptrace(PT_ATTACH, getppid(), NULL, 0)");
203 printf("Child is ready, it will try to PT_ATTACH to parent\n");
t_ptrace_kill.c 110 SYSCALL(ptrace(PT_ATTACH, pid, NULL, 0), 0);
t_ptrace_topology_wait.h 146 DPRINTF("Before calling PT_ATTACH from tracee %d\n", getpid());
147 FORKEE_ASSERT(ptrace(PT_ATTACH, tracee, NULL, 0) != -1);
345 DPRINTF("Before calling PT_ATTACH for tracee %d\n", tracee);
346 SYSCALL_REQUIRE(ptrace(PT_ATTACH, tracee, NULL, 0) != -1);
378 "Assert that tracer parent can PT_ATTACH to its child");
391 "Assert that tracer parent can PT_ATTACH to its stopped child");
426 DPRINTF("Attach to parent PID %d with PT_ATTACH from child\n",
428 FORKEE_ASSERT(ptrace(PT_ATTACH, getppid(), NULL, 0) != -1);
475 "Assert that tracer child can PT_ATTACH to its parent");
488 "Assert that tracer child can PT_ATTACH to its stopped parent")
    [all...]
t_ptrace_lwp_wait.h 473 DPRINTF("Before calling PT_ATTACH from tracee %d\n", getpid());
474 FORKEE_ASSERT(ptrace(PT_ATTACH, tracee, NULL, 0) != -1);
t_ptrace_fork_wait.h 421 DPRINTF("Before calling PT_ATTACH from tracee %d\n", getpid());
422 FORKEE_ASSERT(ptrace(PT_ATTACH, tracee, NULL, 0) != -1);
995 DPRINTF("Before calling PT_ATTACH from tracee %d\n", getpid());
996 FORKEE_ASSERT(ptrace(PT_ATTACH, tracee, NULL, 0) != -1);
t_ptrace_signal_wait.h 1873 DPRINTF("Before calling PT_ATTACH from tracee %d\n", getpid());
1874 FORKEE_ASSERT(ptrace(PT_ATTACH, tracee, NULL, 0) != -1);
  /src/usr.bin/gcore/
gcore.c 99 if (ptrace(PT_ATTACH, pid, 0, 0) == -1)
100 err(1, "ptrace(PT_ATTACH) to %lu failed", lval);
  /src/tests/kernel/
t_lockf.c 169 ATF_REQUIRE_MSG(ptrace(PT_ATTACH, pid[i], 0, 0) >= 0,
  /src/sys/sys/
ptrace.h 47 #define PT_ATTACH 9 /* attach to running process */
85 /* 9 */ "PT_ATTACH", \
  /src/sys/kern/
sys_ptrace_common.c 231 case PT_ATTACH:
363 case PT_ATTACH:
502 case PT_ATTACH:
973 KASSERT(req == PT_KILL || req == PT_STOP || req == PT_ATTACH);
1426 case PT_ATTACH:
  /src/sys/compat/sunos/
sunos_misc.c 956 PT_KILL, -1, PT_ATTACH, PT_DETACH,
  /src/sys/compat/sunos32/
sunos32_misc.c 1190 PT_KILL, -1, PT_ATTACH, PT_DETACH,
  /src/sys/compat/linux/common/
linux_misc.c 136 LINUX_PTRACE_ATTACH, PT_ATTACH,

Completed in 162 milliseconds