From: Mathieu Desnoyers Date: Thu, 18 Jul 2013 01:31:24 +0000 (-0400) Subject: Fix: kvm x86 probes side-effect X-Git-Tag: v2.3.0-rc1~1 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=0862130a2245c3bab8836177e80ea163236d5058;p=lttng-modules.git Fix: kvm x86 probes side-effect ccflags-y += -I$(kvm_path) was causing the lttng-ftrace probe to misbehave. Fixes #591 Signed-off-by: Mathieu Desnoyers --- diff --git a/probes/Makefile b/probes/Makefile index 13bf2084..63ca7ba9 100644 --- a/probes/Makefile +++ b/probes/Makefile @@ -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 \