Launch the application notification thread using lttng_thread
[lttng-tools.git] / src / bin / lttng-sessiond / globals.c
CommitLineData
a7333da7
JG
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
22int ust_consumerd64_fd = -1;
23int ust_consumerd32_fd = -1;
24
25long page_size;
26
27struct health_app *health_sessiond;
28
29struct notification_thread_handle *notification_thread_handle;
30
31struct lttng_ht *agent_apps_ht_by_sock = NULL;
32
33int kernel_tracer_fd = -1;
917a718d
JG
34struct lttng_kernel_tracer_version kernel_tracer_version;
35struct lttng_kernel_tracer_abi_version kernel_tracer_abi_version;
a7333da7 36
e32d7f27 37int kernel_poll_pipe[2] = { -1, -1 };
a7333da7
JG
38
39pid_t ppid;
40pid_t child_ppid;
41
42struct sessiond_config config;
917a718d
JG
43
44struct consumer_data kconsumer_data = {
45 .type = LTTNG_CONSUMER_KERNEL,
46 .err_sock = -1,
47 .cmd_sock = -1,
48 .channel_monitor_pipe = -1,
49 .pid_mutex = PTHREAD_MUTEX_INITIALIZER,
50 .lock = PTHREAD_MUTEX_INITIALIZER,
51 .cond = PTHREAD_COND_INITIALIZER,
52 .cond_mutex = PTHREAD_MUTEX_INITIALIZER,
53};
54
55struct consumer_data ustconsumer64_data = {
56 .type = LTTNG_CONSUMER64_UST,
57 .err_sock = -1,
58 .cmd_sock = -1,
59 .channel_monitor_pipe = -1,
60 .pid_mutex = PTHREAD_MUTEX_INITIALIZER,
61 .lock = PTHREAD_MUTEX_INITIALIZER,
62 .cond = PTHREAD_COND_INITIALIZER,
63 .cond_mutex = PTHREAD_MUTEX_INITIALIZER,
64};
65
66struct consumer_data ustconsumer32_data = {
67 .type = LTTNG_CONSUMER32_UST,
68 .err_sock = -1,
69 .cmd_sock = -1,
70 .channel_monitor_pipe = -1,
71 .pid_mutex = PTHREAD_MUTEX_INITIALIZER,
72 .lock = PTHREAD_MUTEX_INITIALIZER,
73 .cond = PTHREAD_COND_INITIALIZER,
74 .cond_mutex = PTHREAD_MUTEX_INITIALIZER,
75};
76
77enum consumerd_state ust_consumerd_state;
78enum consumerd_state kernel_consumerd_state;
This page took 0.037043 seconds and 5 git commands to generate.