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.11.2~1 X-Git-Url: https://git.lttng.org./?a=commitdiff_plain;h=6ae77d9fda9cd7e241e7a1f2ab2492fb48c3e625;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 b5c4a5e12..5fc6ae437 100644 --- a/src/bin/lttng-sessiond/kernel.c +++ b/src/bin/lttng-sessiond/kernel.c @@ -1443,9 +1443,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 {