DEBUG: thread: add 5 extra lock labels for statistics and debugging
authorWilly Tarreau <w@1wt.eu>
Wed, 17 Feb 2021 13:33:58 +0000 (14:33 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 18 Feb 2021 09:06:45 +0000 (10:06 +0100)
commitccea3c54f4b39774ccb48cfd604a22acb8e59c86
tree3f151c61fd73e26c320f7cc5388fdb1f723322a3
parent4e9df2737dde3f6d1d171fa17e2594c4c765c00c
DEBUG: thread: add 5 extra lock labels for statistics and debugging

Since OTHER_LOCK is commonly used it's become much more difficult to
profile lock contention by temporarily changing a lock label. Let's
add DEBUG1..5 to serve only for debugging. These ones must not be
used in committed code. We could decide to only define them when
DEBUG_THREAD is set but that would complicate attempts at measuring
performance with debugging turned off.
include/haproxy/thread.h