flt.lttng-utils.debug-info: Don't copy trace class UUID to output trace class
authorFrancis Deslauriers <francis.deslauriers@efficios.com>
Wed, 17 Apr 2019 20:07:46 +0000 (16:07 -0400)
committerJérémie Galarneau <jeremie.galarneau@efficios.com>
Fri, 3 May 2019 22:19:39 +0000 (18:19 -0400)
A `flt.lttng-utils.debug-info` component creates an output trace class
that may be different that of the input trace class, so the UUID should
not be copied. In fact, we don't need a UUID at this point. the sink
component can decide to add one later.

Signed-off-by: Francis Deslauriers <francis.deslauriers@efficios.com>
plugins/lttng-utils/debug-info/trace-ir-metadata-copy.c

index 5655e62d172c3596eea030ec3fd416dd19bac43c..7e9b81e2c08d08a04bb8ef05692fafc32a16c4c2 100644 (file)
@@ -43,7 +43,6 @@ int copy_trace_class_content(const bt_trace_class *in_trace_class,
        int ret = 0;
        uint64_t i, env_field_count;
        const char *in_trace_class_name;
-       bt_uuid in_uuid;
 
        BT_LOGD("Copying content of trace class: in-tc-addr=%p, out-tc-addr=%p",
                        in_trace_class, out_trace_class);
@@ -57,10 +56,10 @@ int copy_trace_class_content(const bt_trace_class *in_trace_class,
                bt_trace_class_set_name(out_trace_class, in_trace_class_name);
        }
 
-       in_uuid = bt_trace_class_get_uuid(in_trace_class);
-       if (in_uuid) {
-               bt_trace_class_set_uuid(out_trace_class, in_uuid);
-       }
+       /*
+        * Do not copy the trace class UUID as it may be modified and should no
+        * longer have the same UUID.
+        */
 
        /*
         * Go over all the entries in the environment section of the trace class
This page took 0.024826 seconds and 4 git commands to generate.