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>
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
#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