1 |
commit: 0bbc3dee5539cf046692f34d49668de67f65f67a |
2 |
Author: Kurt Kanzenbach <kurt <AT> kmk-computers <DOT> de> |
3 |
AuthorDate: Fri Apr 26 21:23:08 2019 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 23 09:53:19 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0bbc3dee |
7 |
|
8 |
dev-util/rt-tests: A collection of latency testing tools (new package) |
9 |
|
10 |
rt-tests contains a set of programs that test and measure various components of |
11 |
real-time kernel behavior, such as timer latency, signal latency and the |
12 |
functioning of priority-inheritance mutexes. Additionally it contains hackbench, |
13 |
a program to generate work for the scheduler. |
14 |
|
15 |
Closes: https://bugs.gentoo.org/705150 |
16 |
Package-Manager: Portage-2.3.79, Repoman-2.3.16 |
17 |
Signed-off-by: Kurt Kanzenbach <kurt <AT> kmk-computers.de> |
18 |
Closes: https://github.com/gentoo/gentoo/pull/14303 |
19 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
20 |
|
21 |
dev-util/rt-tests/Manifest | 1 + |
22 |
.../files/rt-tests-1.6-man-compression.patch | 61 ++++++++++++++++++++++ |
23 |
dev-util/rt-tests/metadata.xml | 21 ++++++++ |
24 |
dev-util/rt-tests/rt-tests-1.6.ebuild | 34 ++++++++++++ |
25 |
4 files changed, 117 insertions(+) |
26 |
|
27 |
diff --git a/dev-util/rt-tests/Manifest b/dev-util/rt-tests/Manifest |
28 |
new file mode 100644 |
29 |
index 00000000000..e0040c68a71 |
30 |
--- /dev/null |
31 |
+++ b/dev-util/rt-tests/Manifest |
32 |
@@ -0,0 +1 @@ |
33 |
+DIST rt-tests-1.6.tar.xz 104864 BLAKE2B 36ada7cbe6deefae2eef80fa167892d41a9c56a6f54a23c8ace5ab97a32e23a88a488bc95f92456a7eea48c49567c4755adc43b3aa68e20c885ca1c354825a7d SHA512 1cbb9b1bc7f6ac335be269e5937209598bfb8c0a29750484e7bba8b87b416c04cd38c8d6d48dc5ed1978c1797dee4cecff0218124bd6d7f23b43a13dc7a75a29 |
34 |
|
35 |
diff --git a/dev-util/rt-tests/files/rt-tests-1.6-man-compression.patch b/dev-util/rt-tests/files/rt-tests-1.6-man-compression.patch |
36 |
new file mode 100644 |
37 |
index 00000000000..e44a9525060 |
38 |
--- /dev/null |
39 |
+++ b/dev-util/rt-tests/files/rt-tests-1.6-man-compression.patch |
40 |
@@ -0,0 +1,61 @@ |
41 |
+From 30e9529a140fb2a5ef96e510743e201c62ded022 Mon Sep 17 00:00:00 2001 |
42 |
+From: Kurt Kanzenbach <kurt@×××××××××××××.de> |
43 |
+Date: Wed, 22 Jan 2020 18:42:25 +0100 |
44 |
+Subject: [PATCH] make: Don't compress man pages by default |
45 |
+ |
46 |
+Most package systems do the compression on their own. |
47 |
+ |
48 |
+Signed-off-by: Kurt Kanzenbach <kurt@×××××××××××××.de> |
49 |
+--- |
50 |
+ Makefile | 28 ++++++++++++++-------------- |
51 |
+ 1 file changed, 14 insertions(+), 14 deletions(-) |
52 |
+ |
53 |
+diff --git a/Makefile b/Makefile |
54 |
+index 552b3fe885cc..244d26eed7cc 100644 |
55 |
+--- a/Makefile |
56 |
++++ b/Makefile |
57 |
+@@ -180,19 +180,19 @@ install: all install_hwlatdetect |
58 |
+ cp $(TARGETS) "$(DESTDIR)$(bindir)" |
59 |
+ install src/queuelat/get_cpuinfo_mhz.sh "$(DESTDIR)$(bindir)" |
60 |
+ install src/queuelat/determine_maximum_mpps.sh "${DESTDIR}${bindir}" |
61 |
+- gzip -c src/cyclictest/cyclictest.8 >"$(DESTDIR)$(mandir)/man8/cyclictest.8.gz" |
62 |
+- gzip -c src/pi_tests/pi_stress.8 >"$(DESTDIR)$(mandir)/man8/pi_stress.8.gz" |
63 |
+- gzip -c src/ptsematest/ptsematest.8 >"$(DESTDIR)$(mandir)/man8/ptsematest.8.gz" |
64 |
+- gzip -c src/rt-migrate-test/rt-migrate-test.8 >"$(DESTDIR)$(mandir)/man8/rt-migrate-test.8.gz" |
65 |
+- gzip -c src/sigwaittest/sigwaittest.8 >"$(DESTDIR)$(mandir)/man8/sigwaittest.8.gz" |
66 |
+- gzip -c src/svsematest/svsematest.8 >"$(DESTDIR)$(mandir)/man8/svsematest.8.gz" |
67 |
+- gzip -c src/pmqtest/pmqtest.8 >"$(DESTDIR)$(mandir)/man8/pmqtest.8.gz" |
68 |
+- gzip -c src/hackbench/hackbench.8 >"$(DESTDIR)$(mandir)/man8/hackbench.8.gz" |
69 |
+- gzip -c src/signaltest/signaltest.8 >"$(DESTDIR)$(mandir)/man8/signaltest.8.gz" |
70 |
+- gzip -c src/pi_tests/pip_stress.8 >"$(DESTDIR)$(mandir)/man8/pip_stress.8.gz" |
71 |
+- gzip -c src/queuelat/queuelat.8 >"$(DESTDIR)$(mandir)/man8/queuelat.8.gz" |
72 |
+- gzip -c src/sched_deadline/deadline_test.8 >"$(DESTDIR)$(mandir)/man8/deadline_test.8.gz" |
73 |
+- gzip -c src/ssdd/ssdd.8 >"$(DESTDIR)$(mandir)/man8/ssdd.8.gz" |
74 |
++ install -D -m 644 src/cyclictest/cyclictest.8 "$(DESTDIR)$(mandir)/man8/cyclictest.8" |
75 |
++ install -D -m 644 src/pi_tests/pi_stress.8 "$(DESTDIR)$(mandir)/man8/pi_stress.8" |
76 |
++ install -D -m 644 src/ptsematest/ptsematest.8 "$(DESTDIR)$(mandir)/man8/ptsematest.8" |
77 |
++ install -D -m 644 src/rt-migrate-test/rt-migrate-test.8 "$(DESTDIR)$(mandir)/man8/rt-migrate-test.8" |
78 |
++ install -D -m 644 src/sigwaittest/sigwaittest.8 "$(DESTDIR)$(mandir)/man8/sigwaittest.8" |
79 |
++ install -D -m 644 src/svsematest/svsematest.8 "$(DESTDIR)$(mandir)/man8/svsematest.8" |
80 |
++ install -D -m 644 src/pmqtest/pmqtest.8 "$(DESTDIR)$(mandir)/man8/pmqtest.8" |
81 |
++ install -D -m 644 src/hackbench/hackbench.8 "$(DESTDIR)$(mandir)/man8/hackbench.8" |
82 |
++ install -D -m 644 src/signaltest/signaltest.8 "$(DESTDIR)$(mandir)/man8/signaltest.8" |
83 |
++ install -D -m 644 src/pi_tests/pip_stress.8 "$(DESTDIR)$(mandir)/man8/pip_stress.8" |
84 |
++ install -D -m 644 src/queuelat/queuelat.8 "$(DESTDIR)$(mandir)/man8/queuelat.8" |
85 |
++ install -D -m 644 src/sched_deadline/deadline_test.8 "$(DESTDIR)$(mandir)/man8/deadline_test.8" |
86 |
++ install -D -m 644 src/ssdd/ssdd.8 "$(DESTDIR)$(mandir)/man8/ssdd.8" |
87 |
+ |
88 |
+ .PHONY: install_hwlatdetect |
89 |
+ install_hwlatdetect: hwlatdetect |
90 |
+@@ -201,7 +201,7 @@ install_hwlatdetect: hwlatdetect |
91 |
+ install -D -m 755 src/hwlatdetect/hwlatdetect.py $(DESTDIR)$(PYLIB)/hwlatdetect.py ; \ |
92 |
+ rm -f "$(DESTDIR)$(bindir)/hwlatdetect" ; \ |
93 |
+ ln -s $(PYLIB)/hwlatdetect.py "$(DESTDIR)$(bindir)/hwlatdetect" ; \ |
94 |
+- gzip -c src/hwlatdetect/hwlatdetect.8 >"$(DESTDIR)$(mandir)/man8/hwlatdetect.8.gz" ; \ |
95 |
++ install -D -m 644 src/hwlatdetect/hwlatdetect.8 "$(DESTDIR)$(mandir)/man8/hwlatdetect.8" ; \ |
96 |
+ fi |
97 |
+ |
98 |
+ .PHONY: tarball |
99 |
+-- |
100 |
+2.24.1 |
101 |
+ |
102 |
|
103 |
diff --git a/dev-util/rt-tests/metadata.xml b/dev-util/rt-tests/metadata.xml |
104 |
new file mode 100644 |
105 |
index 00000000000..23b5a048fe9 |
106 |
--- /dev/null |
107 |
+++ b/dev-util/rt-tests/metadata.xml |
108 |
@@ -0,0 +1,21 @@ |
109 |
+<?xml version="1.0" encoding="UTF-8"?> |
110 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
111 |
+<pkgmetadata> |
112 |
+ <maintainer type="person"> |
113 |
+ <email>kurt@×××××××××××××.de</email> |
114 |
+ <name>Kurt Kanzenbach</name> |
115 |
+ </maintainer> |
116 |
+ <maintainer type="project"> |
117 |
+ <email>proxy-maint@g.o</email> |
118 |
+ <name>Proxy Maintainers</name> |
119 |
+ </maintainer> |
120 |
+ <longdescription> |
121 |
+ rt-tests contains a set of programs that test and measure various components |
122 |
+ of real-time kernel behavior, such as timer latency, signal latency and the |
123 |
+ functioning of priority-inheritance mutexes. Additionally it contains |
124 |
+ hackbench, a program to generate work for the scheduler. |
125 |
+ </longdescription> |
126 |
+ <use> |
127 |
+ <flag name="numa">Make test programs NUMA aware</flag> |
128 |
+ </use> |
129 |
+</pkgmetadata> |
130 |
|
131 |
diff --git a/dev-util/rt-tests/rt-tests-1.6.ebuild b/dev-util/rt-tests/rt-tests-1.6.ebuild |
132 |
new file mode 100644 |
133 |
index 00000000000..debc1623e79 |
134 |
--- /dev/null |
135 |
+++ b/dev-util/rt-tests/rt-tests-1.6.ebuild |
136 |
@@ -0,0 +1,34 @@ |
137 |
+# Copyright 1999-2020 Gentoo Authors |
138 |
+# Distributed under the terms of the GNU General Public License v2 |
139 |
+ |
140 |
+EAPI=7 |
141 |
+ |
142 |
+PYTHON_COMPAT=(python3_{6,7,8}) |
143 |
+ |
144 |
+inherit python-single-r1 |
145 |
+ |
146 |
+DESCRIPTION="A collection of latency testing tools for the linux(-rt) kernel" |
147 |
+HOMEPAGE="https://git.kernel.org/pub/scm/utils/rt-tests/rt-tests.git/about/" |
148 |
+SRC_URI="https://kernel.org/pub/linux/utils/rt-tests/${P}.tar.xz" |
149 |
+ |
150 |
+LICENSE="GPL-2 GPL-2+ LGPL-2.1+" |
151 |
+SLOT="0" |
152 |
+KEYWORDS="~amd64 ~x86" |
153 |
+IUSE="numa" |
154 |
+REQUIRED_USE="${PYTHON_REQUIRED_USE}" |
155 |
+ |
156 |
+DEPEND="${PYTHON_DEPS} |
157 |
+ numa? ( sys-process/numactl )" |
158 |
+RDEPEND="${DEPEND}" |
159 |
+ |
160 |
+PATCHES=( "${FILESDIR}/${P}-man-compression.patch" ) |
161 |
+ |
162 |
+src_compile() { |
163 |
+ emake $(usex numa 'NUMA=1' 'NUMA=0') all |
164 |
+} |
165 |
+ |
166 |
+src_install() { |
167 |
+ emake prefix=/usr DESTDIR="${D}" install |
168 |
+ python_fix_shebang "${ED}" |
169 |
+ python_optimize |
170 |
+} |