UST support: add UST control commands
[lttng-tools.git] / ltt-sessiond / trace-ust.c
index cf1642a6e9163a75f3ce9c4c7c478476304486ec..c2978894ede66ff5ff6b80c764b8ebd54422a7aa 100644 (file)
@@ -189,6 +189,7 @@ struct ltt_ust_channel *trace_ust_create_channel(struct lttng_channel *chan,
                perror("asprintf ust create channel");
                goto error;
        }
+       CDS_INIT_LIST_HEAD(&luc->stream_list.head);
 
        return luc;
 
@@ -270,7 +271,7 @@ struct ltt_ust_metadata *trace_ust_create_metadata(char *path)
 
        lum->handle = -1;
        /* Set metadata trace path */
-       ret = asprintf(&lum->trace_path, "%s/metadata", path);
+       ret = asprintf(&lum->pathname, "%s/metadata", path);
        if (ret < 0) {
                perror("asprintf ust metadata");
                goto error;
@@ -321,8 +322,7 @@ void trace_ust_destroy_metadata(struct ltt_ust_metadata *metadata)
        DBG("[trace] Destroy ust metadata %d", metadata->handle);
 
        /* Free attributes */
-       free(metadata->trace_path);
-
+       free(metadata->pathname);
        free(metadata);
 }
 
This page took 0.023017 seconds and 4 git commands to generate.