]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: debug: also add fdtab and acitvity to struct post_mortem
authorWilly Tarreau <w@1wt.eu>
Mon, 28 Oct 2024 06:44:14 +0000 (07:44 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 28 Oct 2024 16:14:48 +0000 (17:14 +0100)
These ones are often used as well when trying to analyse sequences of
events, let's add them.

src/debug.c

index 02fd710009b69631ceb668a0785f042b3a08b9ce..299fe938757e19c671987f99a459ce6061649435 100644 (file)
@@ -157,6 +157,8 @@ struct post_mortem {
        struct list *pools;              // pointer to the head of the pools list
        struct proxy **proxies;          // pointer to the head of the proxies list
        struct global *global;           // pointer to the struct global
+       struct fdtab **fdtab;            // pointer to the fdtab array
+       struct activity *activity;       // pointer to the activity[] per-thread array
 
        /* info about identified distinct components (executable, shared libs, etc).
         * These can be all listed at once in gdb using:
@@ -2566,6 +2568,8 @@ static int feed_post_mortem()
        post_mortem.pools = &pools;
        post_mortem.proxies = &proxies_list;
        post_mortem.global = &global;
+       post_mortem.fdtab = &fdtab;
+       post_mortem.activity = activity;
 
        return ERR_NONE;
 }