Fix: lttng-logger get_user_pages_fast error handling
[lttng-modules.git] / probes / Kbuild
index 2f6c7c76828681cb6795354f4e084f9e3c6e75a2..70a3d8689438793b6f0bb92aa65d03c1c6bd8eda 100644 (file)
@@ -1,6 +1,6 @@
 TOP_LTTNG_MODULES_DIR := $(shell dirname $(lastword $(MAKEFILE_LIST)))/..
 
-include $(TOP_LTTNG_MODULES_DIR)/Makefile.ABI.workarounds
+include $(TOP_LTTNG_MODULES_DIR)/Kbuild.common
 
 ccflags-y += -I$(TOP_LTTNG_MODULES_DIR)
 
@@ -259,7 +259,11 @@ ifneq ($(CONFIG_KRETPROBES),)
 endif # CONFIG_KRETPROBES
 
 ifneq ($(CONFIG_DYNAMIC_FTRACE),)
-  obj-$(CONFIG_LTTNG) += lttng-ftrace.o
+  ifeq ($(have_ftrace_header),yes)
+    obj-$(CONFIG_LTTNG) += lttng-ftrace.o
+  else
+    $(warning Files $(ftrace_dep) not found. Probe "ftrace" is disabled. Use full kernel source tree to enable it.)
+  endif
 endif # CONFIG_DYNAMIC_FTRACE
 
 # vim:syntax=make
This page took 0.022841 seconds and 4 git commands to generate.