X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fmain.c;h=a1fbe5128f4983fab1e32bb8b9cf4d7576a3a570;hp=2582e886d1e1a5f5352a6f91b8bd82b2ea914c7b;hb=7e850e58bb4aa1e63b44d0a7ad5ca958e25d1a21;hpb=a433283e401f556b0eb87814475fc84b11fc9666 diff --git a/src/bin/lttng-sessiond/main.c b/src/bin/lttng-sessiond/main.c index 2582e886d..a1fbe5128 100644 --- a/src/bin/lttng-sessiond/main.c +++ b/src/bin/lttng-sessiond/main.c @@ -73,6 +73,7 @@ #include "save.h" #include "load-session-thread.h" #include "syscall.h" +#include "agent.h" #define CONSUMERD_FILE "lttng-consumerd" @@ -305,6 +306,9 @@ const char * const config_section_name = "sessiond"; /* Load session thread information to operate. */ struct load_session_thread_data *load_info; +/* Global hash tables */ +struct lttng_ht *agent_apps_ht_by_sock = NULL; + /* * Whether sessiond is ready for commands/health check requests. * NR_LTTNG_SESSIOND_READY must match the number of calls to @@ -5298,9 +5302,6 @@ int main(int argc, char **argv) void *status; const char *home_path, *env_app_timeout; - /* Initialize agent apps ht global variable */ - agent_apps_ht_by_sock = NULL; - init_kernel_workarounds(); rcu_register_thread();