Searched refs:PTRACE_ATTACH (Results 1 - 11 of 11) sorted by relevance

/linux-master/tools/testing/selftests/ptrace/
H A Dvmaccess.c59 k = ptrace(PTRACE_ATTACH, pid, 0L, 0L);
69 k = ptrace(PTRACE_ATTACH, pid, 0L, 0L);
H A Dpeeksiginfo.c188 if (sys_ptrace(PTRACE_ATTACH, child, NULL, NULL) == -1)
/linux-master/include/uapi/linux/
H A Dptrace.h22 #define PTRACE_ATTACH 16 macro
/linux-master/tools/testing/selftests/landlock/
H A Dptrace_test.c254 /* Test PTRACE_TRACEME and PTRACE_ATTACH for parent and child. */
343 /* Tests PTRACE_ATTACH on the parent. */
344 ret = ptrace(PTRACE_ATTACH, parent, NULL, 0);
367 * Signals that the PTRACE_ATTACH test is done and the
376 /* Waits for the parent PTRACE_ATTACH test. */
391 * Waits for the child to test PTRACE_ATTACH on the parent and start
415 /* Tests PTRACE_ATTACH on the child. */
416 ret = ptrace(PTRACE_ATTACH, child, NULL, 0);
430 /* Signals that the parent PTRACE_ATTACH test is done. */
/linux-master/tools/testing/selftests/x86/
H A Dmov_ss_trap.c73 if (ptrace(PTRACE_ATTACH, parent, NULL, NULL) != 0)
74 err(1, "PTRACE_ATTACH");
/linux-master/tools/testing/selftests/mm/
H A Dmemfd_secret.c122 ret = ptrace(PTRACE_ATTACH, ppid, 0, 0);
H A Dprotection_keys.c1395 ret = ptrace(PTRACE_ATTACH, child_pid, ignored, ignored);
/linux-master/kernel/
H A Dptrace.c476 proc_ptrace_connector(task, PTRACE_ATTACH);
1275 if (request == PTRACE_ATTACH || request == PTRACE_SEIZE) {
1414 if (request == PTRACE_ATTACH || request == PTRACE_SEIZE) {
/linux-master/tools/testing/selftests/powerpc/ptrace/
H A Dptrace.h68 ret = ptrace(PTRACE_ATTACH, child, NULL, NULL);
70 perror("ptrace(PTRACE_ATTACH) failed");
/linux-master/drivers/connector/
H A Dcn_proc.c249 if (ptrace_id == PTRACE_ATTACH) {
/linux-master/tools/testing/selftests/seccomp/
H A Dseccomp_bpf.c1527 ret = ptrace(PTRACE_ATTACH, tracee, NULL, 0);
3315 ASSERT_EQ(0, ptrace(PTRACE_ATTACH, pid));
4386 ASSERT_EQ(0, ptrace(PTRACE_ATTACH, self->pid, NULL, 0));

Completed in 185 milliseconds