Fix: TAINT_UNSAFE_SMP renamed to TAINT_CPU_OUT_OF_SPEC in v3.15
authorMichael Jeanson <mjeanson@efficios.com>
Mon, 20 Jul 2020 14:48:02 +0000 (10:48 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Mon, 20 Jul 2020 16:17:40 +0000 (12:17 -0400)
See upstream commit:

  commit 8c90487cdc64847b4fdd812ab3047f426fec4d13
  Author: Dave Jones <davej@redhat.com>
  Date:   Wed Feb 26 10:49:49 2014 -0500

    Rename TAINT_UNSAFE_SMP to TAINT_CPU_OUT_OF_SPEC

    Rename TAINT_UNSAFE_SMP to TAINT_CPU_OUT_OF_SPEC, so we can repurpose
    the flag to encompass a wider range of pushing the CPU beyond its
    warrany.

Signed-off-by: Michael Jeanson <mjeanson@efficios.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Change-Id: I3e91df01bfbfaa6fab4e3904e59317022a9ec0f8

include/instrumentation/events/module.h

index 3de0f0e6c53bac35cf7405a6d771bb16eaf37529..8ef31182f305741f53762bb71f312add76746c0f 100644 (file)
@@ -31,7 +31,11 @@ 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 (LINUX_VERSION_CODE >= 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)
This page took 0.027265 seconds and 4 git commands to generate.