HomeFreeBSD

Avoid calls to syscall_thread_enter/exit for statically defined syscalls

Description

Avoid calls to syscall_thread_enter/exit for statically defined syscalls

The entire mechanism is rarely used and is quite not performant due to
atomci ops on the syscall table. It also has added overhead for completely
unrelated syscalls.

Reduce it by avoiding the func calls if possible (which consistutes vast
majority of cases).

Provides about 3% syscall rate speed up for getuid on Broadwell.

Details

Provenance
mjgAuthored on
Parents
rS333338: Merge iflib changes to 11-STABLE
Branches
Unknown
Tags
Unknown