Clean-up: consumer.hpp: coding style indentation fix
[lttng-tools.git] / src / bin / lttng-sessiond / globals.cpp
1 /*
2 * Copyright (C) 2011 EfficiOS Inc.
3 * Copyright (C) 2011 Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
4 * Copyright (C) 2013 Jérémie Galarneau <jeremie.galarneau@efficios.com>
5 *
6 * SPDX-License-Identifier: GPL-2.0-only
7 *
8 */
9
10 #include "lttng-sessiond.hpp"
11
12 #include <common/uuid.hpp>
13
14 lttng_uuid the_sessiond_uuid;
15
16 int the_ust_consumerd64_fd = -1;
17 int the_ust_consumerd32_fd = -1;
18
19 long the_page_size;
20
21 struct health_app *the_health_sessiond;
22
23 struct notification_thread_handle *the_notification_thread_handle;
24 lttng::sessiond::rotation_thread::uptr the_rotation_thread_handle;
25
26 struct lttng_ht *the_agent_apps_ht_by_sock = nullptr;
27 struct lttng_ht *the_trigger_agents_ht_by_domain = nullptr;
28
29 struct lttng_kernel_abi_tracer_version the_kernel_tracer_version;
30 struct lttng_kernel_abi_tracer_abi_version the_kernel_tracer_abi_version;
31
32 int the_kernel_poll_pipe[2] = { -1, -1 };
33
34 pid_t the_ppid;
35 pid_t the_child_ppid;
36
37 struct sessiond_config the_config;
38
39 consumer_data the_kconsumer_data(LTTNG_CONSUMER_KERNEL);
40 consumer_data the_ustconsumer64_data(LTTNG_CONSUMER64_UST);
41 consumer_data the_ustconsumer32_data(LTTNG_CONSUMER32_UST);
42
43 enum consumerd_state the_ust_consumerd_state;
44 enum consumerd_state the_kernel_consumerd_state;
45
46 static void __attribute__((constructor)) init_sessiond_uuid()
47 {
48 if (lttng_uuid_generate(the_sessiond_uuid)) {
49 ERR("Failed to generate a session daemon UUID");
50 abort();
51 }
52 }
This page took 0.030652 seconds and 5 git commands to generate.