clock: read bootid as clock monotonic ID
[lttng-modules.git] / wrapper / trace-clock.h
index 1140b94bcd1de2ae292a5dc9c4f9ffd4653271aa..801e640eda894346554cb6fa2fa9e9324de6b256 100644 (file)
@@ -18,6 +18,7 @@
 #include <linux/ktime.h>
 #include <linux/time.h>
 #include <linux/hrtimer.h>
+#include "random.h"
 
 static inline u64 trace_clock_monotonic_wrapper(void)
 {
@@ -49,9 +50,9 @@ static inline u64 trace_clock_freq(void)
        return (u64) NSEC_PER_SEC;
 }
 
-static inline const char *trace_clock_uuid(void)
+static inline int trace_clock_uuid(char *uuid)
 {
-       return "CLOCK_MONOTONIC";
+       return wrapper_get_bootid(uuid);
 }
 
 static inline int get_trace_clock(void)
This page took 0.024424 seconds and 4 git commands to generate.