Introduce lttng_guid_gen wrapper for kernels >= 5.7.0
[lttng-modules.git] / lttng-events.c
index 831f0aef80051a2b537e3f7f56aa2c123e4d68a1..6233c75ce15b954a72c96ba49647e55549525fd1 100644 (file)
@@ -27,6 +27,7 @@
 #include <linux/jhash.h>
 #include <linux/uaccess.h>
 #include <linux/vmalloc.h>
+#include <linux/uuid.h>
 
 #include <wrapper/uuid.h>
 #include <wrapper/vmalloc.h>   /* for wrapper_vmalloc_sync_all() */
@@ -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.024408 seconds and 4 git commands to generate.