Fix: blktrace instrumentation for v3.2.58+ stable branch
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 3 May 2014 19:07:42 +0000 (15:07 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Sat, 3 May 2014 19:07:42 +0000 (15:07 -0400)
Starting with Linux kernel v3.2.58 within the v3.2 Linux stable branch:

commit 5b85afa68e4f56c27f1d5c6f49e5257bce6448e6
Author: Roman Pen <r.peniaev@gmail.com>
Date:   Tue Mar 4 23:13:10 2014 +0900

    blktrace: fix accounting of partially completed requests

    commit af5040da01ef980670b3741b3e10733ee3e33566 upstream.

The module API for a block layer tracepoint changes. Fix the associated
build failure.

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
instrumentation/events/lttng-module/block.h
probes/lttng-probe-block.c

index 2af4fb326ba911e2d686a932069d0cd54e68fdc8..5ea557d9a9b722ff96e893d3be440e65dfda612c 100644 (file)
@@ -221,7 +221,8 @@ 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,15,0)      \
+       || LTTNG_KERNEL_RANGE(3,2,58, 3,3,0))
 
 /**
  * block_rq_complete - block IO operation completed by device driver
index 27f2142a0a0bea0acb432b4b46ac619a75621860..d363d4de8c600dadbcd01370b3d1fa4f1fb076da 100644 (file)
@@ -23,6 +23,7 @@
 #include <linux/module.h>
 #include <linux/blktrace_api.h>
 #include "../lttng-tracer.h"
+#include "../lttng-kernel-version.h"
 
 /*
  * Create the tracepoint static inlines from the kernel to validate that our
This page took 0.026259 seconds and 4 git commands to generate.