]> git.kaiwu.me - haproxy.git/commit
MINOR: tools: decode execution context TH_EX_CTX_INITCALL
authorWilly Tarreau <w@1wt.eu>
Fri, 6 Mar 2026 09:41:35 +0000 (10:41 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 12 Mar 2026 17:06:38 +0000 (18:06 +0100)
commit6e75da7a91215fd547cc5d2625c61e9a00576c33
treeda38b49bacdeb353fd61440280d911d0e73440de
parent33c928c7452f07bdd26fb833debb8383a2e20862
MINOR: tools: decode execution context TH_EX_CTX_INITCALL

When the execution context is set to TH_EX_CTX_INITCALL, the pointer
points to a valid initcall, and the decoder will show "kw registered
at %s:%d" with file and line number of the initcall declaration. It's
up to the caller to make the initcall pointer point to the one that was
set during the initcall. The purpose here is to be able to preserve and
pass that knowledge of an initcall down the chain so that future calls
to functions registered via the initcall are still assigned to it.
include/haproxy/tinfo-t.h
src/tools.c