]> git.kaiwu.me - haproxy.git/commit
MINOR: tools: add a function to write a thread execution context.
authorWilly Tarreau <w@1wt.eu>
Thu, 12 Mar 2026 06:48:14 +0000 (07:48 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 12 Mar 2026 17:06:37 +0000 (18:06 +0100)
commit5d3246205bf45a2e05d3efc244275d45d6af7697
tree77dd6d4fffd624b73345455e0747ad5ec4261f81
parent13c89bf20de07e32d570f48f7465119bb53e332c
MINOR: tools: add a function to write a thread execution context.

The new function chunk_append_thread_ctx() appends to a buffer the given
execution context based on its type and pointer. The goal is to easily
use it in profiling output and thread dumps. For now it only handles
TH_EX_CTX_NONE (which prints nothing) and TH_EX_CTX_OTHER (which indicates
"other ctx" followed by the pointer). It will be extended by new types as
they arrive.
include/haproxy/tools.h
src/tools.c