Add UST test for n events using validation
[lttng-tools.git] / tests / lttng / kernel_event_basic.c
index d45b5e4f98cacc3abbfe2c8a97dcc2d44a06ba28..fb1cf42b0f4cc524d4dfcb777abdc085d37f41d1 100644 (file)
@@ -40,7 +40,7 @@ int main(int argc, char **argv)
 
     int ret = 0;
 
-       char *session_name = "kernel_event";
+       char *session_name = "kernel_event_basic";
 
     dom.type = LTTNG_DOMAIN_KERNEL;
 
@@ -144,7 +144,7 @@ int main(int argc, char **argv)
        PRINT_OK();
 
        printf("Start tracing: ");
-       if ((ret = lttng_start_tracing(handle)) < 0) {
+       if ((ret = lttng_start_tracing(session_name)) < 0) {
                printf("error starting tracing: %s\n", lttng_strerror(ret));
                goto start_fail;
        }
@@ -153,7 +153,7 @@ int main(int argc, char **argv)
        sleep(2);
 
        printf("Stop tracing: ");
-       if ((ret = lttng_stop_tracing(handle)) < 0) {
+       if ((ret = lttng_stop_tracing(session_name)) < 0) {
                printf("error stopping tracing: %s\n", lttng_strerror(ret));
                goto stop_fail;
        }
This page took 0.034053 seconds and 5 git commands to generate.