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