Fix: Update kmem event for recent Ubuntu kernel
[lttng-modules.git] / instrumentation / events / lttng-module / kmem.h
index bff5cc6b22c2eddc9ec5c41a5d975f82c3c43b53..049289eae3d695111c0ca2212040473569ed6a08 100644 (file)
@@ -286,9 +286,11 @@ DEFINE_EVENT_PRINT(mm_page, mm_page_pcpu_drain,
                __entry->order, __entry->migratetype)
 )
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,2))
+#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,19,2)      \
+       || LTTNG_KERNEL_RANGE(3,14,36, 3,15,0)          \
+       || LTTNG_UBUNTU_KERNEL_RANGE(3,13,0,50, 3,14,0,0))
 
-LTTNG_TRACEPOINT_EVENT(mm_page_alloc_extfrag,
+TRACE_EVENT(mm_page_alloc_extfrag,
 
        TP_PROTO(struct page *page,
                int alloc_order, int fallback_order,
@@ -331,7 +333,7 @@ LTTNG_TRACEPOINT_EVENT(mm_page_alloc_extfrag,
 
 #elif (LINUX_VERSION_CODE >= KERNEL_VERSION(3,12,30))
 
-LTTNG_TRACEPOINT_EVENT(mm_page_alloc_extfrag,
+TRACE_EVENT(mm_page_alloc_extfrag,
 
        TP_PROTO(struct page *page,
                int alloc_order, int fallback_order,
This page took 0.02275 seconds and 4 git commands to generate.