Implement state dump
[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
15
16obj-m += lttng-probe-statedump.o
17
18ifneq ($(CONFIG_KVM),)
19obj-m += lttng-probe-kvm.o
20endif
21
22ifneq ($(CONFIG_BLOCK),)
23ifneq ($(CONFIG_EVENT_TRACING),) # need blk_cmd_buf_len
24obj-m += $(shell \
25 if [ $(VERSION) -ge 3 \
26 -o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -ge 6 -a $(SUBLEVEL) -ge 38 \) ] ; then \
27 echo "lttng-probe-block.o" ; fi;)
28endif
29endif
30
31ifneq ($(CONFIG_KPROBES),)
32obj-m += lttng-kprobes.o
33endif
34
35
36ifneq ($(CONFIG_KRETPROBES),)
37obj-m += lttng-kretprobes.o
38endif
39
40ifneq ($(CONFIG_DYNAMIC_FTRACE),)
41obj-m += lttng-ftrace.o
42endif
43
44endif
45
46else
47 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
48 PWD := $(shell pwd)
49 CFLAGS = $(EXTCFLAGS)
50
51default:
52 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
53
54modules_install:
55 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
56 /sbin/depmod -a
57
58clean:
59 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
60
61endif
This page took 0.022912 seconds and 4 git commands to generate.