HomeFreeBSD

Avoid CPU migration in dtrace_gethrtime() on x86.

Description

Avoid CPU migration in dtrace_gethrtime() on x86.

dtrace_gethrtime() may be called outside of probe context, and in
particular, from the DTRACEIOC_BUFSNAP handler.

Disable interrupts rather than using sched_pin() to help ensure that
we don't call any external functions when in probe context.

PR: 218452
MFC after: 1 week

Details

Provenance
markjAuthored on
Parents
rS326934: MFC (conceptually) r326752, r326754:
Branches
Unknown
Tags
Unknown