File update-timer-instrumentation-on-4.16-and-4.14-rt.patch of Package lttng-modules.18435

From: Tony Jones <tonyj@suse.de>
Date: Mon Feb 12 18:31:40 2018 +0100
Subject: update timer instrumentation on 4.16 and 4.14-rt
Signed-off-by: Tony Jones <tonyj@suse.de>

Rework Git-commit: 562860aa5d13249d2c80e51080a3437ef5d2fe0b for SUSE kernel

--- a/instrumentation/events/lttng-module/timer.h
+++ b/instrumentation/events/lttng-module/timer.h
@@ -184,7 +184,8 @@
  * @timer: pointer to struct hrtimer
  */
 #if (LINUX_VERSION_CODE >= KERNEL_VERSION(4,16,0) || \
-	LTTNG_RT_KERNEL_RANGE(4,14,0,0, 4,15,0,0))
+	LTTNG_RT_KERNEL_RANGE(4,14,0,0, 4,15,0,0) || \
+	defined(CONFIG_PREEMPT_RT_BASE) && defined(CONFIG_SUSE_KERNEL))
 LTTNG_TRACEPOINT_EVENT_MAP(hrtimer_start,
 
 	timer_hrtimer_start,


openSUSE Build Service is sponsored by