HomeFreeBSD

dtrace: depessimize dtmalloc when dtrace is active

Description

dtrace: depessimize dtmalloc when dtrace is active

Each malloc/free was testing dtrace_malloc_enabled and forcing
extra reads from the malloc type struct to see if perhaps a
dtmalloc probe was on.

Treat it like lockstat and sdt: have a global bolean.

Details

Provenance
mjgAuthored on
Parents
rS332900: lockstat: track lockstat just like sdt probes
Branches
Unknown
Tags
Unknown