X-Git-Url: http://git.liburcu.org/?a=blobdiff_plain;f=probes%2FMakefile;h=9a2558b3312dadceb5b56eb362de0b3e7d6bbea1;hb=refs%2Fheads%2Fstable-2.7;hp=0314a5e2205679616f015a37dd7ec727fd3f6270;hpb=e23314859553f39480537b31afdce9284ac91af2;p=lttng-modules.git diff --git a/probes/Makefile b/probes/Makefile index 0314a5e2..9a2558b3 100644 --- a/probes/Makefile +++ b/probes/Makefile @@ -25,6 +25,8 @@ obj-m += lttng-probe-statedump.o ifneq ($(CONFIG_KVM),) obj-m += lttng-probe-kvm.o ifneq ($(CONFIG_X86),) +kvm_dep_lapic = $(srctree)/arch/x86/kvm/lapic.h +ifneq ($(wildcard $(kvm_dep_lapic)),) kvm_dep = $(srctree)/virt/kvm/iodev.h $(srctree)/include/kvm/iodev.h ifneq ($(wildcard $(kvm_dep)),) CFLAGS_lttng-probe-kvm-x86.o += -I$(srctree)/virt/kvm @@ -40,6 +42,9 @@ obj-m += $(shell \ else $(warning File $(kvm_dep) not found. Probe "kvm" x86-specific is disabled. Use full kernel source tree to enable it.) endif +else +$(warning File $(kvm_dep_lapic) not found. Probe "kvm" x86-specific is disabled. Use full kernel source tree to enable it.) +endif endif endif @@ -253,6 +258,8 @@ endif endif +obj-m += lttng-test.o + else KERNELDIR ?= /lib/modules/$(shell uname -r)/build PWD := $(shell pwd)