summaryrefslogtreecommitdiff
path: root/dev-util/rt-tests
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2021-01-01 21:06:00 +0000
committerV3n3RiX <venerix@redcorelinux.org>2021-01-01 21:06:00 +0000
commit129160ec854dca4c3fedb5bcfbcb56930371da0f (patch)
tree53bf797418ac5e9b99c41ca0382c87b82421e5de /dev-util/rt-tests
parent441d1370330332b7d78f238d2f5e13f7aed5e4e0 (diff)
gentoo new year resync : 01.01.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-1.10-musl.patch (renamed from dev-util/rt-tests/files/rt-tests-1.9-musl.patch)65
-rw-r--r--dev-util/rt-tests/rt-tests-1.10.ebuild (renamed from dev-util/rt-tests/rt-tests-1.9.ebuild)2
3 files changed, 37 insertions, 36 deletions
diff --git a/dev-util/rt-tests/Manifest b/dev-util/rt-tests/Manifest
index 9d07ff3cb391..753d1747c988 100644
--- a/dev-util/rt-tests/Manifest
+++ b/dev-util/rt-tests/Manifest
@@ -1,4 +1,4 @@
-AUX rt-tests-1.9-musl.patch 10822 BLAKE2B 144562d6dc921c8ae89e1ae017cc5bddb7aad7a4167194df1a8ae647678310da71b0c2df4cd18d9ba53fbbfccb5e6a92f2ec33ca055c9def592ca973a0bc0381 SHA512 56b538bc7ea327a5362d03b3207aa533ea4aa7067584335f7e92449869a37b355170520fa6b54e7aa175290bff718af6970c791884f9c2bc68ff624926ae22d0
-DIST rt-tests-1.9.tar.xz 112180 BLAKE2B fa9b7b70bd9ae5d5f5e1077ddbd916bc4556d079d4067f16289ab34fec16ed0c8074607a7a8e50ea7bad4df318a063074f1c0ec5c2e895851d3045d51a8ecd74 SHA512 66f086dbda31567e6dc5297424ec66b2c6bd7cb0e065c32e02c326f33967f3a301b1b34f9eb0dd0acd853279c64fb1c2bc271ac26648f4abc3f6090ba6484cfa
-EBUILD rt-tests-1.9.ebuild 923 BLAKE2B bd37db6fc2c3b1383cc8bd231d3ea46033b8dd5b133b227fc27b43b23b277cf74f4b9d222c05f4d0110346bb2b74213ae1e68460462c5ddfc89b46aa8042852b SHA512 1982e3f6a1970a3c1fa9cdcc14cc4ab647b278de78a07caefc5ecc3a96eb577555c4fa3d5cd88d746b20660910f2e87b10fe680a988cfb43079fde09cedd8314
+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 7c5eb3163b6fa132617f47043b0432ea0673a5b29c3b900f09d5cf372773445a5c4688498f15f732e6094c99173a612ac1a2735405dc991122fdecc0baf0f942 SHA512 0ab43ea8a5abf2d28324c0a1f61e00b65389a48a113daa7cac2c250a88b92e3eb1d28e1fc53ddaa90f0992b760f6cca55358256f21409a27f33dedad486907bc
MISC metadata.xml 718 BLAKE2B e09ef2dd4bd98df6e36e684105242e579fd86dfa28fd02f6b04ea78f91dc2089485a54497edb0a9a1b3c36fe5033eb1e98b626735b82d2a765150812f724bb93 SHA512 8b7eb83545e11f2f5786f0e5fbc47ce15fbb9a364ad9fcf51a7c47e8a05e70d3d0c48c2f69b5f6abd4b839514bc2575a66a43202204340137ec3d8a9f41564e1
diff --git a/dev-util/rt-tests/files/rt-tests-1.9-musl.patch b/dev-util/rt-tests/files/rt-tests-1.10-musl.patch
index 0114cd004473..2dc17d504922 100644
--- a/dev-util/rt-tests/files/rt-tests-1.9-musl.patch
+++ b/dev-util/rt-tests/files/rt-tests-1.10-musl.patch
@@ -1,4 +1,4 @@
-From fd78f200ac8e9d1eb7579cd9e4adaaa1a4dc2d46 Mon Sep 17 00:00:00 2001
+From 0b7a1e0d3463aa8aa4b7dcad0ec154e658d68036 Mon Sep 17 00:00:00 2001
From: Kurt Kanzenbach <kurt@kmk-computers.de>
Date: Wed, 1 Apr 2020 20:15:24 +0200
Subject: [PATCH] all: Fix musl build
@@ -16,7 +16,7 @@ Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
---
Makefile | 5 --
src/backfire/sendme.c | 1 +
- src/cyclictest/cyclictest.c | 68 ++++-----------------------
+ src/cyclictest/cyclictest.c | 70 ++++-----------------------
src/hackbench/hackbench.c | 4 +-
src/include/musl.h | 28 +++++++++++
src/lib/rt-utils.c | 1 +
@@ -26,11 +26,11 @@ Signed-off-by: Kurt Kanzenbach <kurt@kmk-computers.de>
src/ptsematest/ptsematest.c | 1 +
src/rt-migrate-test/rt-migrate-test.c | 1 +
src/sched_deadline/cyclicdeadline.c | 2 +
- 12 files changed, 50 insertions(+), 66 deletions(-)
+ 12 files changed, 51 insertions(+), 67 deletions(-)
create mode 100644 src/include/musl.h
diff --git a/Makefile b/Makefile
-index c3ebbd7b2a2e..8815c113c0df 100644
+index 636f1914a777..01732ee2647f 100644
--- a/Makefile
+++ b/Makefile
@@ -7,7 +7,6 @@ OBJDIR = bld
@@ -41,17 +41,17 @@ index c3ebbd7b2a2e..8815c113c0df 100644
pmqtest.c \
ptsematest.c \
rt-migrate-test.c \
-@@ -36,7 +35,6 @@ LDFLAGS ?=
- PYLIB ?= $(shell python3 -c 'import distutils.sysconfig; print (distutils.sysconfig.get_python_lib())')
+@@ -42,7 +41,6 @@ ifeq (${PYLIB},)
+ endif
MANPAGES = src/cyclictest/cyclictest.8 \
- src/pi_tests/pi_stress.8 \
src/ptsematest/ptsematest.8 \
src/rt-migrate-test/rt-migrate-test.8 \
src/sigwaittest/sigwaittest.8 \
-@@ -129,9 +127,6 @@ deadline_test: $(OBJDIR)/deadline_test.o $(OBJDIR)/librttest.a
- signaltest: $(OBJDIR)/signaltest.o $(OBJDIR)/librttest.a
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(RTTESTLIB)
+@@ -130,9 +128,6 @@ deadline_test: $(OBJDIR)/deadline_test.o $(OBJDIR)/librttest.a
+ signaltest: $(OBJDIR)/signaltest.o $(OBJDIR)/librttest.a $(OBJDIR)/librttestnuma.a
+ $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(RTTESTLIB) $(RTTESTNUMA)
-pi_stress: $(OBJDIR)/pi_stress.o $(OBJDIR)/librttest.a
- $(CC) $(CFLAGS) $(LDFLAGS) -o $@ $< $(LIBS) $(RTTESTLIB)
@@ -72,18 +72,18 @@ index d963723b1c93..b355bbbcfece 100644
#include <utmpx.h>
#include <sys/types.h>
diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c
-index b41d42f13f24..56b27a4e0547 100644
+index f38c453f1975..b6b91218f756 100644
--- a/src/cyclictest/cyclictest.c
+++ b/src/cyclictest/cyclictest.c
-@@ -36,6 +36,7 @@
- #include "rt_numa.h"
+@@ -37,6 +37,7 @@
#include "rt-utils.h"
+ #include "rt-numa.h"
+#include "musl.h"
#include <bionic.h>
-@@ -501,12 +502,8 @@ static void *timerthread(void *param)
+@@ -500,12 +501,8 @@ static void *timerthread(void *param)
{
struct thread_param *par = param;
struct sched_param schedp;
@@ -96,7 +96,7 @@ index b41d42f13f24..56b27a4e0547 100644
struct thread_stat *stat = par->stats;
int stopped = 0;
cpu_set_t mask;
-@@ -537,14 +534,6 @@ static void *timerthread(void *param)
+@@ -536,14 +533,6 @@ static void *timerthread(void *param)
sigaddset(&sigset, par->signal);
sigprocmask(SIG_BLOCK, &sigset, NULL);
@@ -111,7 +111,7 @@ index b41d42f13f24..56b27a4e0547 100644
memset(&schedp, 0, sizeof(schedp));
schedp.sched_priority = par->prio;
if (setscheduler(0, par->policy, &schedp))
-@@ -599,20 +588,6 @@ static void *timerthread(void *param)
+@@ -598,20 +587,6 @@ static void *timerthread(void *param)
stop = now;
stop.tv_sec += duration;
}
@@ -132,7 +132,7 @@ index b41d42f13f24..56b27a4e0547 100644
stat->threadstarted++;
-@@ -620,16 +595,10 @@ static void *timerthread(void *param)
+@@ -619,16 +594,10 @@ static void *timerthread(void *param)
uint64_t diff;
unsigned long diff_smi = 0;
@@ -150,7 +150,7 @@ index b41d42f13f24..56b27a4e0547 100644
case MODE_CLOCK_NANOSLEEP:
if (par->timermode == TIMER_ABSTIME) {
ret = clock_nanosleep(par->clock, TIMER_ABSTIME,
-@@ -751,11 +720,6 @@ static void *timerthread(void *param)
+@@ -749,11 +718,6 @@ static void *timerthread(void *param)
next.tv_sec += interval.tv_sec;
next.tv_nsec += interval.tv_nsec;
@@ -162,7 +162,7 @@ index b41d42f13f24..56b27a4e0547 100644
tsnorm(&next);
while (tsgreater(&now, &next)) {
-@@ -780,17 +744,6 @@ out:
+@@ -778,17 +742,6 @@ out:
pthread_mutex_unlock(&refresh_on_max_lock);
}
@@ -180,7 +180,7 @@ index b41d42f13f24..56b27a4e0547 100644
/* close msr file */
if (smi)
close(par->msr_fd);
-@@ -1305,7 +1258,8 @@ static void process_options (int argc, char *argv[], int max_cpus)
+@@ -1159,7 +1112,8 @@ static void process_options(int argc, char *argv[], int max_cpus)
case OPT_VERBOSE: verbose = 1; break;
case 'x':
case OPT_POSIX_TIMERS:
@@ -190,7 +190,7 @@ index b41d42f13f24..56b27a4e0547 100644
case '?':
case OPT_HELP:
display_help(0); break;
-@@ -1338,13 +1292,6 @@ static void process_options (int argc, char *argv[], int max_cpus)
+@@ -1192,13 +1146,6 @@ static void process_options(int argc, char *argv[], int max_cpus)
}
}
@@ -203,8 +203,8 @@ index b41d42f13f24..56b27a4e0547 100644
-
/* if smp wasn't requested, test for numa automatically */
if (!smp) {
- #ifdef NUMA
-@@ -2038,7 +1985,6 @@ int main(int argc, char **argv)
+ if (numa_initialize())
+@@ -1881,7 +1828,6 @@ int main(int argc, char **argv)
}
@@ -212,7 +212,7 @@ index b41d42f13f24..56b27a4e0547 100644
mode = use_nanosleep + use_system;
sigemptyset(&sigset);
-@@ -2088,16 +2034,18 @@ int main(int argc, char **argv)
+@@ -1931,16 +1877,18 @@ int main(int argc, char **argv)
void *stack;
void *currstk;
size_t stksize;
@@ -221,8 +221,9 @@ index b41d42f13f24..56b27a4e0547 100644
/* find the memory node associated with the cpu i */
node = rt_numa_numa_node_of_cpu(cpu);
- /* get the stack size set for for this thread */
+- /* get the stack size set for this thread */
- if (pthread_attr_getstack(&attr, &currstk, &stksize))
++ /* get the stack size set for for this thread */
+ err = pthread_attr_getstack(&attr, &currstk, &stksize);
+ if (err != EINVAL)
fatal("failed to get stack size for thread %d\n", i);
@@ -234,7 +235,7 @@ index b41d42f13f24..56b27a4e0547 100644
/* allocate memory for a stack on appropriate node */
diff --git a/src/hackbench/hackbench.c b/src/hackbench/hackbench.c
-index 2cddff654df6..46f09fa9e7ba 100644
+index 268c23233004..bbbb29a3a430 100644
--- a/src/hackbench/hackbench.c
+++ b/src/hackbench/hackbench.c
@@ -24,13 +24,15 @@
@@ -289,7 +290,7 @@ index 000000000000..ea5075e768c8
+
+#endif /* _MUSL_H_ */
diff --git a/src/lib/rt-utils.c b/src/lib/rt-utils.c
-index f786588706cd..c1a55272dfdb 100644
+index 2d68d62cd875..529d427c8084 100644
--- a/src/lib/rt-utils.c
+++ b/src/lib/rt-utils.c
@@ -23,6 +23,7 @@
@@ -327,7 +328,7 @@ index 97a345edd26e..1028d344edff 100644
#define TIMEOUT 2
diff --git a/src/pmqtest/pmqtest.c b/src/pmqtest/pmqtest.c
-index 5db8d348cdf8..2de6c1417e4a 100644
+index 5f7a24d55db6..555679cf36ef 100644
--- a/src/pmqtest/pmqtest.c
+++ b/src/pmqtest/pmqtest.c
@@ -24,6 +24,7 @@
@@ -339,7 +340,7 @@ index 5db8d348cdf8..2de6c1417e4a 100644
#include <pthread.h>
diff --git a/src/ptsematest/ptsematest.c b/src/ptsematest/ptsematest.c
-index de8ea2fe1b0c..1568f3b78711 100644
+index 2e392299fdc4..b45d35755865 100644
--- a/src/ptsematest/ptsematest.c
+++ b/src/ptsematest/ptsematest.c
@@ -22,6 +22,7 @@
@@ -351,7 +352,7 @@ index de8ea2fe1b0c..1568f3b78711 100644
#include <pthread.h>
diff --git a/src/rt-migrate-test/rt-migrate-test.c b/src/rt-migrate-test/rt-migrate-test.c
-index 4863238edeb4..9f1aba159dc7 100644
+index 9bf716c9178c..f51d388d9150 100644
--- a/src/rt-migrate-test/rt-migrate-test.c
+++ b/src/rt-migrate-test/rt-migrate-test.c
@@ -25,6 +25,7 @@
@@ -363,12 +364,12 @@ index 4863238edeb4..9f1aba159dc7 100644
int nr_tasks;
int lfd;
diff --git a/src/sched_deadline/cyclicdeadline.c b/src/sched_deadline/cyclicdeadline.c
-index a08e28e73c42..675a0ea1a162 100644
+index 98eb367248ac..45b27f72a5a7 100644
--- a/src/sched_deadline/cyclicdeadline.c
+++ b/src/sched_deadline/cyclicdeadline.c
-@@ -32,6 +32,8 @@
- #include <rt-utils.h>
+@@ -34,6 +34,8 @@
#include <rt-sched.h>
+ #include <error.h>
+#include "musl.h"
+
diff --git a/dev-util/rt-tests/rt-tests-1.9.ebuild b/dev-util/rt-tests/rt-tests-1.10.ebuild
index cb4f2d293518..2a930acd4b6f 100644
--- a/dev-util/rt-tests/rt-tests-1.9.ebuild
+++ b/dev-util/rt-tests/rt-tests-1.10.ebuild
@@ -32,7 +32,7 @@ src_compile() {
}
src_install() {
- emake prefix=/usr DESTDIR="${D}" MAN_COMPRESSION=none install
+ emake prefix=/usr DESTDIR="${ED}" install
python_fix_shebang "${ED}"
python_optimize
}