lttng events probes: don't clash with "ctx" variable name
[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
16ifneq ($(CONFIG_HAVE_SYSCALL_TRACEPOINTS),)
17obj-m += lttng-probe-syscalls.o
18endif
19
20ifneq ($(CONFIG_KVM),)
21obj-m += lttng-probe-kvm.o
22endif
23
24ifneq ($(CONFIG_BLOCK),)
25ifneq ($(CONFIG_EVENT_TRACING),) # need blk_cmd_buf_len
26obj-m += lttng-probe-block.o
27endif
28endif
29
30ifneq ($(CONFIG_KPROBES),)
31obj-m += lttng-kprobes.o
32endif
33
34
35ifneq ($(CONFIG_KRETPROBES),)
36obj-m += lttng-kretprobes.o
37endif
38
39ifneq ($(CONFIG_DYNAMIC_FTRACE),)
40obj-m += lttng-ftrace.o
41endif
42
43endif
44
45else
46 KERNELDIR ?= /lib/modules/$(shell uname -r)/build
47 PWD := $(shell pwd)
48 CFLAGS = $(EXTCFLAGS)
49
50default:
51 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules
52
53modules_install:
54 $(MAKE) -C $(KERNELDIR) M=$(PWD) modules_install
55 /sbin/depmod -a
56
57clean:
58 $(MAKE) -C $(KERNELDIR) M=$(PWD) clean
59
60endif
This page took 0.027893 seconds and 4 git commands to generate.