Propagate trace format to ltt_ust_session
authorJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Thu, 14 Apr 2022 20:02:34 +0000 (16:02 -0400)
committerJonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Fri, 19 Aug 2022 15:50:42 +0000 (11:50 -0400)
Signed-off-by: Jonathan Rajotte <jonathan.rajotte-julien@efficios.com>
Change-Id: I13cabd03667b86c99f607ef37d507395dac98129

src/bin/lttng-sessiond/client.cpp
src/bin/lttng-sessiond/trace-ust.hpp

index a153228fcb5d0513376477a71b0eeed0945e07ec..3c4ea1b772110c931b38459f15023c2dbb62f7c0 100644 (file)
@@ -535,6 +535,8 @@ static int create_ust_session(struct ltt_session *session,
                goto error;
        }
 
+       lus->trace_format = session->trace_format;
+
        return LTTNG_OK;
 
 error:
index fcb16d330b6e0be76459af70a0725a1e732ec7ba..63aa65c2c9f9e4ff42e2dab145aa5ab851bd7fbe 100644 (file)
@@ -16,6 +16,7 @@
 #include <common/hashtable/hashtable.hpp>
 #include <common/tracker.hpp>
 #include <lttng/lttng.h>
+#include <lttng/trace-format-descriptor-internal.hpp>
 
 #include "consumer.hpp"
 #include "lttng-ust-ctl.hpp"
@@ -144,6 +145,8 @@ struct ltt_ust_session {
        struct process_attr_tracker *tracker_vpid{};
        struct process_attr_tracker *tracker_vuid{};
        struct process_attr_tracker *tracker_vgid{};
+
+       lttng::trace_format_descriptor::sptr trace_format;
 };
 
 /*
This page took 0.027319 seconds and 5 git commands to generate.