Lines Matching full:child
22 static int child(void) in child() function
47 int trace_gpr(pid_t child) in trace_gpr() argument
52 FAIL_IF(start_trace(child)); in trace_gpr()
54 // Check child GPRs match what we expect using GETREGS in trace_gpr()
55 FAIL_IF(show_gpr(child, gpr)); in trace_gpr()
58 // Check child FPRs match what we expect using GETFPREGS in trace_gpr()
59 FAIL_IF(show_fpr(child, fpr)); in trace_gpr()
63 // Check child FPRs match what we expect using PEEKUSR in trace_gpr()
64 peeked_fprs = peek_fprs(child); in trace_gpr()
69 // Write child GPRs using SETREGS in trace_gpr()
70 FAIL_IF(write_gpr(child, parent_gpr_val)); in trace_gpr()
72 // Write child FPRs using SETFPREGS in trace_gpr()
74 FAIL_IF(write_fpr(child, tmp)); in trace_gpr()
76 // Check child FPRs match what we just set, using PEEKUSR in trace_gpr()
77 peeked_fprs = peek_fprs(child); in trace_gpr()
81 // Write child FPRs using POKEUSR in trace_gpr()
82 FAIL_IF(poke_fprs(child, (unsigned long *)peeked_fprs)); in trace_gpr()
84 // Child will check its FPRs match before exiting in trace_gpr()
85 FAIL_IF(stop_trace(child)); in trace_gpr()
139 exit(child()); in ptrace_gpr()
160 printf("Child's exit status not captured\n"); in ptrace_gpr()