X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=probes%2FMakefile;h=1f3c6ad23bddab79147670dce71e4d4764d326c7;hb=e1f8bfedcc77b4d95f1efc6b7bb16306cd1b1701;hp=f98f2c5995833e0437b95b918cee5e472e981711;hpb=e09a6084cebc7bb97d9c39cd91c391a3c6ac080c;p=lttng-modules.git diff --git a/probes/Makefile b/probes/Makefile index f98f2c59..1f3c6ad2 100644 --- a/probes/Makefile +++ b/probes/Makefile @@ -24,8 +24,14 @@ 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 +obj-m += $(shell \ + if [ $(VERSION) -ge 3 \ + -o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 38 \) ] ; then \ + echo "lttng-probe-kvm-x86.o" ; fi;) +obj-m += $(shell \ + if [ $(VERSION) -ge 3 \ + -o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 38 \) ] ; then \ + echo "lttng-probe-kvm-x86-mmu.o" ; fi;) else $(warning File $(kvm_dep) not found. Probe "kvm" x86-specific is disabled. Use full kernel source tree to enable it.) endif @@ -210,6 +216,8 @@ obj-m += $(shell \ if [ $(VERSION) -ge 3 \ -o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 36 \) ] ; then \ echo "lttng-probe-writeback.o" ; fi;) +else +$(warning CONFIG_KALLSYMS_ALL is disabled, therefore probe "writeback" is disabled. Rebuild your kernel with this configuration option enabled in order to trace this subsystem.) endif