Fix: kvm x86 probes side-effect
authorMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 18 Jul 2013 01:31:24 +0000 (21:31 -0400)
committerMathieu Desnoyers <mathieu.desnoyers@efficios.com>
Thu, 18 Jul 2013 01:31:24 +0000 (21:31 -0400)
ccflags-y += -I$(kvm_path)

was causing the lttng-ftrace probe to misbehave.

Fixes #591

Signed-off-by: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
probes/Makefile

index 13bf2084451acf9ba3ed4c1738fd786e54e9082c..63ca7ba9828ff201e91d028b274886d943ac387f 100644 (file)
@@ -18,22 +18,18 @@ obj-m += lttng-probe-power.o
 obj-m += lttng-probe-statedump.o
 
 ifneq ($(CONFIG_KVM),)
-kvm = lttng-probe-kvm.o
+obj-m += lttng-probe-kvm.o
 ifneq ($(CONFIG_X86),)
 kvm_dep = $(srctree)/virt/kvm/iodev.h
-kvm_x86 = lttng-probe-kvm-x86.o
-kvm_x86_mmu = lttng-probe-kvm-x86-mmu.o
-kvm_path = $(srctree)/virt/kvm
-ifeq ($(wildcard $(kvm_dep)),)
-$(warning Files $(kvm_dep) not found. Probe "kvm" x86-specific is disabled. Use full kernel source tree to enable it.)
-kvm_x86 =
-kvm_path =
-endif
-obj-m += $(kvm_x86)
-obj-m += $(kvm_x86_mmu)
-ccflags-y += -I$(kvm_path)
-endif
-obj-m += $(kvm)
+ifneq ($(wildcard $(kvm_dep)),)
+CFLAGS_lttng-probe-kvm-x86.o += -I$(srctree)/virt/kvm
+CFLAGS_lttng-probe-kvm-x86-mmu.o += -I$(srctree)/virt/kvm
+obj-m += lttng-probe-kvm-x86.o
+obj-m += lttng-probe-kvm-x86-mmu.o
+else
+$(warning File $(kvm_dep) not found. Probe "kvm" x86-specific is disabled. Use full kernel source tree to enable it.)
+endif
+endif
 endif
 
 obj-m +=  $(shell \
This page took 0.026604 seconds and 4 git commands to generate.