Home
last modified time | relevance | path

Searched refs:PTRACE_DETACH (Results 1 – 18 of 18) sorted by relevance

/linux/tools/testing/selftests/landlock/
H A Dptrace_test.c354 ASSERT_EQ(0, ptrace(PTRACE_DETACH, parent, NULL, 0)); in TEST_F()
400 ASSERT_EQ(0, ptrace(PTRACE_DETACH, child, NULL, 0)); in TEST_F()
403 EXPECT_EQ(-1, ptrace(PTRACE_DETACH, child, NULL, 0)); in TEST_F()
427 ASSERT_EQ(0, ptrace(PTRACE_DETACH, child, NULL, 0)); in TEST_F()
/linux/tools/perf/arch/x86/tests/
H A Dbp-modify.c123 if (ptrace(PTRACE_DETACH, child, NULL, NULL)) { in bp_modify1()
199 if (ptrace(PTRACE_DETACH, child, NULL, NULL)) { in bp_modify2()
/linux/include/uapi/linux/
H A Dptrace.h23 #define PTRACE_DETACH 17 macro
/linux/tools/testing/selftests/ptrace/
H A Dvmaccess.c75 k = ptrace(PTRACE_DETACH, pid, 0L, 0L); in TEST()
/linux/tools/testing/selftests/x86/
H A Dfsgsbase_restore.c219 if (ptrace(PTRACE_DETACH, chld, NULL, NULL) != 0) in main()
H A Dmov_ss_trap.c90 if (ptrace(PTRACE_DETACH, parent, NULL, NULL) != 0) in enable_watchpoint()
H A Dsyscall_numbering.c414 ptrace(PTRACE_DETACH, testpid, NULL, NULL); in syscall_numbering_tracer()
H A Damx.c893 ptrace(PTRACE_DETACH, child, NULL, NULL); in test_ptrace()
H A Dtest_shadow_stack.c961 if (ptrace(PTRACE_DETACH, pid, NULL, NULL)) { in test_ptrace()
/linux/kernel/
H A Dptrace.c585 proc_ptrace_connector(child, PTRACE_DETACH); in ptrace_detach()
1159 case PTRACE_DETACH: /* detach a process that was attached. */ in ptrace_request()
1286 if (ret || request != PTRACE_DETACH) in SYSCALL_DEFINE4()
1423 if (ret || request != PTRACE_DETACH) in COMPAT_SYSCALL_DEFINE4()
/linux/tools/testing/selftests/cgroup/
H A Dtest_freezer.c625 if (ptrace(PTRACE_DETACH, pid, NULL, NULL)) in test_cgfreezer_ptrace()
751 if (ptrace(PTRACE_DETACH, pid, NULL, NULL)) in test_cgfreezer_ptraced()
/linux/arch/powerpc/kernel/ptrace/
H A Dptrace32.c289 case PTRACE_DETACH: in compat_arch_ptrace()
/linux/arch/sparc/kernel/
H A Dptrace_32.c428 request = PTRACE_DETACH; in arch_ptrace()
H A Dptrace_64.c996 request = PTRACE_DETACH; in compat_arch_ptrace()
1077 request = PTRACE_DETACH; in arch_ptrace()
/linux/drivers/connector/
H A Dcn_proc.c252 } else if (ptrace_id == PTRACE_DETACH) { in proc_ptrace_connector()
/linux/tools/testing/selftests/powerpc/ptrace/
H A Dptrace.h85 ret = ptrace(PTRACE_DETACH, child, NULL, NULL); in stop_trace()
/linux/tools/testing/selftests/arm64/fp/
H A Dfp-ptrace.c769 if (!continue_breakpoint(child, PTRACE_DETACH)) in run_parent()
/linux/tools/testing/selftests/mm/
H A Dprotection_keys.c1432 ret = ptrace(PTRACE_DETACH, child_pid, ignored, 0); in test_ptrace_of_child()