diff options
Diffstat (limited to 'libglusterfs/src/mem-pool.h')
-rw-r--r-- | libglusterfs/src/mem-pool.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libglusterfs/src/mem-pool.h b/libglusterfs/src/mem-pool.h index 1272ad4d5fc..8bf38ca3aff 100644 --- a/libglusterfs/src/mem-pool.h +++ b/libglusterfs/src/mem-pool.h @@ -45,6 +45,9 @@ struct mem_acct_rec { uint32_t total_allocs; uint32_t max_num_allocs; gf_lock_t lock; +#ifdef DEBUG + struct list_head obj_list; +#endif }; struct mem_acct { @@ -58,6 +61,9 @@ struct mem_header { size_t size; struct mem_acct *mem_acct; uint32_t magic; +#ifdef DEBUG + struct list_head acct_list; +#endif int padding[8]; }; |