-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathrt-tests.spec-in
373 lines (317 loc) · 15.1 KB
/
rt-tests.spec-in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
Summary: Programs that test various rt-features
Name: rt-tests
# __VERSION__ will be replaced by "make rpm"
Version: __VERSION__
Release: 1%{?dist}
License: GPLv2
Group: Development/Tools
URL: git://git.kernel.org/pub/scm/linux/kernel/git/tglx/rt-tests.git
Source0: %{name}-%{version}.tar.gz
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
Obsoletes: cyclictest signaltest pi_tests
# __BUILDREQUIRES__ will be replaced by "make rpm"
BuildRequires: __BUILDREQUIRES_NUMA__ python
%description
rt-tests is a set of programs that test and measure various components of
real-time kernel behavior. This package measures timer, signal, and hardware
latency. It also tests the functioning of priority-inheritance mutexes.
%prep
%setup -qn rt-tests
%build
# __MAKE_NUMA__ will be replaced by "make rpm"
make __MAKE_NUMA__
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{python_sitelib}
make DESTDIR=$RPM_BUILD_ROOT prefix=/usr install
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root,-)
%{python_sitelib}/hwlatdetect.py*
/usr/bin/cyclictest
/usr/bin/pi_stress
/usr/bin/signaltest
/usr/bin/hwlatdetect
/usr/bin/rt-migrate-test
/usr/bin/pip_stress
/usr/bin/ptsematest
/usr/bin/sendme
/usr/bin/sigwaittest
/usr/bin/svsematest
/usr/bin/pmqtest
/usr/bin/hackbench
/usr/src/backfire/backfire.c
/usr/src/backfire/Makefile
%doc
/usr/share/man/man8/cyclictest.8.gz
/usr/share/man/man8/pi_stress.8.gz
/usr/share/man/man8/hwlatdetect.8.gz
/usr/share/man/man4/backfire.4.gz
/usr/share/man/man8/ptsematest.8.gz
/usr/share/man/man8/sendme.8.gz
/usr/share/man/man8/sigwaittest.8.gz
/usr/share/man/man8/svsematest.8.gz
/usr/share/man/man8/pmqtest.8.gz
/usr/share/man/man8/hackbench.8.gz
%changelog
* Wed Dec 11 2013 Clark Williams <[email protected]> - 0.87-1
- From Aaron Fabbri <[email protected]>:
- cyclictest: CPU affinity now takes arbitrary set of cpus
* Fri Nov 15 2013 Clark Williams <[email protected]> - 0.86-1
- cyclictest: allow break threshold without doing any tracing
- cyclictest: add named fifo for statistics
- from John Kacur <[email protected]>:
- cyclictest: Align option fixes
- Makefile: Don't tag files in dir BUILD from rpm builds
- Makefile: Add BUILDROOT and SPECS to the dirs to remove for distclean
- Makefile: Add tmp dir to distclean and "make release" call distclean
- Makefile: Don't tag tmp files created when making a release
- from Nicholas Mc Guire <[email protected]>:
- cyclictest: add align thread wakeup times option
- cyclictest: modify option handling to use enumerated types
- from Sebastian Andrzej Siewior <[email protected]>:
- hackbench: init child's struct before using it
- from Jim Somerville <[email protected]>:
- cyclictest: finish removal of 1 second first loops
- from Frank Rowand <[email protected]>:
- rt-tests: NUMA optional for make rpm
- cyclictest: white space cleanup
* Tue Nov 13 2012 Clark Williams <[email protected]> - 0.85-1
- [cyclictest] add tracemark function back to breaktrace logic
- from Frank Rowand <[email protected]>:
- [cyclictest] report large measured clock latency
- [cyclictest] cleanup getopt_long() parameters
- from John Kacur <[email protected]>:
- [Makefile] add CPPFLAGS to pattern rule for dependencies
- [gitignore] exclude patches and .a archives
- from Uwe Kleine-König <[email protected]>:
- Makefile: separate CFLAGS and CPPFLAGS
- have printf use %s format for strings
- from Bhavesh Davda <[email protected]>:
- cyclictest: histogram overflow instance tracking
- cyclictest: whitespace cleanup
* Wed May 9 2012 Clark Williams <[email protected]> - 0.84-1
- [cyclictest] added -Q/--priospread option to
- from Markus Kohlhase <[email protected]>
- [docs] added description from osadl.org
- from Darren Hart <[email protected]>
- Makefile: Support user supplied CFLAGS and LDFLAGS
- from Steven Rostedt <[email protected]>
- rt-tests: Update rt-migrate-test to use ftrace infrastructure
- from John Kacur <[email protected]>
- .gitignore: differentiate between program names and directories
- pi_stress: Check the status of sched_getaffinity
- Makefile: Introduce a static library
- Move info, warn, and fatal functions to error.[ch]
- install: Fix failed to create symbolic link hwlatdetect file exists
- cyclictest: Make cyclictest fail if it cannot run with requested priority
- from Frank Rowand <[email protected]>
- cyclictest: segfault with '-a'
- cyclictest: avoid unneeded warning
- cyclictest: warn of interaction between '-a', '--smp', and '--numa'
- Makefile: get machinetype from compiler instead of uname
- cyclictest: incorrect first latency value for --verbose option
- cyclictest: printf format compile warning
* Mon Sep 26 2011 Clark Williams <[email protected]> - 0.83-1
- modified Makefile to be smarter about building with NUMA
* Wed Sep 21 2011 Clark Williams <[email protected]> - 0.82-1
- fix print that causes error in histogram processing
* Tue Sep 20 2011 Clark Williams <[email protected]> - 0.81-1
- cleaned up previous hack for /dev/cpu_dma_latency interface
* Tue Sep 20 2011 Clark Williams <[email protected]> - 0.80-1
- use /dev/cpu_dma_latency interface to prevent cstate transitions
in cyclictest
* Thu Sep 15 2011 Clark Williams <[email protected]> - 0.79-1
- added signal_workers routine to hackbench
- added -F/--fifo option to hackbench
* Wed Sep 14 2011 Clark Williams <[email protected]> - 0.78-1
- modified hackebench signal logic
* Fri Sep 9 2011 Clark Williams <[email protected]> - 0.77-1
- removed tracemark functions (too much contention on multiprocessors)
* Wed Sep 7 2011 Clark Williams <[email protected]> - 0.76-1
- only turn on /proc/sys/kernel/ftrace_enabled for a tracer that
needs it
- make sure to set current_tracer to function for -f switch
* Fri Sep 2 2011 Clark Williams <[email protected]> - 0.75-1
- added utility routines for mounting debugfs and event/tracing manipulation
- from Steven Rostedt <[email protected]>:
- allow events for all tracers
- Have -I and -P together also be -B
- do not touch tracing_thresh
- only check file descriptor in tracemark() function
- use interval on first loop instead of 1 second
- allow tracemark() to take variable args
* Thu Aug 18 2011 Clark Williams <[email protected]> - 0.74-1
- changes to deal with 3.0 kernel
- fixed buildrequires in specfile for Python
- fixed spelling error in printf in cyclictest
- from John Kacur <[email protected]>
- Make the function header style consistent with the rest of cyclictest.
- Spelling clean-ups
- from Uwe Kleine-König <[email protected]>
- fix possible buffer overflow in string handling
* Mon May 9 2011 Clark Williams <[email protected]> - 0.73-1
- fixed signal handling in hackbench (avoid thousands of zombies)
- from Geunsik Lim <[email protected]>
- fix incorrect wakeup interface in cyclictest
- from Wolfram Sang <[email protected]>
- Simplify Makefile using -D option to install
- from Carsten Emde <[email protected]>
- add histogram summary column option (-H) to cyclictest
- from Daniel Sangorrin <[email protected]>
- fix sched_setaffinity type error when building with UCLIB
- from Uwe Kleine-König <[email protected]>
- install backfire's Makefile
- modernize backfire's Makefile
* Fri Jun 25 2010 Clark Williams <[email protected]> - 0.72-1
- changed 'diff' variable in timerthread() routine to be unsigned
64-bit to avoid overflow issues in debugging
- included <stdint.h> and changed all 'long long' declarations to
use uint64_t and int64_t
* Tue May 18 2010 Clark Williams <[email protected]> - 0.71-1
- from Michal Schmit <[email protected]>:
- fix accumulating overruns in periodic timer mode
* Fri Apr 9 2010 Clark Williams <[email protected]> - 0.70-1
- from Olaf Hering <[email protected]>
- skip python dependency during install if python not available
* Fri Apr 9 2010 Clark Williams <[email protected]> - 0.69-1
- fix bus error in cyclictest on NUMA systems with more than 16 cores
- reset default cyclictest policy to SCHED_OTHER
- from Carsten Emde <[email protected]>
- add pmqest program for testing posix message queue performance
- misc doc fixes
* Fri Mar 19 2010 Clark Williams <[email protected]> - 0.68-1
- fix tracing difference between 2.6.24 and 2.6.33
* Tue Mar 16 2010 Clark Williams <[email protected]> - 0.67-1
- modified specfile to add hackbench
- modified internal ftrace logic for correct tracing
- Changed rpm %description field to be more descriptive (BZ# 572323)
- from Carsten Emde <[email protected]>
- added smp option to svsematest
- fixed policy display in cyclictest
- from John Kacur <[email protected]>
- changed default scheduling policy to SCHED_FIFO
- fixed spelling mistake on cyclictest man page
- use symbolic names for scheduling policy
- reverted commit 582be2a52c43801a10d318de7491f1cc7243d5cf to
deal with bug in priority distribution
- from Uwe Kleine-König <[email protected]>
- renamed pip to pip_stress
- eliminated use of temp files in dependency generation
- install backfire.c module source in /usr/src/backfire
- from David Sommerseth <[email protected]>
- added new-and-improved hackbench to rt-tests
* Mon Feb 15 2010 Clark Williams <[email protected]> - 0.66-1
- fix incorrect usage of sched_setscheduler in check_privs()
* Mon Feb 8 2010 Clark Williams <[email protected]> - 0.65-1
- add workaround to hwlatdetect for incorrect initializer in
smi_detector.ko
* Fri Jan 29 2010 Clark Williams <[email protected]> - 0.64-1
- from John Kacur <[email protected]>
- automatic dependency generation
- style cleanups
- libnuma code cleanups
- add copyright to rt_numa.h
* Wed Jan 27 2010 Clark Williams <[email protected]> - 0.63-1
- added support for libnuma V1 API
* Tue Jan 26 2010 Clark Williams <[email protected]> - 0.62-1
- added NUMA option
- patch from Uwe Kleine-König <[email protected]>
to clarify source copyrights
- moved hwlatdetect to python site-library
* Wed Jan 13 2010 Clark Williams <[email protected]> - 0.61-1
- added --smp/-S option to setup for basic SMP testing
- added warn() and fatal() utility functions
* Tue Dec 29 2009 Clark Williams <[email protected]> - 0.60-1
- John Kacur <[email protected]>:
- added pip test (process based priority inheritance)
- refactored some error routines into the common library
- added 'make tags' option to Makefile
- Michael Olbrich <[email protected]> added an unbuffered
output option to cyclictest (-u/--unbuffered)
* Mon Dec 21 2009 Clark Williams <[email protected]> - 0.59-1
- deleted classic_pi
- David Sommerseth <[email protected]>:
- added help text for -M (refresh-on-max) option for cyclictest
- fixed parsing of --mlockall in signaltest
- Carsten Emde <[email protected]> provided a better explaination
for using the kernel module with the backfire program
- John Kacur <[email protected]> cleaned up the trailing comments
on the guard macros in src/lib/rt-utils.h
* Mon Dec 21 2009 Clark Williams <[email protected]> - 0.58-1
- merged jkacur's portable getcpu() code
- fixed inadvertent conversion of some source to DOS text files
* Mon Dec 14 2009 Clark Williams <[email protected]> - 0.57-1
- John Kacur <[email protected]> folded in Carsten Emde's tests
- ptsematest
- sigwaittest
- svsematest
- sendme
- Carsten Emde <[email protected]> created a utility library
moving functions from cyclictest into src/lib/rt-utils.c
- Makefile cleanups from jkacur
* Thu Dec 10 2009 Clark Williams <[email protected]> - 0.56-1
- cyclictest: added code to print break thread id with -b
* Thu Nov 19 2009 Clark Williams <[email protected]> - 0.55-1
- pi_stress: cosmetic newline added
- fixes from John Kacur <[email protected]>
- pi_stress: Remove racy state variables that cause watchdog to trigger
- pi_stress: Check whether quiet is set, before taking shutdown_mtx
- pi_stress: Use a pthread_mutex_t for the global variable shutdown
* Tue Nov 17 2009 Clark Williams <[email protected]> - 0.54-1
- patches from John Kacur <[email protected]>
- fix source style issues in pi_stress
- add a DEBUG option to the Makefile
- use CFLAGS for C compiler options
- label targets as PHONY if not generating actual file
- patch to remove rt-tests.spec from .PHONY in Makefile
* Mon Nov 16 2009 Clark Williams <[email protected]> - 0.53-2
- added back missing dist tag for release
* Tue Oct 6 2009 Clark Williams <[email protected]> - 0.53-1
- fixed incorrect format string in hwlatdetect.py
- added docs/release-checklist.txt
* Mon Sep 21 2009 Clark Williams <[email protected]> - 0.52-1
- fixes and cleanups to pi_stress from jkacur
- added rostedt's rt-migrate-test
* Thu Sep 3 2009 Clark Williams <[email protected]> - 0.51-1
- two manpage fixes from Uwe Kleine-König <[email protected]>
- added -M option from Arnaldo Carvahlo de Melo <[email protected]>
(for use on low-bandwidth connections, defer's update until new max hit)
* Fri Jul 24 2009 Clark Williams <[email protected]> - 0.50-2
- minor patch to fix reporting option of hwlatdetect
* Thu Jul 16 2009 Clark Williams <[email protected]> - 0.50-1
- patch to cyclictest from Sebastian Andrzej Siewior <[email protected]>
to process options before checking for root user
- patch to cyclictest from Sebastian Andrzej Siewior <[email protected]>
to exit with proper error code on exit
- added scripts/do-git-push script
- added push target to Makefile
- rewrite of hwlatdetect script to handle old smi_detector module
* Sun Jul 5 2009 Clark Williams <[email protected]> - 0.47-1
- patch from GeunSik Lim <[email protected]> to reorder options for readability
- patch from GeunSik Lim <[email protected]> to add --policy option
- patch from GeunSik Lim <[email protected]> to clarify -h option usage
- modified --policy to take scheduler policy name instead of integers
* Thu Jul 2 2009 Clark Williams <[email protected]> - 0.46-1
- added fix from Daniel Gollub <[email protected]> (doomsday latency)
* Thu Jul 2 2009 Clark Williams <[email protected]> - 0.45-1
- bugfix from Daniel Gollub <[email protected]> (fix cyclictest segfault)
- cyclictest format change from Sven-Thorsten Dietrich <[email protected]>
- added help target to Makefile
* Tue Jun 30 2009 Clark Williams <[email protected]> - 0.44-1
- fix to specfile (renamed smidetect to hwlatdetect)
- added code to hwlatdetect allow setting window and width properly
* Thu Jun 25 2009 Clark Williams <[email protected]> - 0.43-1
- manpage fixes from Uwe Kleine-Konig <[email protected]>
* Fri Jun 12 2009 Clark Williams <[email protected]> - 0.42-1
- renamed smidetect -> hwlatdetect
* Thu May 28 2009 Clark Williams <[email protected]> - 0.41-1
- added Stefan Agner's patch to fix calculating time difference
when delta is bigger than 2147 seconds
* Wed May 13 2009 Clark Williams <[email protected]> - 0.40-1
- added smidetect
* Thu Jan 03 2008 Clark Williams <[email protected]> - 0.18-1
- Initial build.