X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=probes%2FMakefile;h=63ca7ba9828ff201e91d028b274886d943ac387f;hb=a0383def517e3aebbbcebae61fe2bcfb50d31e71;hp=225803c39747d2790723af3fa7b37092361976db;hpb=662ed1665428b38ee00d4be5751581108bf35390;p=lttng-modules.git diff --git a/probes/Makefile b/probes/Makefile index 225803c3..63ca7ba9 100644 --- a/probes/Makefile +++ b/probes/Makefile @@ -19,6 +19,17 @@ obj-m += lttng-probe-statedump.o ifneq ($(CONFIG_KVM),) obj-m += lttng-probe-kvm.o +ifneq ($(CONFIG_X86),) +kvm_dep = $(srctree)/virt/kvm/iodev.h +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 \