Add ust create trace feature
[lttng-tools.git] / lttng / lttng.c
index 40cf52bc6a3b02059a1ea8635c412737f8a5f71f..3878fb8367614654d1e837951c121024803e8366 100644 (file)
@@ -97,6 +97,15 @@ static int process_client_opt(void)
                lttng_set_current_session_uuid(opt_session_uuid);
        }
 
+       if (opt_create_trace) {
+               DBG("Create trace for pid %d", opt_create_trace);
+               ret = lttng_ust_create_trace(opt_create_trace);
+               if (ret < 0) {
+                       goto end;
+               }
+               MSG("Trace created successfully!\nUse --start PID to start tracing");
+       }
+
        return 0;
 
 end:
This page took 0.031689 seconds and 4 git commands to generate.