summaryrefslogtreecommitdiffstats
path: root/share/man/man9/malloc.9 (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Add lock stack trace saving for witness(4).visa2019-02-071-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This lets witness(4) save a stack trace on each lock acquisition. The saved traces can be viewed in ddb(4) when showing the currently held locks, which may help when debugging incorrect locking. Sample output: ddb{0}> show all locks Process 63836 (rm) thread 0xffff8000221e52c8 (435004) exclusive rrwlock inode r = 0 (0xfffffd8119a092c0) locked @ /usr/src/sys/ufs/ufs/ufs_vnops.c:1547 #0 witness_lock+0x419 #1 _rw_enter+0x2bb #2 _rrw_enter+0x42 #3 VOP_LOCK+0x3f #4 vn_lock+0x36 #5 vfs_lookup+0xa1 #6 namei+0x2b3 #7 dounlinkat+0x85 #8 syscall+0x338 #9 Xsyscall+0x128 exclusive kernel_lock &kernel_lock r = 1 (0xffffffff81e6a5f0) locked @ /usr/src/sys/arch/amd64/amd64/intr.c:525 #0 witness_lock+0x419 #1 syscall+0x2b6 #2 Xsyscall+0x128 The saving adds overhead, so it is not enabled by default. It can be taken into use by setting sysctl kern.witness.locktrace=1 at runtime or by defining WITNESS_LOCKTRACE in the kernel configuration. Feedback and OK anton@
* Add missing types, and fix incorrect names.visa2019-01-181-5/+9
|
* Remove MALLOC_DEBUG left overs.mpi2017-11-271-68/+2
| | | | From Klemens Nanni.
* Allocate IPv6 reassembly structs using pools instead of malloc(),visa2017-10-271-4/+2
| | | | | | and drop the now redundant allocation type M_FTABLE. OK mikeb@, bluhm@, mpi@
* M_COUNTERS is a thingdlg2016-11-141-2/+5
|
* Rename M_RTABLE bucket into "rtable" to match the code and kill unusedmpi2015-08-241-4/+2
| | | | | | M_BWMETER. ok mikeb@
* document when to pass free() a size, and hey -- if it is impossible trackderaadt2014-11-191-3/+9
| | | | it down, that is ok, you can pass 0. (but it is slower)
* tweak wording and update panic messagestedu2014-11-021-4/+18
|
* Remove userland bits related to the crypto(4) interface; ok deraadtmikeb2014-08-201-3/+3
|
* tweak previous;jmc2014-07-231-3/+3
|
* document mallocarray like malloc throughout the page. better describedlg2014-07-231-30/+44
| | | | | | what M_CANFAIL means for each. motivation and initial diff from doug hogan
* add a size argument to free. will be used soon, but for now default to 0.tedu2014-07-121-2/+4
| | | | after discussions with beck deraadt kettenis.
* remove bluetooth malloc typestedu2014-07-121-6/+2
|
* Oops, fix man page typo.matthew2014-07-101-2/+2
| | | | thx Jean-Philippe Ouellet
* Add mallocarray(9)matthew2014-07-101-5/+18
| | | | | | | While here, change malloc(9)'s size argument from "unsigned long" to "size_t". ok tedu
* Sync malloc(9) M_* types with sys/malloc.hlteo2014-04-031-4/+8
|
* tweak previous; help/ok dlgjmc2014-03-271-6/+8
|
* CONTEXT for malloc.dlg2014-03-261-2/+15
| | | | feels a bit clumsy, hopefully jmc can help.
* free(null) workstedu2013-07-041-2/+5
|
* Replace old-fashioned .Fd by new-fangled .In for #include lines.schwarze2013-06-041-4/+4
| | | | | Diff from Jan Klemkow <j dot klemkow at wemelug dot de> on tech@. No objection from jmc@ against this type of change.
* Remove raidframe related references.jsing2012-04-061-4/+2
|
* Eliminate some unused malloc(9) type defines. Also get rid of thematthew2010-07-141-16/+2
| | | | | | mysterious and unused mbtypes[] array in mbuf.h. ok tedu@, deraadt@
* Don't mention that M_WAITOK is defined to be zero, readers do not needoga2010-03-081-5/+8
| | | | | | | | | to know that. ok jmc@, though i'm tempted to remove the whole bit about being the same as having no other flags specified as well. Prompted by a discussion with deraadt and tedu.
* Neither .Pp nor unqualified text are allowed at the top level of .Bl;schwarze2010-01-031-3/+3
| | | | | | | | instead, .It is required. Thus, move .Pp and text before the .Bl, and remove the .Pp altogether where it is not needed. Syntax errors found by mandoc(1), also required to fix the mandoc build; feedback and ok jmc@, and sobrado@ also supports the direction.
* - update the list of typesjmc2008-12-111-21/+25
| | | | | | | - some text improvements - remember systat(1) ok otto
* remove last bits of MALLOC/FREEchl2008-09-021-22/+4
| | | | | | spotted by and initial patch from espie@, with inputs from jmc@ ok espie@ jmc@
* First pass at removing clauses 3 and 4 from NetBSD licenses.ray2008-06-261-9/+2
| | | | | | | | | Not sure what's more surprising: how long it took for NetBSD to catch up to the rest of the BSDs (including UCB), or the amount of code that NetBSD has claimed for itself without attributing to the actual authors. OK deraadt@
* Document M_ZERO.art2007-09-071-2/+6
|
* remove crufty adosfs. everytime we try to change a vfs layer interface,deraadt2007-06-011-8/+2
| | | | | | adosfs has the issue and in an entirely different way. noone uses this code so this is hte best way to handle the problem diff from pedro who went to sleep but we need to move ahead; ok thib
* convert to new .Dd format;jmc2007-05-311-2/+2
|
* It's not M1394CTL and M1394DATA. It's M_1394CTL and M_1394DATA.mk2007-02-131-3/+3
| | | | ok brad
* Make ext2fs use a memory pool to allocate inodes, okay tedu@pedro2005-12-141-3/+1
|
* document M_WAITOK as a separate flag rather than a note to M_NOWAITdlg2005-08-181-9/+10
| | | | help from and ok jmc@ ok deraadt@ no objections art@
* Document M_CANFAIL and sync M_xxx types;miod2005-08-061-14/+27
| | | | prodded by beck@, feedback jmc@, ok deraadt@
* Extended Attributes was a piece to get to ACLs, however ACLs have notdrahn2005-06-171-3/+1
| | | | been worked on, so EA is pointless to maintain. go ahead jmc@
* Missing spacetom2005-04-151-2/+2
| | | | ok jmc@
* mention new udf malloc types, okay deraadt@pedro2005-03-301-1/+7
|
* Get rid of M_LOCKF and use pool for allocating lockf structures.grange2004-01-141-3/+1
| | | | | | From NetBSD. Tested by many people, ok art@.
* fix some lists and macros;jmc2003-07-111-2/+2
|
* make type descriptions generally plural.tedu2003-06-211-25/+25
| | | | Vfs -> VFS, Adosfs -> ADOSFS, etc.
* document new malloc type EMULDATA and missing NTFS types.tedu2003-06-211-1/+21
|
* - section reorderjmc2003-06-061-4/+4
| | | | | | - macro fixes - kill whitespace at EOL - use .Ox for OpenBSD, .Fx for FreeBSD
* typos;jmc2003-04-171-3/+3
| | | | md5(9): ok tedu@
* nfs -> NFSjmc2003-04-021-4/+4
|
* sync with realitytedu2003-02-241-85/+16
| | | | ok art@
* Reword the DEBUGGING section to get rid of second person forms.art2002-12-201-11/+10
|
* Document M_DEBUG.art2002-12-201-4/+7
|
* RAIDframe spelling. ok art@tdeval2002-08-281-2/+2
|
* malloc debug variables have changed.art2002-07-171-10/+10
|
* Document ranges.art2001-07-171-3/+13
|