Add ust stop trace feature
[lttng-tools.git] / lttng / lttng.c
index e286917ed1effff58afaacb91c1f8bcb780d7de4..8a0d58faeaa8ac7ec7299a7a633d9ada73e8e513 100644 (file)
@@ -126,6 +126,15 @@ static int process_client_opt(void)
                MSG("Trace started successfully!");
        }
 
+       if (opt_stop_trace) {
+               DBG("Stop trace for pid %d", opt_stop_trace);
+               ret = lttng_ust_stop_trace(opt_stop_trace);
+               if (ret < 0) {
+                       goto end;
+               }
+               MSG("Trace stopped successfully!");
+       }
+
        return 0;
 
 end:
This page took 0.022574 seconds and 4 git commands to generate.