]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: debug: report the execution context on thread dumps
authorWilly Tarreau <w@1wt.eu>
Thu, 12 Mar 2026 07:55:04 +0000 (08:55 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 12 Mar 2026 17:06:37 +0000 (18:06 +0100)
Now we have one extra line saying "exec_ctx: something" in thread dumps
when it's known. It may help with warnings and panics to figure what
is ongoing.

src/debug.c

index c404139be3be906e4d3b4bb2ff47c6af2b6d4cb2..8c01b757c899f8e6d39101b92b2d42ccd197a378 100644 (file)
@@ -367,6 +367,9 @@ void ha_thread_dump_one(struct buffer *buf, int is_caller)
                              (now - th_ctx->sched_call_date));
        }
 
+       /* report the execution context when known */
+       chunk_append_thread_ctx(buf, &th_ctx->exec_ctx, "             exec_ctx: ", "\n");
+
        /* this is the end of what we can dump from outside the current thread */
 
        chunk_appendf(buf, "             curr_task=");