Add auto start UST trace support
[lttng-tools.git] / lttng-sessiond / trace-ust.c
index e912c53c7e0face7ca1720752f45dc36b709e777..a1715f2532e793b7793c6fafb3c9ae062d978898 100644 (file)
@@ -92,13 +92,14 @@ struct ltt_ust_session *trace_ust_create_session(char *path, unsigned int uid,
        /* Allocate a new ltt ust session */
        lus = malloc(sizeof(struct ltt_ust_session));
        if (lus == NULL) {
-               perror("create ust session malloc");
+               PERROR("create ust session malloc");
                goto error;
        }
 
        /* Init data structure */
        lus->consumer_fds_sent = 0;
        lus->uid = uid;
+       lus->start_trace = 0;
 
        /* Alloc UST domain hash tables */
        lus->domain_pid = hashtable_new(0);
@@ -250,7 +251,7 @@ struct ltt_ust_metadata *trace_ust_create_metadata(char *path)
        lum->attr.num_subbuf = DEFAULT_METADATA_SUBBUF_NUM;
        lum->attr.switch_timer_interval = DEFAULT_CHANNEL_SWITCH_TIMER;
        lum->attr.read_timer_interval = DEFAULT_CHANNEL_READ_TIMER;
-       lum->attr.output = DEFAULT_UST_CHANNEL_OUTPUT;
+       lum->attr.output = LTTNG_UST_MMAP;
 
        lum->handle = -1;
        /* Set metadata trace path */
This page took 0.023526 seconds and 4 git commands to generate.