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

12

/freebsd-current/tools/test/stress2/misc/
H A Dptrace9.sh103 if (ptrace(PT_DETACH, pid, NULL, 0) != 0)
104 err(1, "ptrace(PT_DETACH)");
111 errx(1, "unexpected status %d after PT_DETACH", status);
H A Dptrace.sh85 if (ptrace(PT_DETACH, pid, NULL, 0) == -1)
H A Dptrace2.sh75 ptrace(PT_DETACH, pid, (caddr_t) 1, 0);
H A Dptrace8.sh115 if (ptrace(PT_DETACH, pid, 0, 0) == -1)
H A Dvfork.sh103 if (ptrace(PT_DETACH, pid, NULL, 0) == -1)
H A Dptrace11.sh95 if (ptrace(PT_DETACH, pida, NULL, 0) != 0)
96 err(1, "ptrace(PT_DETACH)");
H A Dptrace10.sh123 if (ptrace(PT_DETACH, pid, NULL, 0) != 0)
124 err(1, "ptrace(PT_DETACH)");
133 errx(1, "unexpected status %d after PT_DETACH",
H A Dptrace5.sh102 if (ptrace(PT_DETACH, pid, 0, 0) == -1)
H A Dptrace6.sh104 if (ptrace(PT_DETACH, pid, 0, 0) == -1)
H A Dptrace7.sh131 if (ptrace(PT_DETACH, pid, 0, 0) == -1)
/freebsd-current/usr.bin/truss/
H A Dmain.c185 ptrace(PT_DETACH, LIST_FIRST(&trussinfo->proclist)->pid, NULL,
H A Dsetup.c225 if (ptrace(PT_DETACH, pid, (caddr_t)1, 0) < 0)
582 if (ptrace(PT_DETACH, p->pid, (caddr_t)1, 0) < 0)
/freebsd-current/tools/test/popss/
H A Dpopss.c103 ptrace(PT_DETACH, child, NULL, 0);
/freebsd-current/usr.bin/gcore/
H A Dgcore.c117 error = ptrace(PT_DETACH, pid, NULL, 0);
H A Delfcore.c168 ptrace(PT_DETACH, g_pid, (caddr_t)1, sig);
/freebsd-current/lib/libproc/
H A Dproc_util.c94 request = (reason == PRELEASE_KILL) ? PT_KILL : PT_DETACH;
/freebsd-current/contrib/netbsd-tests/kernel/
H A Dt_lockf.c177 ATF_REQUIRE_MSG(ptrace(PT_DETACH, pid[i], (caddr_t)1,
/freebsd-current/tests/sys/kern/
H A Dpdeathsig.c317 ptrace(PT_DETACH, c_pid, 0, 0);
H A Dptrace_test.c526 REQUIRE_EQ(ptrace(PT_DETACH, gchild, (caddr_t)1, 0), 0);
718 ATF_REQUIRE(ptrace(PT_DETACH, children[1], (caddr_t)1, 0) != -1);
768 ATF_REQUIRE(ptrace(PT_DETACH, children[0], (caddr_t)1, 0) != -1);
930 ATF_REQUIRE(ptrace(PT_DETACH, children[1], (caddr_t)1, 0) != -1);
992 ATF_REQUIRE(ptrace(PT_DETACH, children[0], (caddr_t)1, 0) != -1);
3564 REQUIRE_EQ(ptrace(PT_DETACH, child, NULL, 0), 0);
4196 REQUIRE_EQ(ptrace(PT_DETACH, traced, (caddr_t)1, 0), 0);
4368 ATF_REQUIRE(ptrace(PT_DETACH, fpid, (caddr_t)1, 0) != -1);
/freebsd-current/sys/sys/
H A Dptrace.h51 #define PT_DETACH 11 /* stop tracing a process */ macro
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_stoptheworld_netbsd_libcdep.cpp97 if (!internal_iserror(internal_ptrace(PT_DETACH, pid_, (void *)(uptr)1, 0),
/freebsd-current/sys/i386/linux/
H A Dlinux_ptrace_machdep.c48 * except for MD ones and PT_ATTACH/PT_DETACH.
276 error = kern_ptrace(td, PT_DETACH, pid, (void *)1,
/freebsd-current/sys/compat/linux/
H A Dlinux_ptrace.c526 error = kern_ptrace(td, PT_DETACH, pid, (void *)1, sig);
/freebsd-current/sys/kern/
H A Dsys_process.c884 case PT_DETACH:
1216 case PT_DETACH:
1270 case PT_DETACH:
1292 "PT_DETACH: pid %d reparented to pid %d, sig %d",
1295 CTR2(KTR_PTRACE, "PT_DETACH: pid %d, sig %d",
/freebsd-current/tests/sys/file/
H A Dpath_test.c318 error = ptrace(PT_DETACH, child, 0, 0);

Completed in 121 milliseconds

12