File: fix-linux-rt-4.9-sched.patch

package info (click to toggle)
lttng-modules 2.14.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,800 kB
  • sloc: ansic: 74,789; sh: 548; makefile: 62
file content (14 lines) | stat: -rw-r--r-- 545 bytes parent folder | download
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.