X-Git-Url: https://git.lttng.org/?p=lttng-tools.git;a=blobdiff_plain;f=src%2Fbin%2Flttng-sessiond%2Fglobals.c;h=ee08ef1b065249fcf2b8371250c2f05e29fcbafe;hp=6646202b8c55efb351ed7eb14eba416b73dd3953;hb=HEAD;hpb=c70636a7342f34e3be68fcf411cf3e3718b8e73f diff --git a/src/bin/lttng-sessiond/globals.c b/src/bin/lttng-sessiond/globals.c deleted file mode 100644 index 6646202b8..000000000 --- a/src/bin/lttng-sessiond/globals.c +++ /dev/null @@ -1,82 +0,0 @@ -/* - * Copyright (C) 2011 - David Goulet - * Mathieu Desnoyers - * 2013 - Jérémie Galarneau - * - * This program is free software; you can redistribute it and/or modify - * it under the terms of the GNU General Public License, version 2 only, - * as published by the Free Software Foundation. - * - * This program is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - * GNU General Public License for more details. - * - * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. - */ - -#include "lttng-sessiond.h" -#include - -lttng_uuid sessiond_uuid; - -int ust_consumerd64_fd = -1; -int ust_consumerd32_fd = -1; - -long page_size; - -struct health_app *health_sessiond; - -struct notification_thread_handle *notification_thread_handle; - -struct lttng_ht *agent_apps_ht_by_sock = NULL; - -struct lttng_kernel_tracer_version kernel_tracer_version; -struct lttng_kernel_tracer_abi_version kernel_tracer_abi_version; - -int kernel_poll_pipe[2] = { -1, -1 }; - -pid_t ppid; -pid_t child_ppid; - -struct sessiond_config config; - -struct consumer_data kconsumer_data = { - .type = LTTNG_CONSUMER_KERNEL, - .err_sock = -1, - .cmd_sock = -1, - .channel_monitor_pipe = -1, - .pid_mutex = PTHREAD_MUTEX_INITIALIZER, - .lock = PTHREAD_MUTEX_INITIALIZER, -}; - -struct consumer_data ustconsumer64_data = { - .type = LTTNG_CONSUMER64_UST, - .err_sock = -1, - .cmd_sock = -1, - .channel_monitor_pipe = -1, - .pid_mutex = PTHREAD_MUTEX_INITIALIZER, - .lock = PTHREAD_MUTEX_INITIALIZER, -}; - -struct consumer_data ustconsumer32_data = { - .type = LTTNG_CONSUMER32_UST, - .err_sock = -1, - .cmd_sock = -1, - .channel_monitor_pipe = -1, - .pid_mutex = PTHREAD_MUTEX_INITIALIZER, - .lock = PTHREAD_MUTEX_INITIALIZER, -}; - -enum consumerd_state ust_consumerd_state; -enum consumerd_state kernel_consumerd_state; - -static void __attribute__((constructor)) init_sessiond_uuid(void) -{ - if (lttng_uuid_generate(sessiond_uuid)) { - ERR("Failed to generate a session daemon UUID"); - abort(); - } -}