mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2026-06-13 15:03:58 +03:00
mcheck: add pedantic mode support
The pedantic mode is run-time contolled, so appropriate registry take place everytime. Maybe it's worth to use compile-time control only. So, the registry could be optimized out by an #ifdef. Signed-off-by: Eugene Uriev <eugeneuriev@gmail.com>
This commit is contained in:
@@ -33,6 +33,15 @@ typedef void (*mcheck_abortfunc_t)(enum mcheck_status);
|
||||
|
||||
int mcheck(mcheck_abortfunc_t func);
|
||||
|
||||
/*
|
||||
* Similar to `mcheck' but performs checks for all block whenever one of
|
||||
* the memory handling functions is called. This can be very slow.
|
||||
*/
|
||||
int mcheck_pedantic(mcheck_abortfunc_t f);
|
||||
|
||||
/* Force check of all blocks now. */
|
||||
void mcheck_check_all(void);
|
||||
|
||||
/*
|
||||
* Check for aberrations in a particular malloc'd block. These are the
|
||||
* same checks that `mcheck' does, when you free or reallocate a block.
|
||||
|
||||
Reference in New Issue
Block a user