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 |
cfa6cc1d MD |
16 | obj-$(CONFIG_LTTNG) += lttng-clock.o |
17 | ||
18 | obj-$(CONFIG_LTTNG) += lttng-tracer.o | |
19 | ||
20 | obj-$(CONFIG_LTTNG) += lttng-wrapper.o | |
21 | ||
7ab8c616 FD |
22 | lttng-tracer-objs := lib/msgpack/msgpack.o \ |
23 | lttng-events.o lttng-abi.o lttng-string-utils.o \ | |
cfa6cc1d MD |
24 | lttng-probes.o lttng-context.o \ |
25 | lttng-context-pid.o lttng-context-procname.o \ | |
26 | lttng-context-prio.o lttng-context-nice.o \ | |
27 | lttng-context-vpid.o lttng-context-tid.o \ | |
28 | lttng-context-vtid.o lttng-context-ppid.o \ | |
29 | lttng-context-vppid.o lttng-context-cpu-id.o \ | |
30 | lttng-context-uid.o \ | |
31 | lttng-context-euid.o \ | |
32 | lttng-context-suid.o \ | |
33 | lttng-context-gid.o \ | |
34 | lttng-context-egid.o \ | |
35 | lttng-context-sgid.o \ | |
36 | lttng-context-vuid.o \ | |
37 | lttng-context-veuid.o \ | |
38 | lttng-context-vsuid.o \ | |
39 | lttng-context-vgid.o \ | |
40 | lttng-context-vegid.o \ | |
41 | lttng-context-vsgid.o \ | |
42 | lttng-context-interruptible.o \ | |
43 | lttng-context-need-reschedule.o \ | |
44 | lttng-context-callstack.o lttng-calibrate.o \ | |
45 | lttng-context-hostname.o \ | |
46 | probes/lttng.o \ | |
47 | lttng-tracker-id.o \ | |
48 | lttng-filter.o lttng-filter-interpreter.o \ | |
49 | lttng-filter-specialize.o \ | |
50 | lttng-filter-validator.o \ | |
51 | probes/lttng-probe-user.o \ | |
52 | lttng-tp-mempool.o \ | |
21f58fb7 | 53 | lttng-event-notifier-notification.o |
cfa6cc1d MD |
54 | |
55 | lttng-wrapper-objs := wrapper/page_alloc.o \ | |
56 | wrapper/random.o \ | |
57 | wrapper/trace-clock.o \ | |
58 | wrapper/kallsyms.o \ | |
59 | wrapper/irqdesc.o \ | |
60 | wrapper/fdtable.o \ | |
61 | lttng-wrapper-impl.o | |
62 | ||
63 | ifneq ($(CONFIG_HAVE_SYSCALL_TRACEPOINTS),) | |
64 | lttng-tracer-objs += lttng-syscalls.o | |
65 | endif # CONFIG_HAVE_SYSCALL_TRACEPOINTS | |
66 | ||
67 | ifneq ($(CONFIG_PERF_EVENTS),) | |
68 | lttng-tracer-objs += lttng-context-perf-counters.o | |
69 | endif # CONFIG_PERF_EVENTS | |
70 | ||
71 | ifneq ($(CONFIG_PREEMPT_RT_FULL),) | |
72 | lttng-tracer-objs += lttng-context-migratable.o | |
73 | lttng-tracer-objs += lttng-context-preemptible.o | |
74 | endif # CONFIG_PREEMPT_RT_FULL | |
75 | ||
76 | ifneq ($(CONFIG_PREEMPT),) | |
77 | lttng-tracer-objs += lttng-context-preemptible.o | |
78 | endif | |
79 | ||
80 | lttng-tracer-objs += $(shell \ | |
81 | if [ $(VERSION) -ge 4 \ | |
82 | -o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 15 \) ] ; then \ | |
83 | echo "lttng-tracepoint.o" ; fi;) | |
84 | ||
85 | lttng-tracer-objs += lttng-context-cgroup-ns.o | |
86 | ||
87 | ifneq ($(CONFIG_IPC_NS),) | |
88 | lttng-tracer-objs += lttng-context-ipc-ns.o | |
89 | endif | |
90 | ||
91 | ifneq ($(wildcard $(mnt_ns_dep)),) | |
92 | lttng-tracer-objs += lttng-context-mnt-ns.o | |
93 | endif | |
94 | ||
95 | ifneq ($(CONFIG_NET_NS),) | |
96 | lttng-tracer-objs += lttng-context-net-ns.o | |
97 | endif | |
98 | ||
99 | ifneq ($(CONFIG_PID_NS),) | |
100 | lttng-tracer-objs += lttng-context-pid-ns.o | |
101 | endif | |
102 | ||
103 | ifneq ($(CONFIG_USER_NS),) | |
104 | lttng-tracer-objs += lttng-context-user-ns.o | |
105 | endif | |
106 | ||
107 | ifneq ($(CONFIG_UTS_NS),) | |
108 | lttng-tracer-objs += lttng-context-uts-ns.o | |
109 | endif | |
110 | ||
876e2e92 MJ |
111 | ifneq ($(CONFIG_TIME_NS),) |
112 | lttng-tracer-objs += lttng-context-time-ns.o | |
113 | endif | |
114 | ||
cfa6cc1d MD |
115 | obj-$(CONFIG_LTTNG) += lttng-statedump.o |
116 | lttng-statedump-objs := lttng-statedump-impl.o | |
117 | ||
118 | obj-$(CONFIG_LTTNG) += probes/ | |
119 | obj-$(CONFIG_LTTNG) += lib/ |