Lines Matching full:child
32 static void test_tpidr(pid_t child) in test_tpidr() argument
45 ret = ptrace(PTRACE_GETREGSET, child, NT_ARM_TLS, &read_iov); in test_tpidr()
51 ret = ptrace(PTRACE_SETREGSET, child, NT_ARM_TLS, &write_iov); in test_tpidr()
55 ret = ptrace(PTRACE_GETREGSET, child, NT_ARM_TLS, &read_iov); in test_tpidr()
61 ret = ptrace(PTRACE_GETREGSET, child, NT_ARM_TLS, &read_iov); in test_tpidr()
82 ret = ptrace(PTRACE_SETREGSET, child, NT_ARM_TLS, &write_iov); in test_tpidr()
90 ret = ptrace(PTRACE_GETREGSET, child, NT_ARM_TLS, &read_iov); in test_tpidr()
112 ret = ptrace(PTRACE_SETREGSET, child, NT_ARM_TLS, &write_iov); in test_tpidr()
117 ret = ptrace(PTRACE_GETREGSET, child, NT_ARM_TLS, in test_tpidr()
135 static void test_hw_debug(pid_t child, int type, const char *type_name) in test_hw_debug() argument
145 ret = ptrace(PTRACE_GETREGSET, child, type, &iov); in test_hw_debug()
174 static int do_parent(pid_t child) in do_parent() argument
181 /* Attach to the child */ in do_parent()
195 if (pid != child) in do_parent()
199 ksft_exit_fail_msg("Child died unexpectedly\n"); in do_parent()
235 ksft_print_msg("Parent is %d, child is %d\n", getpid(), child); in do_parent()
237 test_tpidr(child); in do_parent()
238 test_hw_debug(child, NT_ARM_HW_WATCH, "NT_ARM_HW_WATCH"); in do_parent()
239 test_hw_debug(child, NT_ARM_HW_BREAK, "NT_ARM_HW_BREAK"); in do_parent()
244 kill(child, SIGKILL); in do_parent()
253 pid_t child; in main() local
261 child = fork(); in main()
262 if (!child) in main()
265 if (do_parent(child)) in main()