From: Mathieu Desnoyers Date: Fri, 4 Nov 2011 20:41:50 +0000 (-0400) Subject: Disable block layer tracing support for kernels < 2.6.38 X-Git-Tag: v2.0-pre11~14 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=2d3767da8b85d8bc7ab67bd2da6a1f34c34e070b;p=lttng-modules.git Disable block layer tracing support for kernels < 2.6.38 Signed-off-by: Mathieu Desnoyers --- diff --git a/probes/Makefile b/probes/Makefile index 794a0699..2b61ce5f 100644 --- a/probes/Makefile +++ b/probes/Makefile @@ -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