vscode: Add configurations to run the executables under the debugger
[lttng-tools.git] / src / bin / lttng-sessiond / globals.cpp
... / ...
CommitLineData
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#include <common/uuid.hpp>
12
13lttng_uuid the_sessiond_uuid;
14
15int the_ust_consumerd64_fd = -1;
16int the_ust_consumerd32_fd = -1;
17
18long the_page_size;
19
20struct health_app *the_health_sessiond;
21
22struct notification_thread_handle *the_notification_thread_handle;
23
24struct lttng_ht *the_agent_apps_ht_by_sock = NULL;
25struct lttng_ht *the_trigger_agents_ht_by_domain = NULL;
26
27struct lttng_kernel_abi_tracer_version the_kernel_tracer_version;
28struct lttng_kernel_abi_tracer_abi_version the_kernel_tracer_abi_version;
29
30int the_kernel_poll_pipe[2] = {-1, -1};
31
32pid_t the_ppid;
33pid_t the_child_ppid;
34
35struct sessiond_config the_config;
36
37consumer_data the_kconsumer_data(LTTNG_CONSUMER_KERNEL);
38consumer_data the_ustconsumer64_data(LTTNG_CONSUMER64_UST);
39consumer_data the_ustconsumer32_data(LTTNG_CONSUMER32_UST);
40
41enum consumerd_state the_ust_consumerd_state;
42enum consumerd_state the_kernel_consumerd_state;
43
44static void __attribute__((constructor)) init_sessiond_uuid(void)
45{
46 if (lttng_uuid_generate(the_sessiond_uuid)) {
47 ERR("Failed to generate a session daemon UUID");
48 abort();
49 }
50}
This page took 0.02187 seconds and 4 git commands to generate.