]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: build: define DEBUG_STRESS
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 7 Nov 2024 15:37:10 +0000 (16:37 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 12 Dec 2024 10:19:10 +0000 (11:19 +0100)
commit9d19fc4cf752f1e22ba8b810328ecb04be34a6a2
tree1861366f0365dcfb64f6f322d9ddd4cedf80cdb6
parentf36ac42274514203704f587aa140f5e01317f0a7
MINOR: build: define DEBUG_STRESS

Define a new build mode DEBUG_STRESS. This will be used to stress some
code parts which cannot be reproduce easily with an alternative
suboptimal code.

First, a global <mode_stress> is set either to 1 or 0 depending on
DEBUG_STRESS compilation. A new global keyword "stress-level" is also
defined. It allows to specify a level from 0 to 9, to increase the
stress incurred on the code.

Helper macro STRESS_RUN* are defined for each stress level. This allows
to easily specify an instruction in default execution and a stress
counterpart if running on the corresponding stress level.
Makefile
doc/configuration.txt
include/haproxy/stress.h [new file with mode: 0644]
src/cfgparse-global.c
src/haproxy.c