]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: debug: report the number of loops and ctxsw for each thread
authorWilly Tarreau <w@1wt.eu>
Tue, 9 Sep 2025 05:52:53 +0000 (07:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 9 Sep 2025 15:56:14 +0000 (17:56 +0200)
commit12bc4f9c44beaa1a73b16171f63182f2b8140e3b
treea6bee956b0da6f513623970b98baa8717fce46d9
parentc3f94fbd9b49a140c10dd6036585d3b76779feb4
MINOR: debug: report the number of loops and ctxsw for each thread

When multiple similar warnings are emitted, it can be difficult to know
whether only one task is looping slowly or if many are sharing the CPU.
Let's report the number of context switches and polling loop turns in
thread dumps so that warnings are easier to understand.

This should be backported to 3.2.
src/debug.c