Add signal instrumentation
[deliverable/lttng-modules.git] / probes / Makefile
1 #
2 # Makefile for the LTT probes.
3 # Only build from the package top-level directory. Never use with make directly.
4
5 ifneq ($(KERNELRELEASE),)
6 ifneq ($(CONFIG_TRACEPOINTS),)
7
8 ccflags-y += -I$(PWD)/probes
9 obj-m += lttng-types.o
10
11 obj-m += lttng-probe-lttng.o
12
13 obj-m += lttng-probe-sched.o
14 obj-m += lttng-probe-irq.o
15 obj-m += lttng-probe-signal.o
16
17 obj-m += lttng-probe-statedump.o
18
19 ifneq ($(CONFIG_KVM),)
20 obj-m += lttng-probe-kvm.o
21 endif
22
23 ifneq ($(CONFIG_BLOCK),)
24 ifneq ($(CONFIG_EVENT_TRACING),) # need blk_cmd_buf_len
25 obj-m += $(shell \
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;)
29 endif
30 endif
31
32 ifneq ($(CONFIG_KPROBES),)
33 obj-m += lttng-kprobes.o
34 endif
35
36
37 ifneq ($(CONFIG_KRETPROBES),)
38 obj-m += lttng-kretprobes.o
39 endif
40
41 ifneq ($(CONFIG_DYNAMIC_FTRACE),)
42 obj-m += lttng-ftrace.o
43 endif
44
45 endif
46
47 else
48 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
49 PWD := $(shell pwd)
50 CFLAGS = $(EXTCFLAGS)
51
52 default:
53 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
54
55 modules_install:
56 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
57 /sbin/depmod -a
58
59 clean:
60 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
61
62 endif
This page took 0.040766 seconds and 5 git commands to generate.