Changeset View
Changeset View
Standalone View
Standalone View
sys/kern/subr_syscall.c
Show First 20 Lines • Show All 126 Lines • ▼ Show 20 Lines | #endif | ||||
error = syscall_thread_enter(td, sa->callp); | error = syscall_thread_enter(td, sa->callp); | ||||
if (error != 0) { | if (error != 0) { | ||||
td->td_errno = error; | td->td_errno = error; | ||||
goto retval; | goto retval; | ||||
} | } | ||||
/* | /* | ||||
* Fetch fast sigblock value at the time of syscall | * Fetch fast sigblock value at the time of syscall entry to | ||||
* entry because sleepqueue primitives might call | * handle sleepqueue primitives which might call cursig(). | ||||
* cursig(). | |||||
*/ | */ | ||||
fetch_sigfastblock(td); | if (fastblock_fetch_always) | ||||
jeff: predict_false? I'm afraid that this will go unused if we leave it in. | |||||
kibAuthorUnsubmitted Done Inline ActionsWhat do you mean by 'go unused' ? kib: What do you mean by 'go unused' ? | |||||
(void)sigfastblock_fetch(td); | |||||
/* Let system calls set td_errno directly. */ | /* Let system calls set td_errno directly. */ | ||||
td->td_pflags &= ~TDP_NERRNO; | td->td_pflags &= ~TDP_NERRNO; | ||||
if (__predict_false(systrace_enabled || AUDIT_SYSCALL_ENTER(sa->code, td))) { | if (__predict_false(systrace_enabled || AUDIT_SYSCALL_ENTER(sa->code, td))) { | ||||
#ifdef KDTRACE_HOOKS | #ifdef KDTRACE_HOOKS | ||||
/* Give the syscall:::entry DTrace probe a chance to fire. */ | /* Give the syscall:::entry DTrace probe a chance to fire. */ | ||||
if (__predict_false(sa->callp->sy_entry != 0)) | if (__predict_false(sa->callp->sy_entry != 0)) | ||||
▲ Show 20 Lines • Show All 103 Lines • Show Last 20 Lines |
predict_false? I'm afraid that this will go unused if we leave it in.