• Home
  • Raw
  • Download

Lines Matching refs:ret

62 	int ret;  in start_trace()  local
64 ret = ptrace(PTRACE_ATTACH, child, NULL, NULL); in start_trace()
65 if (ret) { in start_trace()
69 ret = waitpid(child, NULL, 0); in start_trace()
70 if (ret != child) { in start_trace()
79 int ret; in stop_trace() local
81 ret = ptrace(PTRACE_DETACH, child, NULL, NULL); in stop_trace()
82 if (ret) { in stop_trace()
91 int ret; in cont_trace() local
93 ret = ptrace(PTRACE_CONT, child, NULL, NULL); in cont_trace()
94 if (ret) { in cont_trace()
105 long ret; in ptrace_read_regs() local
112 ret = ptrace(PTRACE_GETREGSET, child, type, &iov); in ptrace_read_regs()
113 if (ret) in ptrace_read_regs()
114 return ret; in ptrace_read_regs()
125 long ret; in ptrace_write_regs() local
132 ret = ptrace(PTRACE_SETREGSET, child, type, &iov); in ptrace_write_regs()
136 return ret; in ptrace_write_regs()
144 int ret; in show_tar_registers() local
154 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TAR, &iov); in show_tar_registers()
155 if (ret) { in show_tar_registers()
162 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_PPR, &iov); in show_tar_registers()
163 if (ret) { in show_tar_registers()
170 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_DSCR, &iov); in show_tar_registers()
171 if (ret) { in show_tar_registers()
190 int ret; in write_tar_registers() local
202 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TAR, &iov); in write_tar_registers()
203 if (ret) { in write_tar_registers()
209 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_PPR, &iov); in write_tar_registers()
210 if (ret) { in write_tar_registers()
216 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_DSCR, &iov); in write_tar_registers()
217 if (ret) { in write_tar_registers()
233 int ret; in show_tm_checkpointed_state() local
244 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CTAR, &iov); in show_tm_checkpointed_state()
245 if (ret) { in show_tm_checkpointed_state()
252 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CPPR, &iov); in show_tm_checkpointed_state()
253 if (ret) { in show_tm_checkpointed_state()
260 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CDSCR, &iov); in show_tm_checkpointed_state()
261 if (ret) { in show_tm_checkpointed_state()
281 int ret; in write_ckpt_tar_registers() local
293 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CTAR, &iov); in write_ckpt_tar_registers()
294 if (ret) { in write_ckpt_tar_registers()
300 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CPPR, &iov); in write_ckpt_tar_registers()
301 if (ret) { in write_ckpt_tar_registers()
307 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CDSCR, &iov); in write_ckpt_tar_registers()
308 if (ret) { in write_ckpt_tar_registers()
324 int ret, i; in show_fpr() local
327 ret = ptrace(PTRACE_GETFPREGS, child, NULL, regs); in show_fpr()
328 if (ret) { in show_fpr()
343 int ret, i; in write_fpr() local
346 ret = ptrace(PTRACE_GETFPREGS, child, NULL, regs); in write_fpr()
347 if (ret) { in write_fpr()
355 ret = ptrace(PTRACE_SETFPREGS, child, NULL, regs); in write_fpr()
356 if (ret) { in write_fpr()
367 int ret, i; in show_ckpt_fpr() local
373 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CFPR, &iov); in show_ckpt_fpr()
374 if (ret) { in show_ckpt_fpr()
391 int ret, i; in write_ckpt_fpr() local
397 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CFPR, &iov); in write_ckpt_fpr()
398 if (ret) { in write_ckpt_fpr()
406 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CFPR, &iov); in write_ckpt_fpr()
407 if (ret) { in write_ckpt_fpr()
418 int ret, i; in show_gpr() local
426 ret = ptrace(PTRACE_GETREGS, child, NULL, regs); in show_gpr()
427 if (ret) { in show_gpr()
443 int i, ret; in write_gpr() local
451 ret = ptrace(PTRACE_GETREGS, child, NULL, regs); in write_gpr()
452 if (ret) { in write_gpr()
460 ret = ptrace(PTRACE_SETREGS, child, NULL, regs); in write_gpr()
461 if (ret) { in write_gpr()
472 int ret, i; in show_ckpt_gpr() local
483 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CGPR, &iov); in show_ckpt_gpr()
484 if (ret) { in show_ckpt_gpr()
501 int ret, i; in write_ckpt_gpr() local
511 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CGPR, &iov); in write_ckpt_gpr()
512 if (ret) { in write_ckpt_gpr()
520 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CGPR, &iov); in write_ckpt_gpr()
521 if (ret) { in write_ckpt_gpr()
531 int ret; in show_vmx() local
533 ret = ptrace(PTRACE_GETVRREGS, child, 0, vmx); in show_vmx()
534 if (ret) { in show_vmx()
545 int ret; in show_vmx_ckpt() local
549 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CVMX, &iov); in show_vmx_ckpt()
550 if (ret) { in show_vmx_ckpt()
561 int ret; in write_vmx() local
563 ret = ptrace(PTRACE_SETVRREGS, child, 0, vmx); in write_vmx()
564 if (ret) { in write_vmx()
575 int ret; in write_vmx_ckpt() local
580 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CVMX, &iov); in write_vmx_ckpt()
581 if (ret) { in write_vmx_ckpt()
591 int ret; in show_vsx() local
593 ret = ptrace(PTRACE_GETVSRREGS, child, 0, vsx); in show_vsx()
594 if (ret) { in show_vsx()
605 int ret; in show_vsx_ckpt() local
609 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_CVSX, &iov); in show_vsx_ckpt()
610 if (ret) { in show_vsx_ckpt()
620 int ret; in write_vsx() local
622 ret = ptrace(PTRACE_SETVSRREGS, child, 0, vsx); in write_vsx()
623 if (ret) { in write_vsx()
634 int ret; in write_vsx_ckpt() local
639 ret = ptrace(PTRACE_SETREGSET, child, NT_PPC_TM_CVSX, &iov); in write_vsx_ckpt()
640 if (ret) { in write_vsx_ckpt()
652 int ret; in show_tm_spr() local
663 ret = ptrace(PTRACE_GETREGSET, child, NT_PPC_TM_SPR, &iov); in show_tm_spr()
664 if (ret) { in show_tm_spr()
680 unsigned long ret; in get_tfiar() local
682 asm volatile("mfspr %0,%1" : "=r" (ret) : "i" (SPRN_TFIAR)); in get_tfiar()
683 return ret; in get_tfiar()