1 2 3 4 5 6 7 8 9 10 11 12 13 14
|
Fix build of sched instrumentation on linux-rt >= 4.9.27-rt8
--- a/include/instrumentation/events/sched.h
+++ b/include/instrumentation/events/sched.h
@@ -528,7 +528,8 @@
#if (LTTNG_LINUX_VERSION_CODE >= LTTNG_KERNEL_VERSION(4,12,0) || \
LTTNG_RT_KERNEL_RANGE(4,9,27,18, 4,10,0,0) || \
- LTTNG_RT_KERNEL_RANGE(4,11,5,1, 4,12,0,0))
+ LTTNG_RT_KERNEL_RANGE(4,11,5,1, 4,12,0,0) || \
+ (LTTNG_KERNEL_RANGE(4,9,27, 4,10,0) && defined(CONFIG_PREEMPT_RT_FULL)))
/*
* Tracepoint for showing priority inheritance modifying a tasks
* priority.
|