From: Willy Tarreau Date: Fri, 29 Jan 2021 11:35:24 +0000 (+0100) Subject: MINOR: checks: export a few functions that appear often in trace dumps X-Git-Tag: v2.4-dev7~55 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=025fc71b473e56da1f3520d7332cce67a6449404;p=thirdparty%2Fhaproxy.git MINOR: checks: export a few functions that appear often in trace dumps The check I/O handler, process_chk_conn and server_warmup are often present in complex backtraces as they're impacted by locking or I/O issues. Let's export them so that they resolve cleanly. --- diff --git a/src/check.c b/src/check.c index 2c0a0aceb1..0528372d28 100644 --- a/src/check.c +++ b/src/check.c @@ -820,7 +820,7 @@ static int wake_srv_chk(struct conn_stream *cs) } /* This function checks if any I/O is wanted, and if so, attempts to do so */ -static struct task *event_srv_chk_io(struct task *t, void *ctx, unsigned short state) +struct task *event_srv_chk_io(struct task *t, void *ctx, unsigned short state) { struct check *check = ctx; struct conn_stream *cs = check->cs; @@ -835,7 +835,7 @@ static struct task *event_srv_chk_io(struct task *t, void *ctx, unsigned short s * Please do NOT place any return statement in this function and only leave * via the out_unlock label. */ -static struct task *process_chk_conn(struct task *t, void *context, unsigned short state) +struct task *process_chk_conn(struct task *t, void *context, unsigned short state) { struct check *check = context; struct proxy *proxy = check->proxy; @@ -1107,7 +1107,7 @@ static int start_check_task(struct check *check, int mininter, * reached, the task automatically stops. Note that any server status change * must have updated s->last_change accordingly. */ -static struct task *server_warmup(struct task *t, void *context, unsigned short state) +struct task *server_warmup(struct task *t, void *context, unsigned short state) { struct server *s = context;