Fix: compaction instrumentation update for 3.14.x stable kernels
authorSimon Marchi <simon.marchi@polymtl.ca>
Sun, 7 Dec 2014 17:14:19 +0000 (12:14 -0500)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 11 Dec 2014 15:45:06 +0000 (10:45 -0500)
Conditional compilation introduced by lttng-modules commit

  0007344741ef65259bc52dea72259173dfbf96c0

needs to be applied to kernels 3.14.25 and up in the 3.14.x branch.

Signed-off-by: Simon Marchi <simon.marchi@polymtl.ca>
Reported-by: Bjørn Forsman <bjorn.forsman@gmail.com>
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/events/lttng-module/compaction.h

index ee23aa991b5205feb1b9895e5a0abe41013a7cdd..773a6ad5fcce1d7eba69866f9465b29c2dc0e747 100644 (file)
@@ -46,7 +46,8 @@ LTTNG_TRACEPOINT_EVENT_INSTANCE(mm_compaction_isolate_template, mm_compaction_is
        TP_ARGS(nr_scanned, nr_taken)
 )
 
-#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0))
+#if LTTNG_KERNEL_RANGE(3,14,25, 3,15,0) || \
+       (LINUX_VERSION_CODE >= KERNEL_VERSION(3,16,0))
 LTTNG_TRACEPOINT_EVENT(mm_compaction_migratepages,
 
        TP_PROTO(unsigned long nr_all,
This page took 0.02616 seconds and 4 git commands to generate.