Disable block layer tracing support for kernels < 2.6.38
[lttng-modules.git] / probes / Makefile
index 8b02d5f5b5eaa3adcf43d657bfef940627ed301c..2b61ce5fd17c1f0aab2538e10fcbc3190a93657d 100644 (file)
@@ -13,17 +13,16 @@ obj-m += lttng-probe-lttng.o
 obj-m += lttng-probe-sched.o
 obj-m += lttng-probe-irq.o
 
-ifneq ($(CONFIG_HAVE_SYSCALL_TRACEPOINTS),)
-obj-m += lttng-probe-syscalls.o
-endif
-
 ifneq ($(CONFIG_KVM),)
 obj-m += lttng-probe-kvm.o
 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.026241 seconds and 4 git commands to generate.