X-Git-Url: https://git.lttng.org/?a=blobdiff_plain;f=probes%2FMakefile;h=2b61ce5fd17c1f0aab2538e10fcbc3190a93657d;hb=f6566a02ebae53d06e70520e553cd36fde313066;hp=7bc3a51cd4373902195e0ec4cccaf7b1c2a6a8e3;hpb=d32a57a2d82d7d0a1d447e7052db9795bb0df2f1;p=lttng-modules.git diff --git a/probes/Makefile b/probes/Makefile index 7bc3a51c..2b61ce5f 100644 --- a/probes/Makefile +++ b/probes/Makefile @@ -8,10 +8,36 @@ ifneq ($(CONFIG_TRACEPOINTS),) ccflags-y += -I$(PWD)/probes obj-m += lttng-types.o +obj-m += lttng-probe-lttng.o + obj-m += lttng-probe-sched.o -obj-m += lttng-probe-kvm.o obj-m += lttng-probe-irq.o -obj-m += lttng-probe-block.o + +ifneq ($(CONFIG_KVM),) +obj-m += lttng-probe-kvm.o +endif + +ifneq ($(CONFIG_BLOCK),) +ifneq ($(CONFIG_EVENT_TRACING),) # need blk_cmd_buf_len +obj-m += $(shell \ + if [ $(VERSION) -ge 3 \ + -o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 38 \) ] ; then \ + echo "lttng-probe-block.o" ; fi;) +endif +endif + +ifneq ($(CONFIG_KPROBES),) +obj-m += lttng-kprobes.o +endif + + +ifneq ($(CONFIG_KRETPROBES),) +obj-m += lttng-kretprobes.o +endif + +ifneq ($(CONFIG_DYNAMIC_FTRACE),) +obj-m += lttng-ftrace.o +endif endif