]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: debug: add struct ha_caller to describe a calling location
authorWilly Tarreau <w@1wt.eu>
Tue, 6 Sep 2022 05:55:44 +0000 (07:55 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 8 Sep 2022 12:19:15 +0000 (14:19 +0200)
commit7f2f1f294c073302df30de4f08fe1bd6be472936
tree9ee30cd30adad5af5bca5fb7adfc4db45c466fe8
parent4c1bc01f319faa2b2c2d96ceba4eb9a8f8505083
MINOR: debug: add struct ha_caller to describe a calling location

The purpose of this structure is to assemble all constant parts of a
generic calling point for a specific event. These ones are created by
the compiler as a static const element outside of the code path, so
they cost nothing in terms of CPU, and a pointer to that descriptor
can be passed to the place that needs it. This is very similar to what
is being done for the mem_stat stuff.

This will be useful to simplify and improve DEBUG_TASK.
include/haproxy/bug.h