From: Antoine Busque Date: Sat, 7 Jun 2014 16:27:21 +0000 (-0400) Subject: Fix: blktrace instrumentation for backported branches X-Git-Tag: v2.4.2~3 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6edef96ea00a04ae7e19a435a5fe693a23e705c2;p=lttng-modules.git Fix: blktrace instrumentation for backported branches The following commit from kernel 3.15 changing the API of a block layer tracepoint has been backported to multiple branches: commit af5040da01ef980670b3741b3e10733ee3e33566 Author: Roman Pen Date: Tue Mar 4 23:13:10 2014 +0900 blktrace: fix accounting of partially completed requests This patch fixes the resulting build failure by adding the proper version checks. The versions and corresponding commit SHA-1 hashes are as follow: 3.2.58 commit 5b85afa68e4f56c27f1d5c6f49e5257bce6448e6 3.4.91 commit 14eee5bd065d6aac0acbdc6092a25ba68c55b9c8 3.10.41 commit e9d933941569c107e0083c3c115467c699a57db2 3.12.21 commit 5104b40a981d26212ced149fbd43ad0b6b72910b 3.14.15 commit 0a8eda9c00ef37e8b40de77f2b0714317191bcf2 Signed-off-by: Antoine Busque Signed-off-by: Mathieu Desnoyers --- diff --git a/instrumentation/events/lttng-module/block.h b/instrumentation/events/lttng-module/block.h index e3e6b4ce..9d3de7d9 100644 --- a/instrumentation/events/lttng-module/block.h +++ b/instrumentation/events/lttng-module/block.h @@ -221,7 +221,10 @@ DEFINE_EVENT(block_rq_with_error, block_rq_requeue, TP_ARGS(q, rq) ) -#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,15,0) \ +#if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,14,5) \ + || LTTNG_KERNEL_RANGE(3,12,21, 3,13,0) \ + || LTTNG_KERNEL_RANGE(3,10,41, 3,11,0) \ + || LTTNG_KERNEL_RANGE(3,4,91, 3,5,1) \ || LTTNG_KERNEL_RANGE(3,2,58, 3,3,0)) /**