Joe Thornber
1aaf8d589f
[MM] Make valgrind aware of the pool allocators
...
./configure with --enable-valgrind-pool to enable this.
2010-08-09 10:56:01 +00:00
Zdenek Kabelac
7c1903a0c3
Fix 'void*' arithmetic warnings in dbg_malloc.c.
...
Use more readable char[idx] access instead of *char+idx access.
2010-08-03 13:24:07 +00:00
Alasdair Kergon
2d3164a59f
Use __attribute__ consistently throughout.
2010-07-09 15:34:40 +00:00
Alasdair Kergon
d01de820d7
Use INTERNAL_ERROR definition consistently in internal error messages.
2010-03-25 18:22:04 +00:00
Alasdair Kergon
befef6eb00
remove no-longer-used header
2010-01-19 17:04:05 +00:00
Alasdair Kergon
5e3369aba3
Add log_errno to set a specific errno and replace log_error in due course.
2009-07-16 00:52:06 +00:00
Alasdair Kergon
7da36611dc
Use log_error macro consistently throughout in place of log_err.
2009-07-15 20:02:46 +00:00
Alasdair Kergon
a06d6839e1
New LOG_MESG macro to fix file/line number logging for memory leaks after
...
LOG_LINENO macro was added.
2009-07-15 14:18:38 +00:00
Alasdair Kergon
7e7274b002
Add dm_log_with_errno and dm_log_with_errno_init, deprecating the old
...
Change plog to use dm_log_with_errno unless deprecated dm_log_init was used.
Rename plog macro to LOG_LINE and use in dm_dump_memory_debug.
2009-07-10 09:59:37 +00:00
Milan Broz
d784303591
Helper function to catch memory pool leaks.
2009-04-10 09:56:58 +00:00
Milan Broz
9ab1d88a91
Fix debug pool grow object to properly support delta=0
...
(It prints garbage for some reports)
2009-04-02 15:02:18 +00:00
Milan Broz
77dd12a028
fix some issues when compiling with -D DEBUG_POOL
...
- fix compilation issues
- fix wrong pool object maipulation (lvm dumpconfig triggers assert)
- second iteration in loop _log_parallel_areas operates on non-existing object
2009-03-26 09:25:18 +00:00
Alasdair Kergon
05329c885a
more tweaking to get things to compile - dmlib.h for log fns, list.h
2008-11-03 18:59:59 +00:00
Alasdair Kergon
723be0fe69
Align struct memblock in dbg_malloc for sparc.
2008-06-25 14:10:33 +00:00
Alasdair Kergon
0c6271dabc
Skip add_dev_node when ioctls disabled.
...
Make dm_hash_iter safe against deletion.
Accept a NULL pointer to dm_free silently.
2008-05-21 16:14:46 +00:00
Alasdair Kergon
08e5bd5b72
Calculate string size within dm_pool_grow_object.
2008-04-19 15:50:18 +00:00
Alasdair Kergon
1ad58e1121
Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1.
2007-08-21 16:26:07 +00:00
Alasdair Kergon
a249de3b72
Standardise protective include file #defines.
2007-04-27 19:07:43 +00:00
Alasdair Kergon
63e4217271
Add dm_event_handler_[gs]et_timeout functions.
...
Streamline dm_report_field_* interface.
2007-01-22 15:03:57 +00:00
Alasdair Kergon
43243f4d30
Report error if NULL pointer supplied to dm_strdup_aux().
2007-01-15 14:39:12 +00:00
Alasdair Kergon
863484bb65
Reorder mm bounds_check code to reduce window for a dmeventd race. (dm_free_aux)
2006-09-19 17:30:04 +00:00
Alasdair Kergon
a945f1fde2
reorder bounds check code
2006-08-18 21:38:58 +00:00
Alasdair Kergon
42635c3938
Add file & line to dm_strdup_aux().
2006-02-23 19:11:51 +00:00
Alasdair Kergon
d031a374f9
Rename _log to dm_log and export.
...
Fix misc compile-time warnings.
2006-01-31 14:50:38 +00:00
Alasdair Kergon
34a1f14a17
Fix dm_strdup debug definition.
2006-01-11 15:40:54 +00:00
Alasdair Kergon
fc5d801f91
fix debug linking
2005-11-10 16:33:04 +00:00
Alasdair Kergon
251d138474
export bitset, pool, hash, malloc
2005-10-16 22:57:20 +00:00
Alasdair Kergon
f569abd28a
Code to build and display device dependency tree.
2005-10-16 14:33:22 +00:00