File update-timer-instrumentation-on-4.16-and-4.14-rt.patch of Package lttng-modules.11968
From: Tony Jones <tonyj@suse.de>S
Date: Mon Feb 12 18:31:40 2018 +0100
Subject: update timer instrumentation on 4.16 and 4.14-rt
References: none
Signed-off-by: Tony Jones <tonyj@suse.de>
X-Info: adjust for SUSE RT Kernel
diff --git a/instrumentation/events/lttng-module/timer.h b/instrumentation/events/lttng-module/timer.h
index d62fd25..6f0cb7f 100644
--- a/instrumentation/events/lttng-module/timer.h
+++ b/instrumentation/events/lttng-module/timer.h
@@ -162,7 +162,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,