Add conditionally compiled mechanism to "show buffers" to give a list of the currently allocated buffers, with a trace for each one of the calls that led to its creation.
This commit is contained in:
@ -43,6 +43,7 @@
|
||||
* 03/10/2014 Martin Brampton Pointer arithmetic standard conformity
|
||||
* Add more buffer handling macros
|
||||
* Add gwbuf_rtrim (handle chains)
|
||||
* 09/11/2014 Martin Brampton Add dprintAllBuffers (conditional compilation)
|
||||
*
|
||||
* @endverbatim
|
||||
*/
|
||||
@ -52,7 +53,6 @@
|
||||
#include <spinlock.h>
|
||||
#include <stdint.h>
|
||||
|
||||
|
||||
EXTERN_C_BLOCK_BEGIN
|
||||
|
||||
/**
|
||||
@ -202,6 +202,9 @@ void gwbuf_add_buffer_object(GWBUF* buf,
|
||||
void* data,
|
||||
void (*donefun_fp)(void *));
|
||||
void* gwbuf_get_buffer_object_data(GWBUF* buf, bufobj_id_t id);
|
||||
#if defined(BUFFER_TRACE)
|
||||
extern void dprintAllBuffers(void *pdcb);
|
||||
#endif
|
||||
EXTERN_C_BLOCK_END
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user