Rename liblttngctl.h to lttng.h
[lttng-tools.git] / liblttngctl / liblttngctl.c
index 7d020daad2a9d83ca3a72d6dffd089b3e86189c3..76bdf5ffde2ff29b43940f3226f51fc8d5a10329 100644 (file)
@@ -24,7 +24,7 @@
 #include <string.h>
 #include <unistd.h>
 
-#include <lttng/liblttngctl.h>
+#include <lttng/lttng.h>
 
 #include "liblttsessiondcomm.h"
 #include "lttngerr.h"
@@ -182,6 +182,21 @@ int lttng_ust_start_trace(pid_t pid)
        return ret;
 }
 
+/*
+ *  lttng_ust_stop_trace
+ *
+ *  Request a trace stop for pid.
+ */
+int lttng_ust_stop_trace(pid_t pid)
+{
+       int ret;
+
+       lsm.pid = pid;
+       ret = ask_sessiond(UST_STOP_TRACE, NULL);
+
+       return ret;
+}
+
 /*
  *  lttng_ust_create_trace
  *
This page took 0.022986 seconds and 4 git commands to generate.