#include <linux/sched.h>
#include <linux/slab.h>
#include <linux/jiffies.h>
-#include <linux/uuid.h>
+#include "wrapper/uuid.h"
#include "wrapper/vmalloc.h" /* for wrapper_vmalloc_sync_all() */
#include "ltt-events.h"
#include "ltt-tracer.h"
*/
#include <linux/list.h>
-#include <linux/uuid.h>
#include <linux/kprobes.h>
+#include "wrapper/uuid.h"
#include "ltt-debugfs-abi.h"
#undef is_signed_type
--- /dev/null
+#ifndef _LTT_WRAPPER_UUID_H
+#define _LTT_WRAPPER_UUID_H
+
+/*
+ * Copyright (C) 2011 Mathieu Desnoyers (mathieu.desnoyers@efficios.com)
+ *
+ * Dual LGPL v2.1/GPL v2 license.
+ */
+
+#include <linux/version.h>
+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35))
+#include <linux/uuid.h>
+#else
+
+#include <linux/random.h>
+
+typedef struct {
+ __u8 b[16];
+} uuid_le;
+
+static inline
+void uuid_le_gen(uuid_le *u)
+{
+ genarate_random_uuid(u);
+}
+
+#endif
+#endif /* _LTT_WRAPPER_UUID_H */