Now that we don't report the name of CTF traces in
`babeltrace.trace-info`, it is no longer useful to invent a name for
each trace. So remove the ctf_fs_trace::name field, and everything
related to it.
Note that the name set on the bt_trace (in set_trace_name) does not
depend on this field.
Change-Id: Ia1d3e917e7b1c553c0da0c8365cda9ec600c854b
Signed-off-by: Simon Marchi <simon.marchi@efficios.com>
Reviewed-on: https://review.lttng.org/c/babeltrace/+/1991
Tested-by: jenkins <jenkins@lttng.org>
Reviewed-by: Francis Deslauriers <francis.deslauriers@efficios.com>
g_string_free(ctf_fs_trace->path, TRUE);
}
g_string_free(ctf_fs_trace->path, TRUE);
}
- if (ctf_fs_trace->name) {
- g_string_free(ctf_fs_trace->name, TRUE);
- }
-
if (ctf_fs_trace->metadata) {
ctf_fs_metadata_fini(ctf_fs_trace->metadata);
g_free(ctf_fs_trace->metadata);
if (ctf_fs_trace->metadata) {
ctf_fs_metadata_fini(ctf_fs_trace->metadata);
g_free(ctf_fs_trace->metadata);
- ctf_fs_trace->name = g_string_new(name);
- if (!ctf_fs_trace->name) {
- goto error;
- }
-
ctf_fs_trace->metadata = g_new0(struct ctf_fs_metadata, 1);
if (!ctf_fs_trace->metadata) {
goto error;
ctf_fs_trace->metadata = g_new0(struct ctf_fs_metadata, 1);
if (!ctf_fs_trace->metadata) {
goto error;
struct ctf_fs_trace *winner;
guint i;
int ret = 0;
struct ctf_fs_trace *winner;
guint i;
int ret = 0;
- char uuid_str[BT_UUID_STR_LEN + 1];
BT_ASSERT(num_traces >= 2);
BT_ASSERT(num_traces >= 2);
- /* Use the string representation of the UUID as the trace name. */
- bt_uuid_to_str(winner->metadata->tc->uuid, uuid_str);
- g_string_printf(winner->name, "%s", uuid_str);
-
/* Owned by this */
GString *path;
/* Owned by this */
GString *path;
- /* Owned by this */
- GString *name;
-
/* Next automatic stream ID when not provided by packet header */
uint64_t next_stream_id;
};
/* Next automatic stream ID when not provided by packet header */
uint64_t next_stream_id;
};