Fix: show warning for broken clock work-around
[lttng-modules.git] / wrapper / trace-clock.c
index 1b7a21767289d4f122a6e393bb37a7430c57026b..719c82518e9d9f6482199bd289b6771e5ab3681d 100644 (file)
@@ -27,3 +27,7 @@
 DEFINE_PER_CPU(local_t, lttng_last_tsc);
 EXPORT_PER_CPU_SYMBOL(lttng_last_tsc);
 #endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0)) */
+
+#ifdef LTTNG_CLOCK_NMI_SAFE_BROKEN
+#warning "Your kernel implements a bogus nmi-safe clock source. Falling back to the non-nmi-safe clock source, which discards events traced from NMI context. Upgrade your kernel to resolve this situation."
+#endif
This page took 0.022819 seconds and 4 git commands to generate.