Skip to content

Commit fba48e1

Browse files
committed
MINOR: pools: export the pools variable
We want it to be accessible from debuggers for inspection and it's currently unavailable. Let's start by exporting it as a first step.
1 parent db76949 commit fba48e1

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

include/haproxy/pool.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,9 @@ extern int pool_trim_in_progress;
106106
/* set of POOL_DBG_* flags */
107107
extern uint pool_debugging;
108108

109+
/* pools are listed here */
110+
extern struct list pools;
111+
109112
int malloc_trim(size_t pad);
110113
void trim_all_pools(void);
111114

src/pool.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
THREAD_LOCAL size_t pool_cache_bytes = 0; /* total cache size */
3737
THREAD_LOCAL size_t pool_cache_count = 0; /* #cache objects */
3838

39-
static struct list pools __read_mostly = LIST_HEAD_INIT(pools);
39+
struct list pools __read_mostly = LIST_HEAD_INIT(pools);
4040
int mem_poison_byte __read_mostly = 'P';
4141
int pool_trim_in_progress = 0;
4242
uint pool_debugging __read_mostly = /* set of POOL_DBG_* flags */

0 commit comments

Comments
 (0)