Notification time stamped 2022-06-29 22:38:49 UTC
From 6647dca7dcddcaddaf4e2695a114caa4a7f2a0ab Mon Sep 17 00:00:00 2001
From: Michael Jeanson <mjeanson(a)efficios.com>
Date: Feb 12 2020 19:32:31 +0000
Subject: Fix session rotation with kernel domain
---
diff --git a/0001-Fix-sessiond-check-for-lttng-modules-ABI-2.1-rather-.patch
b/0001-Fix-sessiond-check-for-lttng-modules-ABI-2.1-rather-.patch
new file mode 100644
index 0000000..98cc2c3
--- /dev/null
+++ b/0001-Fix-sessiond-check-for-lttng-modules-ABI-2.1-rather-.patch
@@ -0,0 +1,38 @@
+From 3029bc92f20d249ebea8779e46f6007aa0519b9a Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?J=C3=A9r=C3=A9mie=20Galarneau?=
+ <jeremie.galarneau(a)efficios.com>
+Date: Thu, 19 Dec 2019 22:13:10 -0500
+Subject: [PATCH lttng-tools] Fix: sessiond: check for lttng-modules ABI 2.1
+ rather than 2.8
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+The clear patchset introduces a regression that breaks session
+rotations when the kernel domain is used. The 2.8 lttng-modules ABI
+does not exist yet.
+
+The packet sequence number functionality was introduced in LTTng 2.8,
+which introduced the 2.1 kernel tracer ABI.
+
+Signed-off-by: Jérémie Galarneau <jeremie.galarneau(a)efficios.com>
+Change-Id: Ief97e7e25f6f0fcb5b5b97b39abb417c1eb327ec
+---
+ src/bin/lttng-sessiond/kernel.c | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+--- a/src/bin/lttng-sessiond/kernel.c
++++ b/src/bin/lttng-sessiond/kernel.c
+@@ -1443,9 +1443,10 @@
+ }
+
+ /*
+- * Packet sequence number was introduced in 2.8
++ * Packet sequence number was introduced in LTTng 2.8,
++ * lttng-modules ABI 2.1.
+ */
+- if (abi.major >= 2 && abi.minor >= 8) {
++ if (abi.major >= 2 && abi.minor >= 1) {
+ /* Supported */
+ ret = 1;
+ } else {
diff --git a/lttng-tools.spec b/lttng-tools.spec
index 9c43a50..b598e51 100644
--- a/lttng-tools.spec
+++ b/lttng-tools.spec
@@ -9,12 +9,13 @@
Name: lttng-tools
Version: 2.11.1
-Release: 1%{?dist}
+Release: 2%{?dist}
License: GPLv2 and LGPLv2
URL:
http://lttng.org
Summary: LTTng control and utility programs
Source0:
http://lttng.org/files/lttng-tools/%{name}-%{version}.tar.bz2
Source1: lttng-sessiond.service
+Patch0: 0001-Fix-sessiond-check-for-lttng-modules-ABI-2.1-rather-.patch
BuildRequires: autoconf
BuildRequires: automake
@@ -170,6 +171,9 @@ exit 0
%endif
%changelog
+* Wed Feb 12 2020 Michael Jeanson <mjeanson(a)efficios.com> - 2.11.1-2
+- Fix session rotation with kernel domain
+
* Fri Feb 07 2020 Michael Jeanson <mjeanson(a)efficios.com> - 2.11.1-1
- New upstream release
- Re-enable python subpackage
https://src.fedoraproject.org/rpms/lttng-tools/c/6647dca7dcddcaddaf4e2695...