Fix: update btrfs instrumentation for kernel 4.14
[lttng-modules.git] / probes / Kbuild
index 2f6c7c76828681cb6795354f4e084f9e3c6e75a2..cc1c0656e4ad2a7556aab9fac1fe87c65bc800aa 100644 (file)
@@ -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.024903 seconds and 4 git commands to generate.