Add auto start UST trace support
[lttng-tools.git] / lttng-sessiond / main.c
index f13571ab37159fc00d9aac331444eab9cb68db42..40ad9add84747538fe860662f95e5bf19f5a9a18 100644 (file)
@@ -1718,6 +1718,7 @@ static int create_ust_session(struct ltt_session *session,
                /* No ustctl for the global UST domain */
                break;
        default:
+               ERR("Unknown UST domain on create session %d", domain->type);
                goto error;
        }
        session->ust_session = lus;
@@ -2433,6 +2434,9 @@ static int cmd_start_trace(struct ltt_session *session)
                kernel_wait_quiescent(kernel_tracer_fd);
        }
 
+       /* Flag session that trace should start automatically */
+       usess->start_trace = 1;
+
        ret = ust_app_start_trace(usess);
        if (ret < 0) {
                ret = LTTCOMM_UST_START_FAIL;
This page took 0.023626 seconds and 4 git commands to generate.