2 # Makefile for the LTT probes.
3 # Only build from the package top-level directory. Never use with make directly.
5 ifneq ($(KERNELRELEASE
),)
6 ifneq ($(CONFIG_TRACEPOINTS
),)
8 ccflags-y
+= -I
$(PWD
)/probes
11 obj-m
+= lttng-probe-lttng.o
13 obj-m
+= lttng-probe-sched.o
14 obj-m
+= lttng-probe-irq.o
15 obj-m
+= lttng-probe-signal.o
17 obj-m
+= lttng-probe-statedump.o
19 ifneq ($(CONFIG_KVM
),)
20 obj-m
+= lttng-probe-kvm.o
23 ifneq ($(CONFIG_BLOCK
),)
24 ifneq ($(CONFIG_EVENT_TRACING
),) # need blk_cmd_buf_len
26 if
[ $(VERSION
) -ge
3 \
27 -o \
( $(VERSION
) -eq
2 -a
$(PATCHLEVEL
) -ge
6 -a
$(SUBLEVEL
) -ge
38 \
) ] ; then \
28 echo
"lttng-probe-block.o" ; fi
;)
32 ifneq ($(CONFIG_KPROBES
),)
33 obj-m
+= lttng-kprobes.o
37 ifneq ($(CONFIG_KRETPROBES
),)
38 obj-m
+= lttng-kretprobes.o
41 ifneq ($(CONFIG_DYNAMIC_FTRACE
),)
42 obj-m
+= lttng-ftrace.o
48 KERNELDIR ?
= /lib
/modules
/$(shell uname
-r
)/build
53 $(MAKE
) -C
$(KERNELDIR
) M
=$(PWD
) modules
56 $(MAKE
) -C
$(KERNELDIR
) M
=$(PWD
) modules_install
60 $(MAKE
) -C
$(KERNELDIR
) M
=$(PWD
) clean
This page took 0.040766 seconds and 5 git commands to generate.