/freebsd-current/contrib/netbsd-tests/kernel/ |
H A D | t_ptrace.c | 79 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 D | t_lockf.c | 172 ATF_REQUIRE_MSG(ptrace(PT_ATTACH, pid[i], 0, 0) >= 0,
|
H A D | t_ptrace_wait.c | 326 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 D | ptrace2.sh | 67 ptrace(PT_ATTACH, pid, (caddr_t) 0, 0); 112 ptrace(PT_ATTACH, pid, (caddr_t) 0, 0);
|
H A D | ptrace9.sh | 96 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 D | ptrace.sh | 71 if (ptrace(PT_ATTACH, pid, NULL, 0) == -1)
|
H A D | ptrace8.sh | 92 if (ptrace(PT_ATTACH, pid, 0, 0) == -1)
|
H A D | vfork.sh | 92 if (ptrace(PT_ATTACH, pid, NULL, 0) == -1)
|
H A D | ptrace11.sh | 90 if (ptrace(PT_ATTACH, pida, NULL, 0) != 0) 91 err(1, "ptrace(PT_ATTACH)");
|
H A D | ptrace10.sh | 116 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 D | ptrace5.sh | 29 # 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 D | ptrace6.sh | 95 if (ptrace(PT_ATTACH, pid, 0, 0) == -1)
|
H A D | ptrace7.sh | 29 # 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 D | gcore.c | 93 error = ptrace(PT_ATTACH, pid, NULL, 0);
|
H A D | elfcore.c | 192 ptrace(PT_ATTACH, pid, NULL, 0); 194 err(1, "PT_ATTACH");
|
/freebsd-current/tests/sys/kern/ |
H A D | pdeathsig.c | 290 rc = ptrace(PT_ATTACH, c_pid, 0, 0);
|
H A D | ptrace_test.c | 138 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 D | proc_create.c | 145 if (ptrace(PT_ATTACH, proc_getpid(phdl), 0, 0) != 0) {
|
/freebsd-current/sys/sys/ |
H A D | ptrace.h | 50 #define PT_ATTACH 10 /* trace some running process */ macro
|
/freebsd-current/contrib/llvm-project/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_stoptheworld_netbsd_libcdep.cpp | 111 if (internal_iserror(internal_ptrace(PT_ATTACH, pid_, nullptr, 0),
|
/freebsd-current/tools/regression/security/proc_to_proc/ |
H A D | scenario.c | 333 error = ptrace(PT_ATTACH, pid1, NULL, 0);
|
/freebsd-current/sys/i386/linux/ |
H A D | linux_ptrace_machdep.c | 48 * 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 D | linux_ptrace.c | 520 error = kern_ptrace(td, PT_ATTACH, pid, addr, uap->data);
|
/freebsd-current/sys/kern/ |
H A D | sys_process.c | 874 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 D | setup.c | 178 ret = ptrace(PT_ATTACH, pid, NULL, 0);
|