aboutsummaryrefslogtreecommitdiffstats
path: root/sctp-test/0001-disable-the-use-of-scheduler-priorities-and-mlockall.patch
blob: b337c6d2c7ab156baa48765f9baa221777fe40f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From 9f4fc59acf3df854da790da3824c1a3af497c40b Mon Sep 17 00:00:00 2001
From: Oliver Smith <osmith@sysmocom.de>
Date: Tue, 4 Sep 2018 14:24:52 +0200
Subject: [PATCH] disable the use of scheduler priorities and mlockall

This doesn't work inside of docker, so let's disable it

(This is the same patch as the one by laforge, just re-applied to
current master)
---
 gtests/net/packetdrill/run.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/gtests/net/packetdrill/run.c b/gtests/net/packetdrill/run.c
index 8467bb7..9268b50 100644
--- a/gtests/net/packetdrill/run.c
+++ b/gtests/net/packetdrill/run.c
@@ -454,7 +454,7 @@ void set_scheduling_priority(void)
 	if (num_cpus <= 1)
 		return;
 
-#if !defined(__OpenBSD__) && !defined(__APPLE__)
+#if 0
 	/* Chose a real-time policy, but use SCHED_RR instead of
 	 * SCHED_FIFO, so that we round-robin among real-time threads
 	 * of the same priority. In practice this shouldn't matter,
@@ -481,7 +481,7 @@ void set_scheduling_priority(void)
  */
 void lock_memory(void)
 {
-#if !defined(__APPLE__)
+#if 0
 	if (mlockall(MCL_CURRENT | MCL_FUTURE))
 		die_perror("mlockall(MCL_CURRENT | MCL_FUTURE)");
 #endif
-- 
2.17.1