probes: blktrace: Check if config options are set
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 15 Jul 2011 16:28:42 +0000 (12:28 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Fri, 15 Jul 2011 16:28:42 +0000 (12:28 -0400)
Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
probes/Makefile

index 7129e979e28fe8678123ffcc3285730c0c9c47a3..f4642d5b72d22b26cf89ada925c2ff18282b9929 100644 (file)
@@ -13,9 +13,14 @@ obj-m += lttng-probe-lttng.o
 obj-m += lttng-probe-sched.o
 obj-m += lttng-probe-kvm.o
 obj-m += lttng-probe-irq.o
-obj-m += lttng-probe-block.o
 obj-m += lttng-probe-syscalls.o
 
+ifneq ($(CONFIG_BLOCK),)
+ifneq ($(CONFIG_EVENT_TRACING),)       # need blk_cmd_buf_len
+obj-m += lttng-probe-block.o
+endif
+endif
+
 ifneq ($(CONFIG_KPROBES),)
 obj-m += lttng-kprobes.o
 endif
This page took 0.025381 seconds and 4 git commands to generate.