Drop support for kernels < 4.4 from module instrumentation
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 21 Nov 2022 17:00:15 +0000 (12:00 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Wed, 23 Nov 2022 20:06:41 +0000 (15:06 -0500)
Change-Id: Idcd0cd197272d2efbd511c05afff6240b72740ae
Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
include/instrumentation/events/module.h

index 06b20c64ae1291bddb7b92ca7156da360961e838..b1686bf195a988158b0a89065f7e2b7236108544 100644 (file)
@@ -31,11 +31,7 @@ LTTNG_TRACEPOINT_ENUM(taint,
        TP_ENUM_VALUES(
                ctf_enum_value("PROPRIETARY_MODULE", 1UL << TAINT_PROPRIETARY_MODULE)
                ctf_enum_value("FORCED_MODULE", 1UL << TAINT_FORCED_MODULE)
-#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,15,0))
                ctf_enum_value("CPU_OUT_OF_SPEC", 1UL << TAINT_CPU_OUT_OF_SPEC)
-#else
-               ctf_enum_value("UNSAFE_SMP", 1UL << TAINT_UNSAFE_SMP)
-#endif
                ctf_enum_value("FORCED_RMMOD", 1UL << TAINT_FORCED_RMMOD)
                ctf_enum_value("MACHINE_CHECK", 1UL << TAINT_MACHINE_CHECK)
                ctf_enum_value("BAD_PAGE", 1UL << TAINT_BAD_PAGE)
@@ -45,18 +41,10 @@ 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 (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,2,0))
                ctf_enum_value("OOT_MODULE", 1UL << TAINT_OOT_MODULE)
-#endif
-#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,15,0))
                ctf_enum_value("UNSIGNED_MODULE", 1UL << TAINT_UNSIGNED_MODULE)
-#endif
-#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(3,17,0))
                ctf_enum_value("SOFTLOCKUP", 1UL << TAINT_SOFTLOCKUP)
-#endif
-#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,0,0))
                ctf_enum_value("LIVEPATCH", 1UL << TAINT_LIVEPATCH)
-#endif
 #if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,15,0))
                ctf_enum_value("AUX", 1UL << TAINT_AUX)
 #endif
@@ -100,11 +88,7 @@ LTTNG_TRACEPOINT_EVENT_CLASS(module_refcnt,
 
        TP_FIELDS(
                ctf_integer_hex(unsigned long, ip, ip)
-#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))
-#endif
                ctf_string(name, mod->name)
        )
 )
This page took 0.026287 seconds and 4 git commands to generate.