From: Jérémie Galarneau Date: Fri, 20 Dec 2019 03:13:10 +0000 (-0500) Subject: Fix: sessiond: check for lttng-modules ABI 2.1 rather than 2.8 X-Git-Tag: v2.12.0-rc1~110 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=3029bc92f20d249ebea8779e46f6007aa0519b9a;p=lttng-tools.git Fix: sessiond: check for lttng-modules ABI 2.1 rather than 2.8 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 Change-Id: Ief97e7e25f6f0fcb5b5b97b39abb417c1eb327ec --- diff --git a/src/bin/lttng-sessiond/kernel.c b/src/bin/lttng-sessiond/kernel.c index 1f987ef7d..2626e98b2 100644 --- a/src/bin/lttng-sessiond/kernel.c +++ b/src/bin/lttng-sessiond/kernel.c @@ -1445,9 +1445,10 @@ int kernel_supports_ring_buffer_packet_sequence_number(void) } /* - * 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 {