X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=wrapper%2Ftrace-clock.h;h=3e8780da167ffa4b3c832eea7e8756c647091c29;hb=5a561ac39cd77ecda3fbdb2bfaafac56b174225c;hp=efb49f4c2ed57dde712b74d3855e4e2e903f700c;hpb=5a2f5e92e422d87a28581ba97e6b1789ff743bc6;p=lttng-modules.git diff --git a/wrapper/trace-clock.h b/wrapper/trace-clock.h index efb49f4c..3e8780da 100644 --- a/wrapper/trace-clock.h +++ b/wrapper/trace-clock.h @@ -40,7 +40,7 @@ #include #include -#if ((LTTNG_KERNEL_RANGE(3,10,0, 3,10,14) && !LTTNG_RHEL_KERNEL_RANGE(3,10,0,7,0, 3,10,14,0,0)) \ +#if ((LTTNG_KERNEL_RANGE(3,10,0, 3,10,14) && !LTTNG_RHEL_KERNEL_RANGE(3,10,0,123,0,0, 3,10,14,0,0,0)) \ || LTTNG_KERNEL_RANGE(3,11,0, 3,11,3)) #error "Linux kernels 3.10 and 3.11 introduce a deadlock in the timekeeping subsystem. Fixed by commit 7bd36014460f793c19e7d6c94dab67b0afcfcb7f \"timekeeping: Fix HRTICK related deadlock from ntp lock changes\" in Linux." #endif @@ -175,13 +175,13 @@ static inline const char *trace_clock_description_monotonic(void) #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0)) static inline int get_trace_clock(void) { - printk(KERN_WARNING "LTTng: Using mainline kernel monotonic fast clock, which is NMI-safe.\n"); + printk_once(KERN_WARNING "LTTng: Using mainline kernel monotonic fast clock, which is NMI-safe.\n"); return 0; } #else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0)) */ static inline int get_trace_clock(void) { - printk(KERN_WARNING "LTTng: Using mainline kernel monotonic clock. NMIs will not be traced.\n"); + printk_once(KERN_WARNING "LTTng: Using mainline kernel monotonic clock. NMIs will not be traced.\n"); return 0; } #endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0)) */