Introduce lttng_guid_gen wrapper for kernels >= 5.7.0
[lttng-modules.git] / lttng-events.c
index a1c8445a20bbf9e86a22f408af109cb0421c04a4..8e8e65a576fc4434dcfb64d89283826d9a9ffdbc 100644 (file)
@@ -27,9 +27,9 @@
 #include <linux/jhash.h>
 #include <linux/uaccess.h>
 #include <linux/vmalloc.h>
-#include <linux/uuid.h>
 #include <linux/dmi.h>
 
+#include <wrapper/uuid.h>
 #include <wrapper/vmalloc.h>   /* for wrapper_vmalloc_sync_all() */
 #include <wrapper/random.h>
 #include <wrapper/tracepoint.h>
@@ -130,7 +130,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.024987 seconds and 4 git commands to generate.