Commit | Line | Data |
---|---|---|
cfa6cc1d MD |
1 | # SPDX-License-Identifier: (GPL-2.0-only or LGPL-2.1-only) |
2 | ||
3 | TOP_LTTNG_MODULES_DIR := $(shell dirname $(lastword $(MAKEFILE_LIST)))/.. | |
4 | ||
5 | include $(TOP_LTTNG_MODULES_DIR)/Kbuild.common | |
6 | ||
7 | ccflags-y += -I$(TOP_LTTNG_MODULES_DIR)/include | |
8 | ||
9 | obj-$(CONFIG_LTTNG) += lttng-ring-buffer-client-discard.o | |
10 | obj-$(CONFIG_LTTNG) += lttng-ring-buffer-client-overwrite.o | |
11 | obj-$(CONFIG_LTTNG) += lttng-ring-buffer-metadata-client.o | |
12 | obj-$(CONFIG_LTTNG) += lttng-ring-buffer-client-mmap-discard.o | |
13 | obj-$(CONFIG_LTTNG) += lttng-ring-buffer-client-mmap-overwrite.o | |
14 | obj-$(CONFIG_LTTNG) += lttng-ring-buffer-metadata-mmap-client.o | |
250c663f | 15 | obj-$(CONFIG_LTTNG) += lttng-ring-buffer-event-notifier-client.o |
a101fa10 MD |
16 | |
17 | obj-$(CONFIG_LTTNG) += lttng-counter-client-percpu-32-modular.o | |
18 | ifneq ($CONFIG_64BIT),) | |
19 | obj-$(CONFIG_LTTNG) += lttng-counter-client-percpu-64-modular.o | |
20 | endif # CONFIG_64BIT | |
21 | ||
cfa6cc1d MD |
22 | obj-$(CONFIG_LTTNG) += lttng-clock.o |
23 | ||
24 | obj-$(CONFIG_LTTNG) += lttng-tracer.o | |
25 | ||
26 | obj-$(CONFIG_LTTNG) += lttng-wrapper.o | |
27 | ||
7ab8c616 FD |
28 | lttng-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 | |
62 | lttng-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 | ||
70 | ifneq ($(CONFIG_HAVE_SYSCALL_TRACEPOINTS),) | |
71 | lttng-tracer-objs += lttng-syscalls.o | |
72 | endif # CONFIG_HAVE_SYSCALL_TRACEPOINTS | |
73 | ||
74 | ifneq ($(CONFIG_PERF_EVENTS),) | |
75 | lttng-tracer-objs += lttng-context-perf-counters.o | |
76 | endif # CONFIG_PERF_EVENTS | |
77 | ||
78 | ifneq ($(CONFIG_PREEMPT_RT_FULL),) | |
79 | lttng-tracer-objs += lttng-context-migratable.o | |
80 | lttng-tracer-objs += lttng-context-preemptible.o | |
81 | endif # CONFIG_PREEMPT_RT_FULL | |
82 | ||
83 | ifneq ($(CONFIG_PREEMPT),) | |
84 | lttng-tracer-objs += lttng-context-preemptible.o | |
85 | endif | |
86 | ||
87 | lttng-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 | ||
92 | lttng-tracer-objs += lttng-context-cgroup-ns.o | |
93 | ||
94 | ifneq ($(CONFIG_IPC_NS),) | |
95 | lttng-tracer-objs += lttng-context-ipc-ns.o | |
96 | endif | |
97 | ||
98 | ifneq ($(wildcard $(mnt_ns_dep)),) | |
99 | lttng-tracer-objs += lttng-context-mnt-ns.o | |
100 | endif | |
101 | ||
102 | ifneq ($(CONFIG_NET_NS),) | |
103 | lttng-tracer-objs += lttng-context-net-ns.o | |
104 | endif | |
105 | ||
106 | ifneq ($(CONFIG_PID_NS),) | |
107 | lttng-tracer-objs += lttng-context-pid-ns.o | |
108 | endif | |
109 | ||
110 | ifneq ($(CONFIG_USER_NS),) | |
111 | lttng-tracer-objs += lttng-context-user-ns.o | |
112 | endif | |
113 | ||
114 | ifneq ($(CONFIG_UTS_NS),) | |
115 | lttng-tracer-objs += lttng-context-uts-ns.o | |
116 | endif | |
117 | ||
876e2e92 MJ |
118 | ifneq ($(CONFIG_TIME_NS),) |
119 | lttng-tracer-objs += lttng-context-time-ns.o | |
120 | endif | |
121 | ||
cfa6cc1d MD |
122 | obj-$(CONFIG_LTTNG) += lttng-statedump.o |
123 | lttng-statedump-objs := lttng-statedump-impl.o | |
124 | ||
125 | obj-$(CONFIG_LTTNG) += probes/ | |
126 | obj-$(CONFIG_LTTNG) += lib/ |