X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=include%2Finstrumentation%2Fevents%2Fmodule.h;h=b1686bf195a988158b0a89065f7e2b7236108544;hb=e7126a82652be3660371ef411aad36022b1c83c7;hp=3de0f0e6c53bac35cf7405a6d771bb16eaf37529;hpb=5f1c794bcce39ee8c401c735cf7e1907c0bc20fe;p=lttng-modules.git diff --git a/include/instrumentation/events/module.h b/include/instrumentation/events/module.h index 3de0f0e6..b1686bf1 100644 --- a/include/instrumentation/events/module.h +++ b/include/instrumentation/events/module.h @@ -16,7 +16,7 @@ #define LTTNG_TRACE_MODULE_H #include -#include +#include #include #ifdef CONFIG_MODULES @@ -41,22 +41,14 @@ LTTNG_TRACEPOINT_ENUM(taint, ctf_enum_value("WARN", 1UL << TAINT_WARN) ctf_enum_value("CRAP", 1UL << TAINT_CRAP) ctf_enum_value("FIRMWARE_WORKAROUND", 1UL << TAINT_FIRMWARE_WORKAROUND) -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,2,0)) ctf_enum_value("OOT_MODULE", 1UL << TAINT_OOT_MODULE) -#endif -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0)) ctf_enum_value("UNSIGNED_MODULE", 1UL << TAINT_UNSIGNED_MODULE) -#endif -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0)) ctf_enum_value("SOFTLOCKUP", 1UL << TAINT_SOFTLOCKUP) -#endif -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,0,0)) ctf_enum_value("LIVEPATCH", 1UL << TAINT_LIVEPATCH) -#endif -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,15,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,15,0)) ctf_enum_value("AUX", 1UL << TAINT_AUX) #endif -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,17,0)) +#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,17,0)) ctf_enum_value("RANDSTRUCT", 1UL << TAINT_RANDSTRUCT) #endif ) @@ -96,11 +88,7 @@ LTTNG_TRACEPOINT_EVENT_CLASS(module_refcnt, TP_FIELDS( ctf_integer_hex(unsigned long, ip, ip) -#if (LINUX_VERSION_CODE >= 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)) -#endif ctf_string(name, mod->name) ) )