This read-mostly variable will be used at runtime to enable/disable
certain pool-debugging features and will be set by the command-line
parser. A future option -dP will take a number of debugging features
as arguments to configure this variable's contents.
/* poison each newly allocated area with this byte if >= 0 */
extern int mem_poison_byte;
+/* set of POOL_DBG_* flags */
+extern uint pool_debugging;
+
void *pool_get_from_os(struct pool_head *pool);
void pool_put_to_os(struct pool_head *pool, void *ptr);
void *pool_alloc_nocache(struct pool_head *pool);
static struct list pools __read_mostly = LIST_HEAD_INIT(pools);
int mem_poison_byte __read_mostly = -1;
+uint pool_debugging __read_mostly = 0; /* set of POOL_DBG_* flags */
#ifdef DEBUG_FAIL_ALLOC
static int mem_fail_rate __read_mostly = 0;