X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=plugins%2Flttng-utils%2Fdebug-info%2Ftrace-ir-metadata-copy.c;h=7e9b81e2c08d08a04bb8ef05692fafc32a16c4c2;hb=376b005834e4a2b30177efa720c620cca8e455bd;hp=5655e62d172c3596eea030ec3fd416dd19bac43c;hpb=4f1568cb340b663eb5299f48aa7afcbb0ea68ef1;p=deliverable%2Fbabeltrace.git diff --git a/plugins/lttng-utils/debug-info/trace-ir-metadata-copy.c b/plugins/lttng-utils/debug-info/trace-ir-metadata-copy.c index 5655e62d1..7e9b81e2c 100644 --- a/plugins/lttng-utils/debug-info/trace-ir-metadata-copy.c +++ b/plugins/lttng-utils/debug-info/trace-ir-metadata-copy.c @@ -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