2 # Makefile for the LTT objects.
5 ifneq ($(KERNELRELEASE
),)
6 ifneq ($(CONFIG_TRACEPOINTS
),)
8 obj-m
+= ltt-ring-buffer-client-discard.o
9 obj-m
+= ltt-ring-buffer-client-overwrite.o
10 obj-m
+= ltt-ring-buffer-metadata-client.o
11 obj-m
+= ltt-ring-buffer-client-mmap-discard.o
12 obj-m
+= ltt-ring-buffer-client-mmap-overwrite.o
13 obj-m
+= ltt-ring-buffer-metadata-mmap-client.o
16 ltt-relay-objs
:= ltt-events.o ltt-debugfs-abi.o \
17 ltt-probes.o ltt-context.o \
18 lttng-context-pid.o lttng-context-procname.o \
19 lttng-context-prio.o lttng-context-nice.o \
20 lttng-context-vpid.o lttng-context-tid.o \
21 lttng-context-vtid.o lttng-context-ppid.o \
22 lttng-context-vppid.o lttng-calibrate.o
24 ifneq ($(CONFIG_HAVE_SYSCALL_TRACEPOINTS
),)
25 ltt-relay-objs
+= lttng-syscalls.o
28 ifneq ($(CONFIG_PERF_EVENTS
),)
29 ltt-relay-objs
+= $(shell \
30 if
[ $(VERSION
) -ge
3 \
31 -o \
( $(VERSION
) -eq
2 -a
$(PATCHLEVEL
) -ge
6 -a
$(SUBLEVEL
) -ge
33 \
) ] ; then \
32 echo
"lttng-context-perf-counters.o" ; fi
;)
41 KERNELDIR ?
= /lib
/modules
/$(shell uname
-r
)/build
46 $(MAKE
) -C
$(KERNELDIR
) M
=$(PWD
) modules
49 $(MAKE
) -C
$(KERNELDIR
) M
=$(PWD
) modules_install
52 $(MAKE
) -C
$(KERNELDIR
) M
=$(PWD
) clean