Fix: scsi: sd: Atomic write support added in 6.11-rc1
[lttng-modules.git] / src / Kbuild
CommitLineData
cfa6cc1d 1# SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
61baff6e 2# SPDX-FileCopyrightText: 2010-2024 EfficiOS Inc.
cfa6cc1d 3
600da0c9
MJ
4ifdef CONFIG_LOCALVERSION # Check if dot-config is included.
5 ifeq ($(CONFIG_TRACEPOINTS),)
6 $(error The option CONFIG_TRACEPOINTS needs to be enabled in your kernel configuration)
7 endif # CONFIG_TRACEPOINTS
8endif # ifdef CONFIG_LOCALVERSION
9
cfa6cc1d
MD
10TOP_LTTNG_MODULES_DIR := $(shell dirname $(lastword $(MAKEFILE_LIST)))/..
11
600da0c9
MJ
12lttng_check_linux_version = $(shell pwd)/include/linux/version.h
13lttng_check_generated_linux_version = $(shell pwd)/include/generated/uapi/linux/version.h
14
15#
16# Check for stale version.h, which can be a leftover from an old Linux
17# kernel tree moved to a newer kernel version, only pruned by make
18# distclean.
19#
20ifneq ($(wildcard $(lttng_check_linux_version)),)
21 ifneq ($(wildcard $(lttng_check_generated_linux_version)),)
22 $(error Duplicate version.h files found in $(lttng_check_linux_version) and $(lttng_check_generated_linux_version). Consider running make distclean on your kernel, or removing the stale $(lttng_check_linux_version) file)
23 endif
24endif
25
26include $(TOP_LTTNG_MODULES_DIR)/src/Kbuild.common
cfa6cc1d
MD
27
28ccflags-y += -I$(TOP_LTTNG_MODULES_DIR)/include
29
30obj-$(CONFIG_LTTNG) += lttng-ring-buffer-client-discard.o
31obj-$(CONFIG_LTTNG) += lttng-ring-buffer-client-overwrite.o
32obj-$(CONFIG_LTTNG) += lttng-ring-buffer-metadata-client.o
33obj-$(CONFIG_LTTNG) += lttng-ring-buffer-client-mmap-discard.o
34obj-$(CONFIG_LTTNG) += lttng-ring-buffer-client-mmap-overwrite.o
35obj-$(CONFIG_LTTNG) += lttng-ring-buffer-metadata-mmap-client.o
250c663f 36obj-$(CONFIG_LTTNG) += lttng-ring-buffer-event-notifier-client.o
a101fa10
MD
37
38obj-$(CONFIG_LTTNG) += lttng-counter-client-percpu-32-modular.o
cf1f236d 39ifneq ($(CONFIG_64BIT),)
a101fa10
MD
40 obj-$(CONFIG_LTTNG) += lttng-counter-client-percpu-64-modular.o
41endif # CONFIG_64BIT
42
cfa6cc1d
MD
43obj-$(CONFIG_LTTNG) += lttng-clock.o
44
45obj-$(CONFIG_LTTNG) += lttng-tracer.o
46
47obj-$(CONFIG_LTTNG) += lttng-wrapper.o
48
7ab8c616
FD
49lttng-tracer-objs := lib/msgpack/msgpack.o \
50 lttng-events.o lttng-abi.o lttng-string-utils.o \
cfa6cc1d
MD
51 lttng-probes.o lttng-context.o \
52 lttng-context-pid.o lttng-context-procname.o \
53 lttng-context-prio.o lttng-context-nice.o \
54 lttng-context-vpid.o lttng-context-tid.o \
55 lttng-context-vtid.o lttng-context-ppid.o \
56 lttng-context-vppid.o lttng-context-cpu-id.o \
57 lttng-context-uid.o \
58 lttng-context-euid.o \
59 lttng-context-suid.o \
60 lttng-context-gid.o \
61 lttng-context-egid.o \
62 lttng-context-sgid.o \
63 lttng-context-vuid.o \
64 lttng-context-veuid.o \
65 lttng-context-vsuid.o \
66 lttng-context-vgid.o \
67 lttng-context-vegid.o \
68 lttng-context-vsgid.o \
69 lttng-context-interruptible.o \
70 lttng-context-need-reschedule.o \
437d5aa5 71 lttng-calibrate.o \
cfa6cc1d 72 lttng-context-hostname.o \
437d5aa5 73 lttng-context-callstack.o \
cfa6cc1d
MD
74 probes/lttng.o \
75 lttng-tracker-id.o \
80c2a69a
FD
76 lttng-bytecode.o lttng-bytecode-interpreter.o \
77 lttng-bytecode-specialize.o \
78 lttng-bytecode-validator.o \
cfa6cc1d
MD
79 probes/lttng-probe-user.o \
80 lttng-tp-mempool.o \
21f58fb7 81 lttng-event-notifier-notification.o
cfa6cc1d
MD
82
83lttng-wrapper-objs := wrapper/page_alloc.o \
84 wrapper/random.o \
85 wrapper/trace-clock.o \
86 wrapper/kallsyms.o \
87 wrapper/irqdesc.o \
cfa6cc1d
MD
88 lttng-wrapper-impl.o
89
90ifneq ($(CONFIG_HAVE_SYSCALL_TRACEPOINTS),)
91 lttng-tracer-objs += lttng-syscalls.o
e42c4f49
FD
92 lttng-tracer-objs += lttng-syscalls-entry-table.o
93 lttng-tracer-objs += lttng-syscalls-entry-compat-table.o
94 lttng-tracer-objs += lttng-syscalls-exit-table.o
95 lttng-tracer-objs += lttng-syscalls-exit-compat-table.o
9857164a 96 lttng-tracer-objs += lttng-syscalls-enum.o
cfa6cc1d
MD
97endif # CONFIG_HAVE_SYSCALL_TRACEPOINTS
98
99ifneq ($(CONFIG_PERF_EVENTS),)
100 lttng-tracer-objs += lttng-context-perf-counters.o
101endif # CONFIG_PERF_EVENTS
102
103ifneq ($(CONFIG_PREEMPT_RT_FULL),)
104 lttng-tracer-objs += lttng-context-migratable.o
105 lttng-tracer-objs += lttng-context-preemptible.o
106endif # CONFIG_PREEMPT_RT_FULL
107
108ifneq ($(CONFIG_PREEMPT),)
109 lttng-tracer-objs += lttng-context-preemptible.o
110endif
111
7724cf27 112lttng-tracer-objs += lttng-tracepoint.o
cfa6cc1d
MD
113
114lttng-tracer-objs += lttng-context-cgroup-ns.o
115
116ifneq ($(CONFIG_IPC_NS),)
117 lttng-tracer-objs += lttng-context-ipc-ns.o
118endif
119
120ifneq ($(wildcard $(mnt_ns_dep)),)
121 lttng-tracer-objs += lttng-context-mnt-ns.o
122endif
123
124ifneq ($(CONFIG_NET_NS),)
125 lttng-tracer-objs += lttng-context-net-ns.o
126endif
127
128ifneq ($(CONFIG_PID_NS),)
129 lttng-tracer-objs += lttng-context-pid-ns.o
130endif
131
132ifneq ($(CONFIG_USER_NS),)
133 lttng-tracer-objs += lttng-context-user-ns.o
134endif
135
136ifneq ($(CONFIG_UTS_NS),)
137 lttng-tracer-objs += lttng-context-uts-ns.o
138endif
139
876e2e92
MJ
140ifneq ($(CONFIG_TIME_NS),)
141 lttng-tracer-objs += lttng-context-time-ns.o
142endif
143
0c2c6606
MD
144ifneq ($(CONFIG_KPROBES),)
145 lttng-tracer-objs += lttng-kprobes.o
146endif
147
148ifneq ($(CONFIG_UPROBES),)
149 lttng-tracer-objs += lttng-uprobes.o
150endif
151
152ifneq ($(CONFIG_KRETPROBES),)
153 lttng-tracer-objs += lttng-kretprobes.o
154endif
155
cfa6cc1d
MD
156obj-$(CONFIG_LTTNG) += lttng-statedump.o
157lttng-statedump-objs := lttng-statedump-impl.o
158
159obj-$(CONFIG_LTTNG) += probes/
160obj-$(CONFIG_LTTNG) += lib/
600da0c9 161obj-$(CONFIG_LTTNG) += tests/
d504ea73
JG
162
163obj-$(CONFIG_LTTNG_SYSCALLS_EXTRACTOR) += lttng-syscalls-extractor.o
7724cf27
MJ
164
165# vim:syntax=make
This page took 0.055221 seconds and 5 git commands to generate.