X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=probes%2Flttng-probe-lock.c;h=b95e0c58a4b2ca68b7a1d75f1da5134b84e98052;hb=7c68b363332170e4db100327ecc9e09b8a79cf29;hp=16ac0e7c89c6b881c168d564ab94a5c5695a2ee4;hpb=83788d81815146024200cba5aa46c705a05d6b99;p=lttng-modules.git diff --git a/probes/lttng-probe-lock.c b/probes/lttng-probe-lock.c index 16ac0e7c..b95e0c58 100644 --- a/probes/lttng-probe-lock.c +++ b/probes/lttng-probe-lock.c @@ -22,12 +22,19 @@ */ #include +#include /* * 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 +#else +#include +#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 "); +MODULE_AUTHOR("Wade Farnsworth and Andrew Gabbasov "); MODULE_DESCRIPTION("LTTng lock probes");