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
16 obj-m
+= lttng-probe-timer.o
18 obj-m
+= lttng-probe-statedump.o
20 ifneq ($(CONFIG_KVM
),)
21 obj-m
+= lttng-probe-kvm.o
24 ifneq ($(CONFIG_BLOCK
),)
25 ifneq ($(CONFIG_EVENT_TRACING
),) # need blk_cmd_buf_len
27 if
[ $(VERSION
) -ge
3 \
28 -o \
( $(VERSION
) -eq
2 -a
$(PATCHLEVEL
) -ge
6 -a
$(SUBLEVEL
) -ge
38 \
) ] ; then \
29 echo
"lttng-probe-block.o" ; fi
;)
33 ifneq ($(CONFIG_KPROBES
),)
34 obj-m
+= lttng-kprobes.o
38 ifneq ($(CONFIG_KRETPROBES
),)
39 obj-m
+= lttng-kretprobes.o
42 ifneq ($(CONFIG_DYNAMIC_FTRACE
),)
43 obj-m
+= lttng-ftrace.o
49 KERNELDIR ?
= /lib
/modules
/$(shell uname
-r
)/build
54 $(MAKE
) -C
$(KERNELDIR
) M
=$(PWD
) modules
57 $(MAKE
) -C
$(KERNELDIR
) M
=$(PWD
) modules_install
61 $(MAKE
) -C
$(KERNELDIR
) M
=$(PWD
) clean
This page took 0.028774 seconds and 4 git commands to generate.