aboutsummaryrefslogtreecommitdiff
path: root/sys/cddl/dev/dtmalloc
Commit message (Collapse)AuthorAgeFilesLines
* malloc: move malloc_type_internal into malloc_typeMateusz Guzik2020-11-061-1/+1
| | | | | | | | | | | | | | | | According to code comments the original motivation was to allow for malloc_type_internal changes without ABI breakage. This can be trivially accomplished by providing spare fields and versioning the struct, as implemented in the patch below. The upshots are one less memory indirection on each alloc and disappearance of mt_zone. Reviewed by: markj Differential Revision: https://reviews.freebsd.org/D27104 Notes: svn path=/head/; revision=367432
* dtrace: depessimize dtmalloc when dtrace is activeMateusz Guzik2018-04-241-0/+9
| | | | | | | | | | | 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. Notes: svn path=/head/; revision=332901
* Use C99 initializers for DTrace provider methods.Mark Johnston2017-09-271-10/+10
| | | | | | | | | This makes the definitions easier to read and more cscope-friendly. MFC after: 1 week Notes: svn path=/head/; revision=324066
* The dtmalloc provider uses the short description of a malloc type as theMark Johnston2013-06-281-0/+10
| | | | | | | | | | | function name of its corresponding DTrace probes. These descriptions may contain whitespace, but probe names cannot, so just replace any whitespace with underscores when creating probes. MFC after: 1 week Notes: svn path=/head/; revision=252325
* Custom DTrace kernel module files plus FreeBSD-specific DTrace providers.John Birrell2008-05-231-0/+220
Notes: svn path=/head/; revision=179237