From: Willy Tarreau Date: Thu, 8 Sep 2022 13:07:13 +0000 (+0200) Subject: DEBUG: resolvers: unstatify process_resolvers() to make it appear in profiling X-Git-Tag: v2.7-dev6~71 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=0fbc16cfb91d1a4c519576f7d06d819cab3b012f;p=thirdparty%2Fhaproxy.git DEBUG: resolvers: unstatify process_resolvers() to make it appear in profiling The function appears like this in "show profiling tasks", so let's export it: function calls cpu_tot cpu_avg lat_tot lat_avg main+0x1463f0 92 77.28us 839.0ns 2.018ms 21.93us <- wake_expired_tasks@src/task.c:429 task_drop_running --- diff --git a/src/resolvers.c b/src/resolvers.c index 1f894ab480..a0ebb6009d 100644 --- a/src/resolvers.c +++ b/src/resolvers.c @@ -65,7 +65,7 @@ DECLARE_POOL(resolv_requester_pool, "resolv_requester", sizeof(struct resolv_r static unsigned int resolution_uuid = 1; unsigned int resolv_failed_resolutions = 0; -static struct task *process_resolvers(struct task *t, void *context, unsigned int state); +struct task *process_resolvers(struct task *t, void *context, unsigned int state); static void resolv_free_resolution(struct resolv_resolution *resolution); static void _resolv_unlink_resolution(struct resolv_requester *requester); static void enter_resolver_code(); @@ -2299,7 +2299,7 @@ static int resolv_process_responses(struct dns_nameserver *ns) * resolutions and retry them if possible. Else a timeout is reported. Then, it * checks the wait list to trigger new resolutions. */ -static struct task *process_resolvers(struct task *t, void *context, unsigned int state) +struct task *process_resolvers(struct task *t, void *context, unsigned int state) { struct resolvers *resolvers = context; struct resolv_resolution *res, *resback;