[lttng-dev] [lttng-modules PATCH] Fix compilation on Ubuntu 14.10

Alexandre Montplaisir alexmonthy at voxpopuli.im
Fri Oct 3 15:58:02 EDT 2014


Extend the range introduced in 2260bfd to also include Ubuntu's
3.16 kernel. The API-changing patch was also backported to that series.
This will also be required for Trusty users once the the Utopic
hardware-enablement stack, including that 3.16 kernel, comes in.

Refs #838. See comment #2 for the patch in question.

Signed-off-by: Alexandre Montplaisir <alexmonthy at voxpopuli.im>
---
 lttng-statedump-impl.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/lttng-statedump-impl.c b/lttng-statedump-impl.c
index bab5d9f..e0d74f6 100644
--- a/lttng-statedump-impl.c
+++ b/lttng-statedump-impl.c
@@ -412,7 +412,8 @@ void lttng_statedump_process_ns(struct lttng_session *session,
 	 * for details.
 	 */
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0) || \
-		LTTNG_UBUNTU_KERNEL_RANGE(3,13,11,36, 3,14,0,0))
+		LTTNG_UBUNTU_KERNEL_RANGE(3,13,11,36, 3,14,0,0) || \
+		LTTNG_UBUNTU_KERNEL_RANGE(3,16,0,11, 3,17,0,0))
 	proxy = p->nsproxy;
 #else
 	rcu_read_lock();
@@ -430,7 +431,8 @@ void lttng_statedump_process_ns(struct lttng_session *session,
 			p, type, mode, submode, status, NULL);
 	}
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(3,17,0) || \
-		LTTNG_UBUNTU_KERNEL_RANGE(3,13,11,36, 3,14,0,0))
+		LTTNG_UBUNTU_KERNEL_RANGE(3,13,11,36, 3,14,0,0) || \
+		LTTNG_UBUNTU_KERNEL_RANGE(3,16,0,11, 3,17,0,0))
 	/* (nothing) */
 #else
 	rcu_read_unlock();
-- 
2.1.0




More information about the lttng-dev mailing list