Introduce lttng_event_rule_kernel_tracepoint
[lttng-tools.git] / src / common / Makefile.am
1 # SPDX-License-Identifier: GPL-2.0-only
2
3 AUTOMAKE_OPTIONS = subdir-objects
4
5 SUBDIRS = \
6 string-utils \
7 bytecode \
8 filter \
9 argpar
10
11 # Make sure to always distribute all folders
12 # since SUBDIRS is decided at configure time.
13 DIST_SUBDIRS = \
14 compat \
15 health \
16 hashtable \
17 kernel-ctl \
18 sessiond-comm \
19 relayd \
20 kernel-consumer \
21 ust-consumer \
22 testpoint \
23 index \
24 config \
25 consumer \
26 string-utils \
27 fd-tracker \
28 bytecode \
29 filter \
30 argpar
31
32 # Common library
33 noinst_LTLIBRARIES = libcommon.la
34 EXTRA_DIST = mi-lttng-4.0.xsd
35
36 libcommon_la_SOURCES = \
37 actions/action.c \
38 actions/list.c \
39 actions/notify.c \
40 actions/path.c \
41 actions/rotate-session.c \
42 actions/snapshot-session.c \
43 actions/start-session.c \
44 actions/stop-session.c \
45 actions/rate-policy.c \
46 buffer-view.h buffer-view.c \
47 common.h \
48 conditions/buffer-usage.c \
49 conditions/condition.c \
50 conditions/event-rule-matches.c \
51 conditions/session-consumed-size.c \
52 conditions/session-rotation.c \
53 context.c context.h \
54 credentials.c credentials.h \
55 daemonize.c daemonize.h \
56 defaults.c \
57 domain.c \
58 dynamic-array.c dynamic-array.h \
59 dynamic-buffer.c dynamic-buffer.h \
60 endpoint.c \
61 error.c error.h \
62 error-query.c \
63 evaluation.c \
64 event.c \
65 event-expr-to-bytecode.c event-expr-to-bytecode.h \
66 event-field-value.c \
67 event-rule/event-rule.c \
68 event-rule/kernel-kprobe.c \
69 event-rule/kernel-syscall.c \
70 event-rule/kernel-uprobe.c \
71 event-rule/tracepoint.c \
72 event-rule/kernel-tracepoint.c \
73 filter.c filter.h \
74 fd-handle.c fd-handle.h \
75 fs-handle.c fs-handle.h fs-handle-internal.h \
76 futex.c futex.h \
77 kernel-probe.c \
78 index-allocator.c index-allocator.h \
79 location.c \
80 log-level-rule.c \
81 mi-lttng.c mi-lttng.h \
82 notification.c \
83 optional.h \
84 payload.c payload.h \
85 payload-view.c payload-view.h \
86 pipe.c pipe.h \
87 readwrite.c readwrite.h \
88 runas.c runas.h \
89 shm.c shm.h \
90 session-descriptor.c \
91 snapshot.c snapshot.h \
92 spawn-viewer.c spawn-viewer.h \
93 time.c \
94 trace-chunk.c trace-chunk.h \
95 trace-chunk-registry.h \
96 trigger.c \
97 unix.c unix.h \
98 uri.c uri.h \
99 userspace-probe.c \
100 utils.c utils.h \
101 uuid.c uuid.h \
102 thread.c thread.h \
103 tracker.c tracker.h \
104 waiter.c waiter.h
105
106 if HAVE_ELF_H
107 libcommon_la_SOURCES += \
108 lttng-elf.c lttng-elf.h
109 endif
110
111 libcommon_la_LIBADD = \
112 $(top_builddir)/src/common/bytecode/libbytecode.la \
113 $(top_builddir)/src/common/config/libconfig.la \
114 $(top_builddir)/src/common/compat/libcompat.la \
115 $(top_builddir)/src/common/hashtable/libhashtable.la \
116 $(top_builddir)/src/common/fd-tracker/libfd-tracker.la \
117 $(top_builddir)/src/common/filter/libfilter.la \
118 $(top_builddir)/src/vendor/msgpack/libmsgpack.la
119
120 if BUILD_LIB_COMPAT
121 SUBDIRS += compat
122 endif
123
124 if BUILD_LIB_HEALTH
125 SUBDIRS += health
126 endif
127
128 if BUILD_LIB_HASHTABLE
129 SUBDIRS += hashtable
130 endif
131
132 if BUILD_LIB_KERNEL_CTL
133 SUBDIRS += kernel-ctl
134 endif
135
136 if BUILD_LIB_SESSIOND_COMM
137 SUBDIRS += sessiond-comm
138 endif
139
140 if BUILD_LIB_RELAYD
141 SUBDIRS += relayd
142 endif
143
144 if BUILD_LIB_FD_TRACKER
145 SUBDIRS += fd-tracker
146 endif
147
148 if BUILD_LIB_KERNEL_CONSUMER
149 SUBDIRS += kernel-consumer
150 endif
151
152 if BUILD_LIB_UST_CONSUMER
153 SUBDIRS += ust-consumer
154 endif
155
156 if BUILD_LIB_TESTPOINT
157 SUBDIRS += testpoint
158 endif
159
160 if BUILD_LIB_INDEX
161 SUBDIRS += index
162 endif
163
164 if BUILD_LIB_CONFIG
165 SUBDIRS += config
166 endif
167
168 if BUILD_LIB_CONSUMER
169 SUBDIRS += consumer
170 endif
171
172 noinst_HEADERS = \
173 align.h \
174 bug.h \
175 defaults.h \
176 error.h \
177 futex.h \
178 lttng-kernel.h \
179 lttng-kernel-old.h \
180 macros.h \
181 time.h \
182 uri.h \
183 utils.h
184
185 noinst_PROGRAMS = filter-grammar-test
186 filter_grammar_test_SOURCES = filter-grammar-test.c
187 filter_grammar_test_LDADD = \
188 libcommon.la
189
190 all-local:
191 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
192 for script in $(EXTRA_DIST); do \
193 cp -f $(srcdir)/$$script $(builddir); \
194 done; \
195 fi
196
197 clean-local:
198 @if [ x"$(srcdir)" != x"$(builddir)" ]; then \
199 for script in $(EXTRA_DIST); do \
200 rm -f $(builddir)/$$script; \
201 done; \
202 fi
This page took 0.034312 seconds and 5 git commands to generate.