summaryrefslogtreecommitdiff
path: root/dev-util/rt-tests
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-07-17 19:04:28 +0100
committerV3n3RiX <venerix@redcorelinux.org>2021-07-17 19:04:28 +0100
commit514d1bbe260df2521fe60f1a3ec87cfcfde1a829 (patch)
tree555c194dbeb0fb2ac4ad3cde7c0f6a80fd330ce2 /dev-util/rt-tests
parent4df3bf9762850b34cd1ead5c80374d1a0fc3362e (diff)
gentoo resync : 17.07.2021
Diffstat (limited to 'dev-util/rt-tests')
-rw-r--r--dev-util/rt-tests/Manifest6
-rw-r--r--dev-util/rt-tests/files/rt-tests-2.1-musl.patch (renamed from dev-util/rt-tests/files/rt-tests-1.10-musl.patch)153
-rw-r--r--dev-util/rt-tests/rt-tests-2.1.ebuild (renamed from dev-util/rt-tests/rt-tests-1.10.ebuild)4
3 files changed, 67 insertions, 96 deletions
diff --git a/dev-util/rt-tests/Manifest b/dev-util/rt-tests/Manifest
index 6172604e44d5..849de712a92d 100644
--- a/dev-util/rt-tests/Manifest
+++ b/dev-util/rt-tests/Manifest
@@ -1,4 +1,4 @@
-AUX rt-tests-1.10-musl.patch 10825 BLAKE2B 64195bfd2ca512721701613a1aa881e3d17290d75bc3ec991bdc8c7092b8cc9ba055fe86a5390350158c7b3a442bcd35f07a3eeb148fe6c701a4ada7840934cf SHA512 3a5c47315e3630c38600d359af4f4b9ef572c7db7ae550fa57512b72f50bb5d762933aba3594876b66ba37d85dfecc3ffd6c0172c951f8c48d4ff37620cee674
-DIST rt-tests-1.10.tar.xz 112300 BLAKE2B b38a7357b1402de94661014e71ed9fc48d9dde6cabbe72ed4031841b57f7fb76a01dda03c7888f11d8e5e9c11cda8281dae1b437f0d1ff971d2941547f659103 SHA512 9512419b364746ad490894c7184a391f0e8d571477ad636abff8ed473151c6f2c263475ca4aa7d498e81c18e17e42ae82260693b90bce4ef9889e0eaf0b77b58
-EBUILD rt-tests-1.10.ebuild 903 BLAKE2B c989e36ce497c25a3354344c5f62638a0d1791087414884636bf0bb596451b4702773ab198e3257d0bf3961cbeb80168a53f0af3f51ee998558ae74dda5b9a7c SHA512 99d386c80e8e9a8d51f2e467361fdbce6f54c2fad1a6b4cd956c6ff9515081809265595a9603b62dc82e786eea8590a29091b4d145b1429554e337347b71574c
+AUX rt-tests-2.1-musl.patch 9594 BLAKE2B bd05ee635f1213d202428260d5026e34bce319666f64ddd199efa981ab13e5d1eaff67eabeb435a9479970b27de52e77fed2ce2377b03675d629f4a6dcf40cb8 SHA512 0ad7dd21a9821567d9ea2a52582b54c1697c842b08eeb8f627410d24fc2e812e04e642a7355ba9a907720cecbdbc0d973e711f315b0e185a8f1046c448d067b1
+DIST rt-tests-2.1.tar.xz 114892 BLAKE2B 25a382c898ffdbbe7b6c3f69f440b87ca6b88cc634aae06a3e02154954b8b50da46e2f2b3291d7473bb0ae533f5a90a7769433650bab3f7c229a5d3022e32b50 SHA512 7abab6c1191247ac44f4e5193752474756d82fdf1d8a3b69c92c8d37bd4fe8458444d2165894fc8483590809ff5b4f1c755d66afb296e72041f9efbedd048d0d
+EBUILD rt-tests-2.1.ebuild 904 BLAKE2B 0979405e05778f450e9a3fd18fd942fb9be2753b58612fc81cfd5b516e7527bfa7ada38b7b444747fda618a9d69df26bb2c665f5420d64c0afec3b20bf6b488a SHA512 481b95eb148a0abb46893a4f97022e289c408a42c1b8a48f950555ff143f697a7118cde872d85a841212f7641671f8ed6b2e036c645cc959c02aa4db68cac350
MISC metadata.xml 748 BLAKE2B 6603446c7aa66d6586f9e8dfa53c6338f9287c3ecf6768b67554832fa45ab38f488dc54d077947e46973c251d454320adf8788ebd8b797055604b26c878a428e SHA512 c2c39041a28bfc866667589c67f8c3a8b044489fe4b10b247ee770f41b84fa75b1d55eaf70d94e0e43d27e82774aff982c4fe72555933baaedcb208b01d17cdd
diff --git a/dev-util/rt-tests/files/rt-tests-1.10-musl.patch b/dev-util/rt-tests/files/rt-tests-2.1-musl.patch
index 2dc17d504922..caa8d415aad5 100644
--- a/dev-util/rt-tests/files/rt-tests-1.10-musl.patch
+++ b/dev-util/rt-tests/files/rt-tests-2.1-musl.patch
@@ -14,23 +14,21 @@ With these changes applied, the rt-tests seem to run fine.
Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
---
- Makefile | 5 --
- src/backfire/sendme.c | 1 +
- src/cyclictest/cyclictest.c | 70 ++++-----------------------
- src/hackbench/hackbench.c | 4 +-
- src/include/musl.h | 28 +++++++++++
- src/lib/rt-utils.c | 1 +
- src/pi_tests/classic_pi.c | 2 +
- src/pi_tests/tst-mutexpi10.c | 2 +
- src/pmqtest/pmqtest.c | 1 +
- src/ptsematest/ptsematest.c | 1 +
- src/rt-migrate-test/rt-migrate-test.c | 1 +
- src/sched_deadline/cyclicdeadline.c | 2 +
- 12 files changed, 51 insertions(+), 67 deletions(-)
+ Makefile | 5 --
+ src/backfire/sendme.c | 1
+ src/cyclictest/cyclictest.c | 70 ++++------------------------------
+ src/hackbench/hackbench.c | 4 +
+ src/include/musl.h | 28 +++++++++++++
+ src/lib/rt-utils.c | 1
+ src/pi_tests/classic_pi.c | 2
+ src/pi_tests/tst-mutexpi10.c | 2
+ src/pmqtest/pmqtest.c | 1
+ src/ptsematest/ptsematest.c | 1
+ src/rt-migrate-test/rt-migrate-test.c | 1
+ src/sched_deadline/cyclicdeadline.c | 1
+ 12 files changed, 50 insertions(+), 67 deletions(-)
create mode 100644 src/include/musl.h
-diff --git a/Makefile b/Makefile
-index 636f1914a777..01732ee2647f 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,6 @@ OBJDIR = bld
@@ -49,7 +47,7 @@ index 636f1914a777..01732ee2647f 100644
src/ptsematest/ptsematest.8 \
src/rt-migrate-test/rt-migrate-test.8 \
src/sigwaittest/sigwaittest.8 \
-@@ -130,9 +128,6 @@ deadline_test: $(OBJDIR)/deadline_test.o $(OBJDIR)/librttest.a
+@@ -130,9 +128,6 @@ deadline_test: $(OBJDIR)/deadline_test.o
signaltest: $(OBJDIR)/signaltest.o $(OBJDIR)/librttest.a $(OBJDIR)/librttestnuma.a
$(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(RTTESTLIB) $(RTTESTNUMA)
@@ -59,31 +57,27 @@ index 636f1914a777..01732ee2647f 100644
hwlatdetect: src/hwlatdetect/hwlatdetect.py
chmod +x src/hwlatdetect/hwlatdetect.py
ln -s src/hwlatdetect/hwlatdetect.py hwlatdetect
-diff --git a/src/backfire/sendme.c b/src/backfire/sendme.c
-index d963723b1c93..b355bbbcfece 100644
--- a/src/backfire/sendme.c
+++ b/src/backfire/sendme.c
-@@ -31,6 +31,7 @@
+@@ -29,6 +29,7 @@
+ #include <string.h>
+ #include <time.h>
#include <errno.h>
++#include "musl.h"
#include "rt-utils.h"
#include "rt-get_cpu.h"
-+#include "musl.h"
- #include <utmpx.h>
- #include <sys/types.h>
-diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c
-index f38c453f1975..b6b91218f756 100644
--- a/src/cyclictest/cyclictest.c
+++ b/src/cyclictest/cyclictest.c
-@@ -37,6 +37,7 @@
-
- #include "rt-utils.h"
- #include "rt-numa.h"
+@@ -33,6 +33,7 @@
+ #include <sys/utsname.h>
+ #include <sys/mman.h>
+ #include <sys/syscall.h>
+#include "musl.h"
+ #include "rt_numa.h"
- #include <bionic.h>
-
-@@ -500,12 +501,8 @@ static void *timerthread(void *param)
+ #include "rt-utils.h"
+@@ -502,12 +503,8 @@ static void *timerthread(void *param)
{
struct thread_param *par = param;
struct sched_param schedp;
@@ -96,7 +90,7 @@ index f38c453f1975..b6b91218f756 100644
struct thread_stat *stat = par->stats;
int stopped = 0;
cpu_set_t mask;
-@@ -536,14 +533,6 @@ static void *timerthread(void *param)
+@@ -538,14 +535,6 @@ static void *timerthread(void *param)
sigaddset(&sigset, par->signal);
sigprocmask(SIG_BLOCK, &sigset, NULL);
@@ -111,7 +105,7 @@ index f38c453f1975..b6b91218f756 100644
memset(&schedp, 0, sizeof(schedp));
schedp.sched_priority = par->prio;
if (setscheduler(0, par->policy, &schedp))
-@@ -598,20 +587,6 @@ static void *timerthread(void *param)
+@@ -600,20 +589,6 @@ static void *timerthread(void *param)
stop = now;
stop.tv_sec += duration;
}
@@ -132,7 +126,7 @@ index f38c453f1975..b6b91218f756 100644
stat->threadstarted++;
-@@ -619,16 +594,10 @@ static void *timerthread(void *param)
+@@ -621,16 +596,10 @@ static void *timerthread(void *param)
uint64_t diff;
unsigned long diff_smi = 0;
@@ -150,7 +144,7 @@ index f38c453f1975..b6b91218f756 100644
case MODE_CLOCK_NANOSLEEP:
if (par->timermode == TIMER_ABSTIME) {
ret = clock_nanosleep(par->clock, TIMER_ABSTIME,
-@@ -749,11 +718,6 @@ static void *timerthread(void *param)
+@@ -751,11 +720,6 @@ static void *timerthread(void *param)
next.tv_sec += interval.tv_sec;
next.tv_nsec += interval.tv_nsec;
@@ -162,7 +156,7 @@ index f38c453f1975..b6b91218f756 100644
tsnorm(&next);
while (tsgreater(&now, &next)) {
-@@ -778,17 +742,6 @@ out:
+@@ -780,17 +744,6 @@ out:
pthread_mutex_unlock(&refresh_on_max_lock);
}
@@ -180,7 +174,7 @@ index f38c453f1975..b6b91218f756 100644
/* close msr file */
if (smi)
close(par->msr_fd);
-@@ -1159,7 +1112,8 @@ static void process_options(int argc, char *argv[], int max_cpus)
+@@ -1174,7 +1127,8 @@ static void process_options(int argc, ch
case OPT_VERBOSE: verbose = 1; break;
case 'x':
case OPT_POSIX_TIMERS:
@@ -190,7 +184,7 @@ index f38c453f1975..b6b91218f756 100644
case '?':
case OPT_HELP:
display_help(0); break;
-@@ -1192,13 +1146,6 @@ static void process_options(int argc, char *argv[], int max_cpus)
+@@ -1207,13 +1161,6 @@ static void process_options(int argc, ch
}
}
@@ -203,8 +197,8 @@ index f38c453f1975..b6b91218f756 100644
-
/* if smp wasn't requested, test for numa automatically */
if (!smp) {
- if (numa_initialize())
-@@ -1881,7 +1828,6 @@ int main(int argc, char **argv)
+ numa = numa_initialize();
+@@ -1943,7 +1890,6 @@ int main(int argc, char **argv)
}
@@ -212,7 +206,7 @@ index f38c453f1975..b6b91218f756 100644
mode = use_nanosleep + use_system;
sigemptyset(&sigset);
-@@ -1931,16 +1877,18 @@ int main(int argc, char **argv)
+@@ -1993,16 +1939,18 @@ int main(int argc, char **argv)
void *stack;
void *currstk;
size_t stksize;
@@ -234,8 +228,6 @@ index f38c453f1975..b6b91218f756 100644
stksize = PTHREAD_STACK_MIN * 2;
/* allocate memory for a stack on appropriate node */
-diff --git a/src/hackbench/hackbench.c b/src/hackbench/hackbench.c
-index 268c23233004..bbbb29a3a430 100644
--- a/src/hackbench/hackbench.c
+++ b/src/hackbench/hackbench.c
@@ -24,13 +24,15 @@
@@ -255,9 +247,6 @@ index 268c23233004..bbbb29a3a430 100644
static unsigned int datasize = 100;
static unsigned int loops = 100;
static unsigned int num_groups = 10;
-diff --git a/src/include/musl.h b/src/include/musl.h
-new file mode 100644
-index 000000000000..ea5075e768c8
--- /dev/null
+++ b/src/include/musl.h
@@ -0,0 +1,28 @@
@@ -289,20 +278,16 @@ index 000000000000..ea5075e768c8
+ syscall(SYS_sched_setscheduler, pid, policy, param)
+
+#endif /* _MUSL_H_ */
-diff --git a/src/lib/rt-utils.c b/src/lib/rt-utils.c
-index 2d68d62cd875..529d427c8084 100644
--- a/src/lib/rt-utils.c
+++ b/src/lib/rt-utils.c
-@@ -23,6 +23,7 @@
+@@ -24,6 +24,7 @@
+ #include <time.h>
+ #include <sys/time.h>
+
++#include "musl.h"
#include "rt-utils.h"
#include "rt-sched.h"
- #include "error.h"
-+#include "musl.h"
-
- #define TRACEBUFSIZ 1024
-
-diff --git a/src/pi_tests/classic_pi.c b/src/pi_tests/classic_pi.c
-index 64af8890276f..bb088d3973b2 100644
+ #include "rt-error.h"
--- a/src/pi_tests/classic_pi.c
+++ b/src/pi_tests/classic_pi.c
@@ -34,6 +34,8 @@
@@ -314,8 +299,6 @@ index 64af8890276f..bb088d3973b2 100644
/* test timeout */
#define TIMEOUT 2
-diff --git a/src/pi_tests/tst-mutexpi10.c b/src/pi_tests/tst-mutexpi10.c
-index 97a345edd26e..1028d344edff 100644
--- a/src/pi_tests/tst-mutexpi10.c
+++ b/src/pi_tests/tst-mutexpi10.c
@@ -35,6 +35,8 @@
@@ -327,55 +310,43 @@ index 97a345edd26e..1028d344edff 100644
/* test timeout */
#define TIMEOUT 2
-diff --git a/src/pmqtest/pmqtest.c b/src/pmqtest/pmqtest.c
-index 5f7a24d55db6..555679cf36ef 100644
--- a/src/pmqtest/pmqtest.c
+++ b/src/pmqtest/pmqtest.c
@@ -24,6 +24,7 @@
- #include "rt-utils.h"
- #include "rt-get_cpu.h"
- #include "error.h"
-+#include "musl.h"
-
#include <pthread.h>
+ #include <inttypes.h>
-diff --git a/src/ptsematest/ptsematest.c b/src/ptsematest/ptsematest.c
-index 2e392299fdc4..b45d35755865 100644
++#include "musl.h"
+ #include "rt-utils.h"
+ #include "rt-get_cpu.h"
+ #include "rt-error.h"
--- a/src/ptsematest/ptsematest.c
+++ b/src/ptsematest/ptsematest.c
@@ -22,6 +22,7 @@
- #include "rt-utils.h"
- #include "rt-get_cpu.h"
- #include "error.h"
-+#include "musl.h"
-
#include <pthread.h>
+ #include <inttypes.h>
-diff --git a/src/rt-migrate-test/rt-migrate-test.c b/src/rt-migrate-test/rt-migrate-test.c
-index 9bf716c9178c..f51d388d9150 100644
++#include "musl.h"
+ #include "rt-utils.h"
+ #include "rt-get_cpu.h"
+ #include "rt-error.h"
--- a/src/rt-migrate-test/rt-migrate-test.c
+++ b/src/rt-migrate-test/rt-migrate-test.c
-@@ -25,6 +25,7 @@
- #include <sched.h>
- #include <pthread.h>
- #include "rt-utils.h"
+@@ -27,6 +27,7 @@
+
+ #include <linux/unistd.h>
+
+#include "musl.h"
+ #include "rt-utils.h"
int nr_tasks;
- int lfd;
-diff --git a/src/sched_deadline/cyclicdeadline.c b/src/sched_deadline/cyclicdeadline.c
-index 98eb367248ac..45b27f72a5a7 100644
--- a/src/sched_deadline/cyclicdeadline.c
+++ b/src/sched_deadline/cyclicdeadline.c
-@@ -34,6 +34,8 @@
- #include <rt-sched.h>
- #include <error.h>
+@@ -30,6 +30,7 @@
+ #include <linux/unistd.h>
+ #include <linux/magic.h>
+#include "musl.h"
-+
- #define _STR(x) #x
- #define STR(x) _STR(x)
- #ifndef MAXPATH
---
-2.26.2
-
+ #include "rt-utils.h"
+ #include "rt-sched.h"
+ #include "rt-error.h"
diff --git a/dev-util/rt-tests/rt-tests-1.10.ebuild b/dev-util/rt-tests/rt-tests-2.1.ebuild
index 22e1c39323e2..8f2df0599b23 100644
--- a/dev-util/rt-tests/rt-tests-1.10.ebuild
+++ b/dev-util/rt-tests/rt-tests-2.1.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2020 Gentoo Authors
+# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
-PYTHON_COMPAT=( python3_{7..9} )
+PYTHON_COMPAT=( python3_{7..10} )
inherit python-single-r1 toolchain-funcs