Add listing kernel event support
[lttng-tools.git] / liblttngctl / liblttngctl.c
index 31edc982ea8ca07f57f5b2a39ab3cc31bc6e5965..d8230c618170a15219a96e9e5776d437d17a17af 100644 (file)
@@ -290,6 +290,19 @@ int lttng_kernel_create_stream(void)
        return ask_sessiond(KERNEL_CREATE_STREAM, NULL);
 }
 
+/*
+ *  lttng_kernel_list_events
+ *
+ *  List all available events in the kernel.
+ *
+ *  Return the size (bytes) of the list and set the event_list array.
+ *  On error, return negative value.
+ */
+int lttng_kernel_list_events(char **event_list)
+{
+       return ask_sessiond(KERNEL_LIST_EVENTS, (void **) event_list);
+}
+
 /*
  *  lttng_kernel_start_tracing
  *
This page took 0.02288 seconds and 4 git commands to generate.