1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-12-21 13:34:40 +03:00
lvm2/libdm/mm
Zdenek Kabelac ed463ccf51 Add memory pool locking functions
Adding debuging functionality to lock and unlock memory pool.

2 ways to debug code:
crc - is default checksum/hash of the locked pool.
      It gets slower when the pool is larger - so the check is only
      made when VG is finaly released and it has been used more then
      once.Thus the result is rather informative.

mprotect - quite fast all the time - but requires more memory and
           currently it is using posix_memalign() - this could be
	   later modified to use dm_malloc() and align internally.
           Tool segfaults when locked memory is modified and core
	   could be examined for faulty code section (backtrace).

Only fast memory pools could use mprotect for now -
so such debug builds cannot be combined with DEBUG_POOL.
2011-08-11 17:29:04 +00:00
..
dbg_malloc.c Revert DEBUG_MEM cleanup commit 2011-02-08 15:52:00 +00:00
dbg_malloc.h Skip add_dev_node when ioctls disabled. 2008-05-21 16:14:46 +00:00
pool-debug.c Add memory pool locking functions 2011-08-11 17:29:04 +00:00
pool-fast.c Add memory pool locking functions 2011-08-11 17:29:04 +00:00
pool.c Add memory pool locking functions 2011-08-11 17:29:04 +00:00