From 2d3767da8b85d8bc7ab67bd2da6a1f34c34e070b Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Fri, 4 Nov 2011 16:41:50 -0400 Subject: [PATCH] Disable block layer tracing support for kernels < 2.6.38 Signed-off-by: Mathieu Desnoyers --- probes/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.34.1