Merge branch 'master' of git://git.lttng.org/lttng-tools
[lttng-tools.git] / tests / lttng / ust_global_event_basic.c
index c56c39bd279cb0c03e0e5e252fa9a0129ec69561..05c1a443e00cdf51002f9068cd82397c41df6111 100644 (file)
@@ -29,6 +29,8 @@
 
 #include "../utils.h"
 
+int opt_quiet = 0;
+
 int main(int argc, char **argv)
 {
        struct lttng_handle *handle = NULL;
@@ -159,6 +161,22 @@ int main(int argc, char **argv)
        }
        PRINT_OK();
 
+       printf("Restart tracing: ");
+       if ((ret = lttng_start_tracing(session_name)) < 0) {
+               printf("error starting tracing: %s\n", lttng_strerror(ret));
+               goto start_fail;
+       }
+       PRINT_OK();
+
+       sleep(2);
+
+       printf("Stop tracing: ");
+       if ((ret = lttng_stop_tracing(session_name)) < 0) {
+               printf("error stopping tracing: %s\n", lttng_strerror(ret));
+               goto stop_fail;
+       }
+       PRINT_OK();
+
        printf("Destroy tracing session: ");
        if ((ret = lttng_destroy_session(session_name)) < 0) {
                printf("error destroying session: %s\n", lttng_strerror(ret));
This page took 0.024079 seconds and 4 git commands to generate.