X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=instrumentation%2Fevents%2Flttng-module%2Fmodule.h;h=d4c8a39d23164069bab748aee469d6cb1b97dc80;hb=2d0428212cbfa3f8428feee160b095f48c2ac974;hp=89b1e7980d7d0a928d4753303d26eb6381328003;hpb=e0f2366419fc59700e575bab82a41255c51de2dc;p=lttng-modules.git diff --git a/instrumentation/events/lttng-module/module.h b/instrumentation/events/lttng-module/module.h index 89b1e798..d4c8a39d 100644 --- a/instrumentation/events/lttng-module/module.h +++ b/instrumentation/events/lttng-module/module.h @@ -16,7 +16,7 @@ #define LTTNG_TRACE_MODULE_H #include -#include +#include #ifdef CONFIG_MODULES @@ -60,7 +60,7 @@ LTTNG_TRACEPOINT_EVENT_CLASS(module_refcnt, TP_FIELDS( ctf_integer(unsigned long, ip, ip) -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,19,0)) ctf_integer(int, refcnt, atomic_read(&mod->refcnt)) #else ctf_integer(int, refcnt, __this_cpu_read(mod->refptr->incs) + __this_cpu_read(mod->refptr->decs))