Auto sync2gitlab import of rt-tests-2.4-2.el8.src.rpm
This commit is contained in:
parent
c7314e54f3
commit
a7478b3a07
71
rt-tests-Remove-arbitrary-num-of-threads-limits.patch
Normal file
71
rt-tests-Remove-arbitrary-num-of-threads-limits.patch
Normal file
@ -0,0 +1,71 @@
|
|||||||
|
From d356a6ae3cbf3cf4ec7fe130bfa4a8e392b910e6 Mon Sep 17 00:00:00 2001
|
||||||
|
From: John Kacur <jkacur@redhat.com>
|
||||||
|
Date: Thu, 6 Oct 2022 16:00:44 -0400
|
||||||
|
Subject: [PATCH] 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>
|
||||||
|
---
|
||||||
|
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 6ad0a92ffb5c..9e142787d8b4 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 e000c3017081..a9d6c69b6449 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 d0d79df940de..728176a0b385 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 22ea7bcb7374..243b13738b19 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.37.3
|
||||||
|
|
@ -6,7 +6,7 @@ Name: rt-tests
|
|||||||
# Numa argument to make: NUMA=1
|
# Numa argument to make: NUMA=1
|
||||||
#
|
#
|
||||||
Version: 2.4
|
Version: 2.4
|
||||||
Release: 1%{?dist}
|
Release: 2%{?dist}
|
||||||
License: GPLv2
|
License: GPLv2
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
URL: git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git
|
URL: git://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git
|
||||||
@ -21,6 +21,7 @@ BuildRequires: python3-devel
|
|||||||
Requires: bash bc
|
Requires: bash bc
|
||||||
|
|
||||||
#Patches
|
#Patches
|
||||||
|
Patch1: rt-tests-Remove-arbitrary-num-of-threads-limits.patch
|
||||||
|
|
||||||
%description
|
%description
|
||||||
rt-tests is a set of programs that test and measure various components of
|
rt-tests is a set of programs that test and measure various components of
|
||||||
@ -29,6 +30,7 @@ latency. It also tests the functioning of priority-inheritance mutexes.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{name}-%{version}
|
%setup -q -n %{name}-%{version}
|
||||||
|
%patch1 -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%set_build_flags
|
%set_build_flags
|
||||||
@ -83,6 +85,10 @@ rm -rf ${build_root}
|
|||||||
%{_mandir}/man8/determine_maximum_mpps.8.*
|
%{_mandir}/man8/determine_maximum_mpps.8.*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Oct 07 2022 John Kacur <jkacur@redhat.com> - 2.4-2
|
||||||
|
- Remove arbitrary limits on number of threads
|
||||||
|
Resolves: rhbz#2132822
|
||||||
|
|
||||||
* Fri Jul 8 2022 John Kacur <jkacur@redhat.com> - 2.4-1
|
* Fri Jul 8 2022 John Kacur <jkacur@redhat.com> - 2.4-1
|
||||||
- Update to latest rt-tests upstream v2.4
|
- Update to latest rt-tests upstream v2.4
|
||||||
Resolves: rhbz#2068114
|
Resolves: rhbz#2068114
|
||||||
|
Loading…
Reference in New Issue
Block a user