]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: tools: support an execution context that is just a function
authorWilly Tarreau <w@1wt.eu>
Wed, 11 Mar 2026 07:53:37 +0000 (08:53 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 12 Mar 2026 17:06:38 +0000 (18:06 +0100)
commit261cae3b6d5625c98c4677840e1c19c476cb492a
tree0feb9c00392ba7e1e17b8f6259f62a962cb6d38c
parentaa4d5dd21768e89972e1af5048e625b9e5f85320
MINOR: tools: support an execution context that is just a function

The purpose here is to be able to spot certain callbacks, such as the
SSL message callbacks, which are difficult to associate to anything.
Thus we introduce a new context type, TH_EX_CTX_FUNC, for which the
context is just the function pointed to by the void *pointer. One
difficulty with callbacks is that the allocation and release contexts
will likely be different, so the code should be properly structured
to allow proper tracking, either by instrumenting all calls, or by
making sure that the free calls are easy to spot in a report.
include/haproxy/tinfo-t.h
src/tools.c