Update kernel probes to more detailed match to kernel versions
[lttng-modules.git] / probes / lttng-probe-lock.c
index 16ac0e7c89c6b881c168d564ab94a5c5695a2ee4..b95e0c58a4b2ca68b7a1d75f1da5134b84e98052 100644 (file)
  */
 
 #include <linux/module.h>
+#include <linux/version.h>
 
 /*
  * Create the tracepoint static inlines from the kernel to validate that our
  * trace event macros match the kernel we run on.
  */
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,33))
 #include <trace/events/lock.h>
+#else
+#include <trace/events/lockdep.h>
+#endif
+
+#include "../wrapper/tracepoint.h"
 
 /*
  * Create LTTng tracepoint probes.
@@ -39,5 +46,5 @@
 #include "../instrumentation/events/lttng-module/lock.h"
 
 MODULE_LICENSE("GPL and additional rights");
-MODULE_AUTHOR("Wade Farnsworth <wade_farnsworth@mentor.com>");
+MODULE_AUTHOR("Wade Farnsworth <wade_farnsworth@mentor.com> and Andrew Gabbasov <andrew_gabbasov@mentor.com>");
 MODULE_DESCRIPTION("LTTng lock probes");
This page took 0.023544 seconds and 4 git commands to generate.