- if (KTRPOINT(proc, KTR_SYSRET)) {
- switch(callp->sy_return_type) {
- case _SYSCALL_RET_ADDR_T:
- case _SYSCALL_RET_SIZE_T:
- case _SYSCALL_RET_SSIZE_T:
- /*
- * Trace the value of the least significant bits,
- * until we can revise the ktrace API safely.
- */
- ktrsysret(proc, code, error, uthread->uu_rval[1]);
- break;
- default:
- ktrsysret(proc, code, error, uthread->uu_rval[0]);
- break;
- }
- }
-
- cancel_enable = callp->sy_cancel;