Fix: disable x86 kvm instrumentation for kernels < 2.6.38
[lttng-modules.git] / lttng-kernel-version.h
index 8fad8b09c98b4b44b5e9fdacfbd6cc9548d00d20..ec8cee0b30bc2a710f0629e14ceb89265ac0593d 100644 (file)
  */
 
 #include <linux/version.h>
-#include <linux/vermagic.h>
+
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
+#include <generated/utsrelease.h>
+#else /* #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) */
+#include <linux/utsrelease.h>
+#endif /* #else #if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33)) */
 
 /*
  * This macro checks if the kernel version is between the two specified
This page took 0.02332 seconds and 4 git commands to generate.