X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=probes%2Flttng-probe-lock.c;h=4e59da851a69bb50dbc2f62d8331195dfd0975db;hb=071c76b533ed92a4107cd162826a08a18b9ff91c;hp=16ac0e7c89c6b881c168d564ab94a5c5695a2ee4;hpb=b283666ff19841a28b0448c6a867beb2f809f11a;p=lttng-modules.git diff --git a/probes/lttng-probe-lock.c b/probes/lttng-probe-lock.c index 16ac0e7c..4e59da85 100644 --- a/probes/lttng-probe-lock.c +++ b/probes/lttng-probe-lock.c @@ -22,22 +22,34 @@ */ #include +#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 /* * Create LTTng tracepoint probes. */ #define LTTNG_PACKAGE_BUILD #define CREATE_TRACE_POINTS -#define TRACE_INCLUDE_PATH ../instrumentation/events/lttng-module +#define TRACE_INCLUDE_PATH instrumentation/events/lttng-module -#include "../instrumentation/events/lttng-module/lock.h" +#include MODULE_LICENSE("GPL and additional rights"); -MODULE_AUTHOR("Wade Farnsworth "); +MODULE_AUTHOR("Wade Farnsworth and Andrew Gabbasov "); MODULE_DESCRIPTION("LTTng lock probes"); +MODULE_VERSION(__stringify(LTTNG_MODULES_MAJOR_VERSION) "." + __stringify(LTTNG_MODULES_MINOR_VERSION) "." + __stringify(LTTNG_MODULES_PATCHLEVEL_VERSION) + LTTNG_MODULES_EXTRAVERSION);