statedump: fix include circular dep
[lttng-modules.git] / probes / Makefile
index 8b02d5f5b5eaa3adcf43d657bfef940627ed301c..ff6b9291f00eb377f4df2e56bc73561621e42020 100644 (file)
@@ -13,9 +13,7 @@ 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
+obj-m += lttng-probe-statedump.o
 
 ifneq ($(CONFIG_KVM),)
 obj-m += lttng-probe-kvm.o
@@ -23,7 +21,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.023212 seconds and 4 git commands to generate.