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