Searched refs:PT_ATTACH (Results 1 - 25 of 28) sorted by relevance

12

/freebsd-current/contrib/netbsd-tests/kernel/
H A Dt_ptrace.c79 ATF_REQUIRE_ERRNO(EPERM, ptrace(PT_ATTACH, 0, NULL, 0) == -1);
93 ATF_REQUIRE_ERRNO(EPERM, ptrace(PT_ATTACH, 1, NULL, 0) == -1);
118 ATF_REQUIRE_ERRNO(EPERM, ptrace(PT_ATTACH, 1, NULL, 0) == -1);
130 ATF_REQUIRE_ERRNO(EINVAL, ptrace(PT_ATTACH, getpid(), NULL, 0) == -1);
172 ptrace(PT_ATTACH, getppid(), NULL, 0) == -1);
186 printf("Child is ready, it will try to PT_ATTACH to parent\n");
H A Dt_lockf.c172 ATF_REQUIRE_MSG(ptrace(PT_ATTACH, pid[i], 0, 0) >= 0,
H A Dt_ptrace_wait.c326 printf("Before calling PT_ATTACH from tracee %d\n", getpid());
327 FORKEE_ASSERT(ptrace(PT_ATTACH, tracee, NULL, 0) != -1);
432 printf("Before calling PT_ATTACH from tracee %d\n", getpid());
433 FORKEE_ASSERT(ptrace(PT_ATTACH, tracee, NULL, 0) != -1);
502 "Assert that tracer parent can PT_ATTACH to its child");
528 printf("Before calling PT_ATTACH for tracee %d\n", tracee);
529 ATF_REQUIRE(ptrace(PT_ATTACH, tracee, NULL, 0) != -1);
561 "Assert that tracer child can PT_ATTACH to its parent");
582 printf("Attach to parent PID %d with PT_ATTACH from child\n",
584 FORKEE_ASSERT(ptrace(PT_ATTACH, getppi
[all...]
/freebsd-current/tools/test/stress2/misc/
H A Dptrace2.sh67 ptrace(PT_ATTACH, pid, (caddr_t) 0, 0);
112 ptrace(PT_ATTACH, pid, (caddr_t) 0, 0);
H A Dptrace9.sh96 if (ptrace(PT_ATTACH, pid, NULL, 0) != 0)
97 err(1, "ptrace(PT_ATTACH)");
101 errx(1, "unexpected status %d after PT_ATTACH", status);
H A Dptrace.sh71 if (ptrace(PT_ATTACH, pid, NULL, 0) == -1)
H A Dptrace8.sh92 if (ptrace(PT_ATTACH, pid, 0, 0) == -1)
H A Dvfork.sh92 if (ptrace(PT_ATTACH, pid, NULL, 0) == -1)
H A Dptrace11.sh90 if (ptrace(PT_ATTACH, pida, NULL, 0) != 0)
91 err(1, "ptrace(PT_ATTACH)");
H A Dptrace10.sh116 if (ptrace(PT_ATTACH, pid, NULL, 0) != 0)
117 err(1, "ptrace(PT_ATTACH)");
121 errx(1, "unexpected status %d after PT_ATTACH",
H A Dptrace5.sh29 # It seems to be possible for ptrace(PT_ATTACH) to race with the delivery
95 if (ptrace(PT_ATTACH, pid, 0, 0) == -1)
H A Dptrace6.sh95 if (ptrace(PT_ATTACH, pid, 0, 0) == -1)
H A Dptrace7.sh29 # It seems to be possible for ptrace(PT_ATTACH) to race with the delivery
122 if (ptrace(PT_ATTACH, pid, 0, 0) == -1)
/freebsd-current/usr.bin/gcore/
H A Dgcore.c93 error = ptrace(PT_ATTACH, pid, NULL, 0);
H A Delfcore.c192 ptrace(PT_ATTACH, pid, NULL, 0);
194 err(1, "PT_ATTACH");
/freebsd-current/tests/sys/kern/
H A Dpdeathsig.c290 rc = ptrace(PT_ATTACH, c_pid, 0, 0);
H A Dptrace_test.c138 REQUIRE_EQ(ptrace(PT_ATTACH, pid, NULL, 0), 0);
221 * process exactly once when attached via PT_ATTACH.
299 CHILD_REQUIRE(ptrace(PT_ATTACH, child, NULL, 0) != -1);
405 CHILD_REQUIRE(ptrace(PT_ATTACH, child, NULL, 0) != -1);
512 REQUIRE_EQ(ptrace(PT_ATTACH, gchild, NULL, 0), 0);
1047 CHILD_REQUIRE(ptrace(PT_ATTACH, child, NULL, 0) != -1);
3490 * Verify that PT_ATTACH will suspend threads sleeping in an SBDRY section.
3527 * the SIGSTOP from PT_ATTACH may kick one of them out of
3554 REQUIRE_EQ(ptrace(PT_ATTACH, child, NULL, 0), 0);
3562 ATF_REQUIRE_MSG(i < 3, "failed to stop child process after PT_ATTACH");
[all...]
/freebsd-current/lib/libproc/
H A Dproc_create.c145 if (ptrace(PT_ATTACH, proc_getpid(phdl), 0, 0) != 0) {
/freebsd-current/sys/sys/
H A Dptrace.h50 #define PT_ATTACH 10 /* trace some running process */ macro
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_stoptheworld_netbsd_libcdep.cpp111 if (internal_iserror(internal_ptrace(PT_ATTACH, pid_, nullptr, 0),
/freebsd-current/tools/regression/security/proc_to_proc/
H A Dscenario.c333 error = ptrace(PT_ATTACH, pid1, NULL, 0);
/freebsd-current/sys/i386/linux/
H A Dlinux_ptrace_machdep.c48 * except for MD ones and PT_ATTACH/PT_DETACH.
285 error = kern_ptrace(td, PT_ATTACH, pid, addr, uap->data);
/freebsd-current/sys/compat/linux/
H A Dlinux_ptrace.c520 error = kern_ptrace(td, PT_ATTACH, pid, addr, uap->data);
/freebsd-current/sys/kern/
H A Dsys_process.c874 case PT_ATTACH:
975 case PT_ATTACH:
1066 case PT_ATTACH:
1079 CTR2(KTR_PTRACE, "PT_ATTACH: pid %d, oppid %d", p->p_pid,
/freebsd-current/usr.bin/truss/
H A Dsetup.c178 ret = ptrace(PT_ATTACH, pid, NULL, 0);

Completed in 171 milliseconds

12