]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
DEBUG: resolvers: unstatify process_resolvers() to make it appear in profiling
authorWilly Tarreau <w@1wt.eu>
Thu, 8 Sep 2022 13:07:13 +0000 (15:07 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 8 Sep 2022 14:13:38 +0000 (16:13 +0200)
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

src/resolvers.c

index 1f894ab48099c1bd9804ac08a1bd19df69f4b47d..a0ebb6009d82fc97a58b0267b6de52b4ad4dc88d 100644 (file)
@@ -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;