sys: Remove $FreeBSD$: two-line .h patternRemove /^\s*\*\n \*\s+\$FreeBSD\$$\n/
Adjust dtmalloc_unload() definition to avoid clang 15 warningWith clang 15, the following -Werror warnings is produced: sys/cddl/dev/dtmalloc/dtmalloc.c:177:16: error: a function declaration w
Adjust dtmalloc_unload() definition to avoid clang 15 warningWith clang 15, the following -Werror warnings is produced: sys/cddl/dev/dtmalloc/dtmalloc.c:177:16: error: a function declaration without a prototype is deprecated in all versions of C [-Werror,-Wstrict-prototypes] dtmalloc_unload() ^ voidThis is because dtmalloc_unload() is declared with a (void) argumentlist, but defined with an empty argument list. Make the definition matchthe declaration.MFC after: 3 days
show more ...
dtrace: remove /dev/dtrace/dtmallocIt is unused.Reviewed by: markjDifferential Revision: https://reviews.freebsd.org/D35379
malloc: move malloc_type_internal into malloc_typeAccording to code comments the original motivation was to allow formalloc_type_internal changes without ABI breakage. This can be triviallyaccomp
malloc: move malloc_type_internal into malloc_typeAccording to code comments the original motivation was to allow formalloc_type_internal changes without ABI breakage. This can be triviallyaccomplished by providing spare fields and versioning the struct, asimplemented in the patch below.The upshots are one less memory indirection on each alloc and disappearanceof mt_zone.Reviewed by: markjDifferential Revision: https://reviews.freebsd.org/D27104
dtrace: depessimize dtmalloc when dtrace is activeEach malloc/free was testing dtrace_malloc_enabled and forcingextra reads from the malloc type struct to see if perhaps adtmalloc probe was on.
dtrace: depessimize dtmalloc when dtrace is activeEach malloc/free was testing dtrace_malloc_enabled and forcingextra reads from the malloc type struct to see if perhaps adtmalloc probe was on.Treat it like lockstat and sdt: have a global bolean.
Use C99 initializers for DTrace provider methods.This makes the definitions easier to read and more cscope-friendly.MFC after: 1 week
The dtmalloc provider uses the short description of a malloc type as thefunction name of its corresponding DTrace probes. These descriptions maycontain whitespace, but probe names cannot, so just r
The dtmalloc provider uses the short description of a malloc type as thefunction name of its corresponding DTrace probes. These descriptions maycontain whitespace, but probe names cannot, so just replace any whitespacewith underscores when creating probes.MFC after: 1 week
Custom DTrace kernel module files plus FreeBSD-specific DTrace providers.