]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: pools: export the pools variable
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Oct 2024 12:36:30 +0000 (14:36 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 24 Oct 2024 14:12:46 +0000 (16:12 +0200)
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.

include/haproxy/pool.h
src/pool.c

index 66ad2927ed956aeb1fbf229298d01fbefd998981..c60869475555460c30faed99a97d411086e3efba 100644 (file)
@@ -106,6 +106,9 @@ extern int pool_trim_in_progress;
 /* set of POOL_DBG_* flags */
 extern uint pool_debugging;
 
+/* pools are listed here */
+extern struct list pools;
+
 int malloc_trim(size_t pad);
 void trim_all_pools(void);
 
index 7caed7bf6b9c2d5879a5f20269233e1d338efa79..31c5c225105031fb11f6c8936c840b6b50755158 100644 (file)
@@ -36,7 +36,7 @@
 THREAD_LOCAL size_t pool_cache_bytes = 0;                /* total cache size */
 THREAD_LOCAL size_t pool_cache_count = 0;                /* #cache objects   */
 
-static struct list pools __read_mostly = LIST_HEAD_INIT(pools);
+struct list pools __read_mostly = LIST_HEAD_INIT(pools);
 int mem_poison_byte __read_mostly = 'P';
 int pool_trim_in_progress = 0;
 uint pool_debugging __read_mostly =               /* set of POOL_DBG_* flags */