Add msgpack implementation for serializing captures
[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
cfa6cc1d
MD
16obj-$(CONFIG_LTTNG) += lttng-clock.o
17
18obj-$(CONFIG_LTTNG) += lttng-tracer.o
19
20obj-$(CONFIG_LTTNG) += lttng-wrapper.o
21
7ab8c616
FD
22lttng-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
55lttng-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
63ifneq ($(CONFIG_HAVE_SYSCALL_TRACEPOINTS),)
64 lttng-tracer-objs += lttng-syscalls.o
65endif # CONFIG_HAVE_SYSCALL_TRACEPOINTS
66
67ifneq ($(CONFIG_PERF_EVENTS),)
68 lttng-tracer-objs += lttng-context-perf-counters.o
69endif # CONFIG_PERF_EVENTS
70
71ifneq ($(CONFIG_PREEMPT_RT_FULL),)
72 lttng-tracer-objs += lttng-context-migratable.o
73 lttng-tracer-objs += lttng-context-preemptible.o
74endif # CONFIG_PREEMPT_RT_FULL
75
76ifneq ($(CONFIG_PREEMPT),)
77 lttng-tracer-objs += lttng-context-preemptible.o
78endif
79
80lttng-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
85lttng-tracer-objs += lttng-context-cgroup-ns.o
86
87ifneq ($(CONFIG_IPC_NS),)
88 lttng-tracer-objs += lttng-context-ipc-ns.o
89endif
90
91ifneq ($(wildcard $(mnt_ns_dep)),)
92 lttng-tracer-objs += lttng-context-mnt-ns.o
93endif
94
95ifneq ($(CONFIG_NET_NS),)
96 lttng-tracer-objs += lttng-context-net-ns.o
97endif
98
99ifneq ($(CONFIG_PID_NS),)
100 lttng-tracer-objs += lttng-context-pid-ns.o
101endif
102
103ifneq ($(CONFIG_USER_NS),)
104 lttng-tracer-objs += lttng-context-user-ns.o
105endif
106
107ifneq ($(CONFIG_UTS_NS),)
108 lttng-tracer-objs += lttng-context-uts-ns.o
109endif
110
876e2e92
MJ
111ifneq ($(CONFIG_TIME_NS),)
112 lttng-tracer-objs += lttng-context-time-ns.o
113endif
114
cfa6cc1d
MD
115obj-$(CONFIG_LTTNG) += lttng-statedump.o
116lttng-statedump-objs := lttng-statedump-impl.o
117
118obj-$(CONFIG_LTTNG) += probes/
119obj-$(CONFIG_LTTNG) += lib/
This page took 0.033016 seconds and 4 git commands to generate.