mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-28 01:26:59 -04:00
MINOR: debug: report the execution context on thread dumps
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.
This commit is contained in:
parent
5d3246205b
commit
998ed00729
1 changed files with 3 additions and 0 deletions
|
|
@ -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=");
|
||||
|
|
|
|||
Loading…
Reference in a new issue