ifneq ($(KERNELRELEASE),)
ifneq ($(CONFIG_TRACEPOINTS),)
-obj-m += ltt-core.o
obj-m += ltt-ring-buffer-client-discard.o
obj-m += ltt-ring-buffer-client-overwrite.o
+obj-m += ltt-ring-buffer-metadata-client.o
obj-m += ltt-relay.o
-ltt-relay-objs := ltt-events.o ltt-event-header.o ltt-debugfs-abi.o \
- ltt-probes.o
+ltt-relay-objs := ltt-events.o ltt-debugfs-abi.o \
+ ltt-probes.o ltt-core.o ltt-context.o \
+ lttng-context-pid.o lttng-context-comm.o \
+ lttng-context-prio.o lttng-context-nice.o
-obj-m += probes/
+ifneq ($(CONFIG_PERF_EVENTS),)
+ltt-relay-objs += lttng-context-perf-counters.o
+endif
-# Use externally packaged lib ring buffer if missing in kernel
-ifneq ($(CONFIG_LIB_RING_BUFFER),)
-else
+obj-m += probes/
obj-m += lib/
-endif
endif