Launch the client management thread using lttng_thread
[lttng-tools.git] / src / bin / lttng-sessiond / globals.c
1 /*
2 * Copyright (C) 2011 - David Goulet <david.goulet@polymtl.ca>
3 * Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
4 * 2013 - Jérémie Galarneau <jeremie.galarneau@efficios.com>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License, version 2 only,
8 * as published by the Free Software Foundation.
9 *
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License along
16 * with this program; if not, write to the Free Software Foundation, Inc.,
17 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18 */
19
20 #include "lttng-sessiond.h"
21
22 int ust_consumerd64_fd = -1;
23 int ust_consumerd32_fd = -1;
24
25 long page_size;
26
27 struct health_app *health_sessiond;
28
29 struct notification_thread_handle *notification_thread_handle;
30
31 struct lttng_ht *agent_apps_ht_by_sock = NULL;
32
33 int kernel_tracer_fd = -1;
34 struct lttng_kernel_tracer_version kernel_tracer_version;
35 struct lttng_kernel_tracer_abi_version kernel_tracer_abi_version;
36
37 int apps_cmd_notify_pipe[2] = { -1, -1 };
38 int kernel_poll_pipe[2] = { -1, -1 };
39
40 pid_t ppid;
41 pid_t child_ppid;
42
43 struct sessiond_config config;
44
45 struct consumer_data kconsumer_data = {
46 .type = LTTNG_CONSUMER_KERNEL,
47 .err_sock = -1,
48 .cmd_sock = -1,
49 .channel_monitor_pipe = -1,
50 .pid_mutex = PTHREAD_MUTEX_INITIALIZER,
51 .lock = PTHREAD_MUTEX_INITIALIZER,
52 .cond = PTHREAD_COND_INITIALIZER,
53 .cond_mutex = PTHREAD_MUTEX_INITIALIZER,
54 };
55
56 struct consumer_data ustconsumer64_data = {
57 .type = LTTNG_CONSUMER64_UST,
58 .err_sock = -1,
59 .cmd_sock = -1,
60 .channel_monitor_pipe = -1,
61 .pid_mutex = PTHREAD_MUTEX_INITIALIZER,
62 .lock = PTHREAD_MUTEX_INITIALIZER,
63 .cond = PTHREAD_COND_INITIALIZER,
64 .cond_mutex = PTHREAD_MUTEX_INITIALIZER,
65 };
66
67 struct consumer_data ustconsumer32_data = {
68 .type = LTTNG_CONSUMER32_UST,
69 .err_sock = -1,
70 .cmd_sock = -1,
71 .channel_monitor_pipe = -1,
72 .pid_mutex = PTHREAD_MUTEX_INITIALIZER,
73 .lock = PTHREAD_MUTEX_INITIALIZER,
74 .cond = PTHREAD_COND_INITIALIZER,
75 .cond_mutex = PTHREAD_MUTEX_INITIALIZER,
76 };
77
78 enum consumerd_state ust_consumerd_state;
79 enum consumerd_state kernel_consumerd_state;
This page took 0.032069 seconds and 5 git commands to generate.