Lines Matching defs:child
160 static void ptrace_set_get_inherit(pid_t child, const struct vec_type *type)
172 ret = set_sve(child, type, &sve);
183 if (!get_sve(child, type, (void **)&new_sve, &new_sve_size)) {
194 ret = set_sve(child, type, &sve);
201 if (!get_sve(child, type, (void **)&new_sve, &new_sve_size)) {
214 static void ptrace_set_get_vl(pid_t child, const struct vec_type *type,
237 ret = set_sve(child, type, &sve);
248 if (!get_sve(child, type, (void **)&new_sve, &new_sve_size)) {
271 static void ptrace_sve_fpsimd(pid_t child, const struct vec_type *type)
302 ret = set_sve(child, type, sve);
309 if (get_fpsimd(child, &new_fpsimd)) {
326 static void ptrace_set_sve_get_sve_data(pid_t child,
368 ret = set_sve(child, type, write_sve);
376 if (!get_sve(child, type, (void **)&read_buf, &read_sve_size)) {
424 static void ptrace_set_sve_get_fpsimd_data(pid_t child,
463 ret = set_sve(child, type, write_sve);
471 if (get_fpsimd(child, &fpsimd_state)) {
507 static void ptrace_set_fpsimd_get_sve_data(pid_t child,
533 ret = set_fpsimd(child, &write_fpsimd);
540 if (!get_sve(child, type, (void **)&read_buf, &read_sve_size)) {
615 static int do_parent(pid_t child)
624 ksft_print_msg("Parent is %d, child is %d\n", getpid(), child);
626 /* Attach to the child */
640 if (pid != child)
683 ptrace_sve_fpsimd(child, &vec_types[i]);
693 ptrace_set_get_inherit(child, &vec_types[i]);
708 ptrace_set_get_vl(child, &vec_types[i], vl,
718 ptrace_set_sve_get_sve_data(child, &vec_types[i], vl);
719 ptrace_set_sve_get_fpsimd_data(child, &vec_types[i], vl);
720 ptrace_set_fpsimd_get_sve_data(child, &vec_types[i], vl);
735 kill(child, SIGKILL);
744 pid_t child;
754 child = fork();
755 if (!child)
758 if (do_parent(child))