forked from pool/rt-tests
- Update to upstream version v2.4 https://lore.kernel.org/linux-rt-users/20220708150017.13462-1-jkacur@redhat.com/ - Update to upstream version v2.3 https://lore.kernel.org/linux-rt-users/20211210184649.11084-1-jkacur@redhat.com/ - Remove old patch rt-tests-1.10-Makefile.patch, which installed src/cyclictest/get_cyclictest_snapshot.8. Upstream guarded it with PYLIB in 3d1976b ("Makefile: manpages: only add get_cyclictest_snapshot if PYLIB") but PYLIB should be defined due BuildRequires: python3-base - Backport runtime fixes from upcomming release: * 0001-cyclictest-Fix-threads-being-affined-even-when-a-isn.patch * 0002-rt-tests-Remove-arbitrary-num-of-threads-limits.patch * 0003-rt-tests-hackbench-Add-error-checking-to-connect-and.patch * 0004-rt-tests-hwlatdetect-Update-to-integer-division.patch - Use tarball with xz compression instead of gz - Use %autosetup (not having to add -p1 for patches) OBS-URL: https://build.opensuse.org/request/show/1037851 OBS-URL: https://build.opensuse.org/package/show/benchmark/rt-tests?expand=0&rev=27
76 lines
2.2 KiB
Diff
76 lines
2.2 KiB
Diff
From ce8792449b1284971f1f90b7b2de8fea7153676f Mon Sep 17 00:00:00 2001
|
|
From: John Kacur <jkacur@redhat.com>
|
|
Date: Thu, 6 Oct 2022 16:00:44 -0400
|
|
Subject: [PATCH 2/4] rt-tests: Remove arbitrary num of threads limits
|
|
|
|
Remove the arbitrary limit to the number of threads in pmqtest,
|
|
ptsematest, sigwaittest and svsematest.
|
|
|
|
Signed-off-by: John Kacur <jkacur@redhat.com>
|
|
|
|
[ upstream status: d356a6ae3cbf3cf4ec7fe130bfa4a8e392b910e6 ]
|
|
|
|
Signed-off-by: Petr Vorel <pvorel@suse.cz>
|
|
---
|
|
src/pmqtest/pmqtest.c | 2 +-
|
|
src/ptsematest/ptsematest.c | 2 +-
|
|
src/sigwaittest/sigwaittest.c | 2 +-
|
|
src/svsematest/svsematest.c | 2 +-
|
|
4 files changed, 4 insertions(+), 4 deletions(-)
|
|
|
|
diff --git a/src/pmqtest/pmqtest.c b/src/pmqtest/pmqtest.c
|
|
index 6ad0a92..9e14278 100644
|
|
--- a/src/pmqtest/pmqtest.c
|
|
+++ b/src/pmqtest/pmqtest.c
|
|
@@ -393,7 +393,7 @@ static void process_options(int argc, char *argv[])
|
|
}
|
|
}
|
|
|
|
- if (num_threads < 0 || num_threads > 255)
|
|
+ if (num_threads < 0)
|
|
error = 1;
|
|
|
|
if (priority < 0 || priority > 99)
|
|
diff --git a/src/ptsematest/ptsematest.c b/src/ptsematest/ptsematest.c
|
|
index e000c30..a9d6c69 100644
|
|
--- a/src/ptsematest/ptsematest.c
|
|
+++ b/src/ptsematest/ptsematest.c
|
|
@@ -299,7 +299,7 @@ static void process_options(int argc, char *argv[])
|
|
}
|
|
}
|
|
|
|
- if (num_threads < 0 || num_threads > 255)
|
|
+ if (num_threads < 0)
|
|
error = 1;
|
|
|
|
if (priority < 0 || priority > 99)
|
|
diff --git a/src/sigwaittest/sigwaittest.c b/src/sigwaittest/sigwaittest.c
|
|
index d0d79df..728176a 100644
|
|
--- a/src/sigwaittest/sigwaittest.c
|
|
+++ b/src/sigwaittest/sigwaittest.c
|
|
@@ -369,7 +369,7 @@ static void process_options(int argc, char *argv[])
|
|
if (duration < 0)
|
|
error = 1;
|
|
|
|
- if (num_threads < 1 || num_threads > 255)
|
|
+ if (num_threads < 1)
|
|
error = 1;
|
|
|
|
if (priority < 0 || priority > 99)
|
|
diff --git a/src/svsematest/svsematest.c b/src/svsematest/svsematest.c
|
|
index 22ea7bc..243b137 100644
|
|
--- a/src/svsematest/svsematest.c
|
|
+++ b/src/svsematest/svsematest.c
|
|
@@ -398,7 +398,7 @@ static void process_options(int argc, char *argv[])
|
|
if (duration < 0)
|
|
error = 0;
|
|
|
|
- if (num_threads < 1 || num_threads > 255)
|
|
+ if (num_threads < 1)
|
|
error = 1;
|
|
|
|
if (priority < 0 || priority > 99)
|
|
--
|
|
2.38.1
|
|
|