projects
/
lttng-tools.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
relayd: move relay_session locking outside of make_viewer_streams
[lttng-tools.git]
/
src
/
bin
/
lttng-sessiond
/
globals.c
diff --git
a/src/bin/lttng-sessiond/globals.c
b/src/bin/lttng-sessiond/globals.c
index efe80baaf2fef86a76b8ec66366d67f997c08e0e..ef57a960dd47365b87c6f506d7f1220cb974886d 100644
(file)
--- a/
src/bin/lttng-sessiond/globals.c
+++ b/
src/bin/lttng-sessiond/globals.c
@@
-18,6
+18,9
@@
*/
#include "lttng-sessiond.h"
*/
#include "lttng-sessiond.h"
+#include <common/compat/uuid.h>
+
+lttng_uuid sessiond_uuid;
int ust_consumerd64_fd = -1;
int ust_consumerd32_fd = -1;
int ust_consumerd64_fd = -1;
int ust_consumerd32_fd = -1;
@@
-30,7
+33,6
@@
struct notification_thread_handle *notification_thread_handle;
struct lttng_ht *agent_apps_ht_by_sock = NULL;
struct lttng_ht *agent_apps_ht_by_sock = NULL;
-int kernel_tracer_fd = -1;
struct lttng_kernel_tracer_version kernel_tracer_version;
struct lttng_kernel_tracer_abi_version kernel_tracer_abi_version;
struct lttng_kernel_tracer_version kernel_tracer_version;
struct lttng_kernel_tracer_abi_version kernel_tracer_abi_version;
@@
-70,3
+72,11
@@
struct consumer_data ustconsumer32_data = {
enum consumerd_state ust_consumerd_state;
enum consumerd_state kernel_consumerd_state;
enum consumerd_state ust_consumerd_state;
enum consumerd_state kernel_consumerd_state;
+
+static void __attribute__((constructor)) init_sessiond_uuid(void)
+{
+ if (lttng_uuid_generate(sessiond_uuid)) {
+ ERR("Failed to generate a session daemon UUID");
+ abort();
+ }
+}
This page took
0.023389 seconds
and
4
git commands to generate.