HomeFreeBSD

Reduce overhead of ktrace checks in the common case.

Description

Reduce overhead of ktrace checks in the common case.

KTRPOINT() checks both if we are tracing _and_ if we are recursing within
ktrace. The second condition is only ever executed if ktrace is actually
enabled. This change moves the check out of the hot path in to the functions
themselves.

Discussed with mjg@

Reported by: mjg@
Approved by: sbruno@

Details

Provenance
mmacyAuthored on
Parents
rS333389: Upgrade to OpenSSH 7.6p1. This will be followed shortly by 7.7p1.
Branches
Unknown
Tags
Unknown