Namespace LTTng modules ABI with lttng_kernel_abi_ prefix
[lttng-modules.git] / src / Kbuild
CommitLineData
cfa6cc1d
MD
1# SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only)
2
3TOP_LTTNG_MODULES_DIR := $(shell dirname $(lastword $(MAKEFILE_LIST)))/..
4
5include $(TOP_LTTNG_MODULES_DIR)/Kbuild.common
6
7ccflags-y += -I$(TOP_LTTNG_MODULES_DIR)/include
8
9obj-$(CONFIG_LTTNG) += lttng-ring-buffer-client-discard.o
10obj-$(CONFIG_LTTNG) += lttng-ring-buffer-client-overwrite.o
11obj-$(CONFIG_LTTNG) += lttng-ring-buffer-metadata-client.o
12obj-$(CONFIG_LTTNG) += lttng-ring-buffer-client-mmap-discard.o
13obj-$(CONFIG_LTTNG) += lttng-ring-buffer-client-mmap-overwrite.o
14obj-$(CONFIG_LTTNG) += lttng-ring-buffer-metadata-mmap-client.o
250c663f 15obj-$(CONFIG_LTTNG) += lttng-ring-buffer-event-notifier-client.o
a101fa10
MD
16
17obj-$(CONFIG_LTTNG) += lttng-counter-client-percpu-32-modular.o
18ifneq ($CONFIG_64BIT),)
19 obj-$(CONFIG_LTTNG) += lttng-counter-client-percpu-64-modular.o
20endif # CONFIG_64BIT
21
cfa6cc1d
MD
22obj-$(CONFIG_LTTNG) += lttng-clock.o
23
24obj-$(CONFIG_LTTNG) += lttng-tracer.o
25
26obj-$(CONFIG_LTTNG) += lttng-wrapper.o
27
7ab8c616
FD
28lttng-tracer-objs := lib/msgpack/msgpack.o \
29 lttng-events.o lttng-abi.o lttng-string-utils.o \
cfa6cc1d
MD
30 lttng-probes.o lttng-context.o \
31 lttng-context-pid.o lttng-context-procname.o \
32 lttng-context-prio.o lttng-context-nice.o \
33 lttng-context-vpid.o lttng-context-tid.o \
34 lttng-context-vtid.o lttng-context-ppid.o \
35 lttng-context-vppid.o lttng-context-cpu-id.o \
36 lttng-context-uid.o \
37 lttng-context-euid.o \
38 lttng-context-suid.o \
39 lttng-context-gid.o \
40 lttng-context-egid.o \
41 lttng-context-sgid.o \
42 lttng-context-vuid.o \
43 lttng-context-veuid.o \
44 lttng-context-vsuid.o \
45 lttng-context-vgid.o \
46 lttng-context-vegid.o \
47 lttng-context-vsgid.o \
48 lttng-context-interruptible.o \
49 lttng-context-need-reschedule.o \
437d5aa5 50 lttng-calibrate.o \
cfa6cc1d 51 lttng-context-hostname.o \
437d5aa5 52 lttng-context-callstack.o \
cfa6cc1d
MD
53 probes/lttng.o \
54 lttng-tracker-id.o \
80c2a69a
FD
55 lttng-bytecode.o lttng-bytecode-interpreter.o \
56 lttng-bytecode-specialize.o \
57 lttng-bytecode-validator.o \
cfa6cc1d
MD
58 probes/lttng-probe-user.o \
59 lttng-tp-mempool.o \
21f58fb7 60 lttng-event-notifier-notification.o
cfa6cc1d
MD
61
62lttng-wrapper-objs := wrapper/page_alloc.o \
63 wrapper/random.o \
64 wrapper/trace-clock.o \
65 wrapper/kallsyms.o \
66 wrapper/irqdesc.o \
67 wrapper/fdtable.o \
68 lttng-wrapper-impl.o
69
70ifneq ($(CONFIG_HAVE_SYSCALL_TRACEPOINTS),)
71 lttng-tracer-objs += lttng-syscalls.o
72endif # CONFIG_HAVE_SYSCALL_TRACEPOINTS
73
74ifneq ($(CONFIG_PERF_EVENTS),)
75 lttng-tracer-objs += lttng-context-perf-counters.o
76endif # CONFIG_PERF_EVENTS
77
78ifneq ($(CONFIG_PREEMPT_RT_FULL),)
79 lttng-tracer-objs += lttng-context-migratable.o
80 lttng-tracer-objs += lttng-context-preemptible.o
81endif # CONFIG_PREEMPT_RT_FULL
82
83ifneq ($(CONFIG_PREEMPT),)
84 lttng-tracer-objs += lttng-context-preemptible.o
85endif
86
87lttng-tracer-objs += $(shell \
88 if [ $(VERSION) -ge 4 \
89 -o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 15 \) ] ; then \
90 echo "lttng-tracepoint.o" ; fi;)
91
92lttng-tracer-objs += lttng-context-cgroup-ns.o
93
94ifneq ($(CONFIG_IPC_NS),)
95 lttng-tracer-objs += lttng-context-ipc-ns.o
96endif
97
98ifneq ($(wildcard $(mnt_ns_dep)),)
99 lttng-tracer-objs += lttng-context-mnt-ns.o
100endif
101
102ifneq ($(CONFIG_NET_NS),)
103 lttng-tracer-objs += lttng-context-net-ns.o
104endif
105
106ifneq ($(CONFIG_PID_NS),)
107 lttng-tracer-objs += lttng-context-pid-ns.o
108endif
109
110ifneq ($(CONFIG_USER_NS),)
111 lttng-tracer-objs += lttng-context-user-ns.o
112endif
113
114ifneq ($(CONFIG_UTS_NS),)
115 lttng-tracer-objs += lttng-context-uts-ns.o
116endif
117
876e2e92
MJ
118ifneq ($(CONFIG_TIME_NS),)
119 lttng-tracer-objs += lttng-context-time-ns.o
120endif
121
cfa6cc1d
MD
122obj-$(CONFIG_LTTNG) += lttng-statedump.o
123lttng-statedump-objs := lttng-statedump-impl.o
124
125obj-$(CONFIG_LTTNG) += probes/
126obj-$(CONFIG_LTTNG) += lib/
This page took 0.036594 seconds and 4 git commands to generate.