Introduce lttng_guid_gen wrapper for kernels >= 5.7.0
[lttng-modules.git] / lttng-events.c
index 067bcc53f61b0d38b79eb04f3e8b8a4f9083f065..6233c75ce15b954a72c96ba49647e55549525fd1 100644 (file)
@@ -29,6 +29,7 @@
 #include <linux/vmalloc.h>
 #include <linux/uuid.h>
 
+#include <wrapper/uuid.h>
 #include <wrapper/vmalloc.h>   /* for wrapper_vmalloc_sync_all() */
 #include <wrapper/random.h>
 #include <wrapper/tracepoint.h>
@@ -130,7 +131,7 @@ struct lttng_session *lttng_session_create(void)
                goto err;
        INIT_LIST_HEAD(&session->chan);
        INIT_LIST_HEAD(&session->events);
-       uuid_le_gen(&session->uuid);
+       lttng_guid_gen(&session->uuid);
 
        metadata_cache = kzalloc(sizeof(struct lttng_metadata_cache),
                        GFP_KERNEL);
This page took 0.022835 seconds and 4 git commands to generate.