X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=src%2Flttng-events.c;h=9df03392d90856cf4236b2827c5051d063870756;hb=5a90857e90423e5849fafc875ff1eacc6f56d5ac;hp=472440e1770e4ca40000d5ed7c3dd9f219d60727;hpb=2a059b14c2cbbf828ebc2fc6db643cf81b51abed;p=lttng-modules.git diff --git a/src/lttng-events.c b/src/lttng-events.c index 472440e1..9df03392 100644 --- a/src/lttng-events.c +++ b/src/lttng-events.c @@ -46,7 +46,6 @@ #include #include #include -#include #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(5,16,0)) #include @@ -3688,20 +3687,12 @@ int64_t measure_clock_offset(void) uint64_t tcf = trace_clock_freq(); int64_t offset; unsigned long flags; -#ifdef LTTNG_KERNEL_HAS_TIMESPEC64 struct timespec64 rts = { 0, 0 }; -#else - struct timespec rts = { 0, 0 }; -#endif /* Disable interrupts to increase correlation precision. */ local_irq_save(flags); monotonic[0] = trace_clock_read64(); -#ifdef LTTNG_KERNEL_HAS_TIMESPEC64 ktime_get_real_ts64(&rts); -#else - getnstimeofday(&rts); -#endif monotonic[1] = trace_clock_read64(); local_irq_restore(flags); @@ -4165,9 +4156,6 @@ static int __init lttng_events_init(void) if (ret) return ret; ret = wrapper_get_pfnblock_flags_mask_init(); - if (ret) - return ret; - ret = wrapper_get_pageblock_flags_mask_init(); if (ret) return ret; ret = lttng_probes_init();