Disable block layer tracing support for kernels < 2.6.38
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 4 Nov 2011 20:41:50 +0000 (16:41 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 4 Nov 2011 20:41:50 +0000 (16:41 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
probes/Makefile

index 794a06993a8e0efac2a8147b6c3bf0fd8c1119ac..2b61ce5fd17c1f0aab2538e10fcbc3190a93657d 100644 (file)
@@ -19,7 +19,10 @@ endif
 
 ifneq ($(CONFIG_BLOCK),)
 ifneq ($(CONFIG_EVENT_TRACING),)       # need blk_cmd_buf_len
-obj-m += lttng-probe-block.o
+obj-m +=  $(shell \
+       if [ $(VERSION) -ge 3 \
+               -o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 38 \) ] ; then \
+               echo "lttng-probe-block.o" ; fi;)
 endif
 endif
 
This page took 0.050507 seconds and 4 git commands to generate.