From 17e9b7422249cdeae24f4717ad4e198dad76d5a7 Mon Sep 17 00:00:00 2001 From: Mathieu Desnoyers Date: Mon, 3 Oct 2016 17:25:13 -0400 Subject: [PATCH] Documentation: lttng-modules 2.7 supports Linux < 4.8 Signed-off-by: Mathieu Desnoyers --- Makefile | 7 +++++++ README.md | 3 ++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 8b310059..731a3867 100644 --- a/Makefile +++ b/Makefile @@ -28,6 +28,13 @@ $(error Duplicate version.h files found in $(lttng_check_linux_version) and $(lt endif endif +ifneq ($(shell \ + if [ $(VERSION) -ge 5 \ + -o \( $(VERSION) -eq 4 -a $(PATCHLEVEL) -ge 8 \) ] ; then \ + echo "true" ; fi;),) +$(warning You are entering uncharted territories adventurer! Proceed with utmost caution (also, lttng-modules 2.7 does not support Linux >= 4.8. You should upgrade to a newer lttng-modules version.)) +endif + include $(MAKEFILEDIR)/Makefile.ABI.workarounds obj-m += lttng-ring-buffer-client-discard.o diff --git a/README.md b/README.md index 9934d2ef..e0bda30c 100644 --- a/README.md +++ b/README.md @@ -95,7 +95,8 @@ to print traces as a human-readable text log. Support ------- -Linux kernels >= 2.6.36 are supported. +Linux kernels >= 2.6.36 and < 4.8 are supported by LTTng modules 2.7. +Upgrade to a newer LTTng modules for more recent kernels. Notes -- 2.34.1