X-Git-Url: http://git.lttng.org/?a=blobdiff_plain;f=Makefile;h=9b3e6c222eb712cf16f070bfd6097ea78c8aa135;hb=a6cf40a4491954d6f81052f8bbce757f73727f16;hp=42b7a99eca6a7ec018d89a49669b1dc7bcfafad0;hpb=2fa2d39a42f3407edcb0664bf4d04af28837ea2c;p=lttng-modules.git diff --git a/Makefile b/Makefile index 42b7a99e..9b3e6c22 100644 --- a/Makefile +++ b/Makefile @@ -1,6 +1,4 @@ -# -# Makefile for the LTT objects. -# +# SPDX-License-Identifier: (GPL-2.0 or LGPL-2.1) ifneq ($(KERNELRELEASE),) @@ -68,10 +66,7 @@ ifneq ($(KERNELRELEASE),) endif # CONFIG_HAVE_SYSCALL_TRACEPOINTS ifneq ($(CONFIG_PERF_EVENTS),) - lttng-tracer-objs += $(shell \ - if [ $(VERSION) -ge 3 \ - -o \( $(VERSION) -eq 2 -a $(PATCHLEVEL) -eq 6 -a $(SUBLEVEL) -ge 33 \) ] ; then \ - echo "lttng-context-perf-counters.o" ; fi;) + lttng-tracer-objs += lttng-context-perf-counters.o endif # CONFIG_PERF_EVENTS ifneq ($(CONFIG_PREEMPT_RT_FULL),) @@ -88,6 +83,32 @@ ifneq ($(KERNELRELEASE),) -o \( $(VERSION) -eq 3 -a $(PATCHLEVEL) -ge 15 \) ] ; then \ echo "lttng-tracepoint.o" ; fi;) + lttng-tracer-objs += lttng-context-cgroup-ns.o + + ifneq ($(CONFIG_IPC_NS),) + lttng-tracer-objs += lttng-context-ipc-ns.o + endif + + ifneq ($(wildcard $(mnt_ns_dep)),) + lttng-tracer-objs += lttng-context-mnt-ns.o + endif + + ifneq ($(CONFIG_NET_NS),) + lttng-tracer-objs += lttng-context-net-ns.o + endif + + ifneq ($(CONFIG_PID_NS),) + lttng-tracer-objs += lttng-context-pid-ns.o + endif + + ifneq ($(CONFIG_USER_NS),) + lttng-tracer-objs += lttng-context-user-ns.o + endif + + ifneq ($(CONFIG_UTS_NS),) + lttng-tracer-objs += lttng-context-uts-ns.o + endif + obj-$(CONFIG_LTTNG) += lttng-statedump.o lttng-statedump-objs := lttng-statedump-impl.o wrapper/irqdesc.o \ wrapper/fdtable.o