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