X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=instrumentation%2Fevents%2Flttng-module%2Fmodule.h;h=52f8091288ac088f6e4b69bee65f715c9dfdd0c5;hb=360d3efee55154a55c18be32175bee608dcb21df;hp=f7b6056f1eec680dfa1ab968ce4eede09ee4e142;hpb=c8d38a68e21703af9b2287120cab1a52d24db9f7;p=lttng-modules.git diff --git a/instrumentation/events/lttng-module/module.h b/instrumentation/events/lttng-module/module.h index f7b6056f..52f80912 100644 --- a/instrumentation/events/lttng-module/module.h +++ b/instrumentation/events/lttng-module/module.h @@ -15,7 +15,7 @@ #define LTTNG_TRACE_MODULE_H #include -#include +#include #ifdef CONFIG_MODULES @@ -53,7 +53,7 @@ LTTNG_TRACEPOINT_EVENT(module_free, LTTNG_TRACEPOINT_EVENT_CLASS(module_refcnt, -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(2,6,35)) TP_PROTO(struct module *mod, unsigned long ip), TP_ARGS(mod, ip), @@ -65,9 +65,9 @@ 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)) -#elif (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)) +#elif (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(2,6,35)) ctf_integer(int, refcnt, __this_cpu_read(mod->refptr->incs) + __this_cpu_read(mod->refptr->decs)) #else ctf_integer(int, refcnt, refcnt) @@ -78,7 +78,7 @@ LTTNG_TRACEPOINT_EVENT_CLASS(module_refcnt, LTTNG_TRACEPOINT_EVENT_INSTANCE(module_refcnt, module_get, -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(2,6,35)) TP_PROTO(struct module *mod, unsigned long ip), TP_ARGS(mod, ip) @@ -91,7 +91,7 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE(module_refcnt, module_get, LTTNG_TRACEPOINT_EVENT_INSTANCE(module_refcnt, module_put, -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,35)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(2,6,35)) TP_PROTO(struct module *mod, unsigned long ip), TP_ARGS(mod, ip)