Commit Graph

914 Commits

Author SHA1 Message Date
Clark Williams 1c3c9e34d6 convert source back to unix text (was DOS text)
Somehow the last set of tests added got converted to DOS text
(CRLF line terminators). Change them back

Signed-off-by: Clark Williams <williams@redhat.com>
2009-12-21 10:27:18 -06:00
John Kacur 2e1f658161 Merge commit 'clrk/master' into rt-tests-dev
Conflicts:
	rt-tests.spec-in
2009-12-15 23:21:00 +01:00
Clark Williams ff74d0eb70 version bump to 0.57 2009-12-15 13:48:37 -06:00
Carsten Emde 116a02e456 Add the following new tests - ptsematest - sigwaittest - svsematest - sendme
John,

thanks a lot for taking care of the new tests.

By some reason, the spec file was not included in the patch. This
patch is needed to prevent the rpm build from finding installed
but unpackaged files.

Signed-off-by: Carsten Emde <C.Emde@osadl.org>
2009-12-15 15:40:40 +01:00
Carsten Emde a6010f928e Explain that the backfire kernel module may need building.
Do a better job of explaining that the backfire kernel module may need
building in the sendme program.

Signed-off-by: Carsten Emde <C.Emde@osadl.org>
Signed-off-by: John Kacur <jkacur@redhat.com>
2009-12-15 00:09:40 +01:00
John Kacur e9007a0edd Add a .gitignore file in the backfire directory for generated files.
Add a .gitignore file in the backfire directory for generated files
that are created when making the kernel module.

Signed-off-by: John Kacur <jkacur@redhat.com>
2009-12-14 22:31:08 +01:00
John Kacur 863280b7d5 Remove making of backfire kernel module from the rt-tests makefile
The kernel module can be made by cding to src/backfire and doing
make modules
sudo make modules_install

Signed-off-by: John Kacur <jkacur@redhat.com>
2009-12-14 21:44:19 +01:00
John Kacur 1a29a37968 The PHONY target for install is incorrectly specified as "all"
Change the PHONY target for install to install

Signed-off-by: John Kacur <jkacur@redhat.com>
2009-12-14 21:14:28 +01:00
John Kacur 2c4267ff9a The version of check_privs that got added to the library must have come
from signaltest - because it doesn't have the fix that check_privs in
cyclictest has - to return the sched_priority to 0

This is a good example of why common functions should be put into libraries -
so all programs benefit from fixes.

Signed-off-by: John Kacur <jkacur@redhat.com>
2009-12-14 16:19:59 +01:00
John Kacur 150f680979 Add the new tests to .gitignore
Signed-off-by: John Kacur <jkacur@redhat.com>
2009-12-14 16:15:11 +01:00
John Kacur a017e969b3 Use sched_getcpu
- sched_getcpu is available since glibc 2.6
- the current tests were broken in anycase.

Signed-off-by: John Kacur <jkacur@redhat.com>
2009-12-14 16:13:09 +01:00
Carsten Emde 92b0181ce8 Add the following new tests
- ptsematest
- sigwaittest
- svsematest
- sendme

Signed-off-by: Carsten Emde <carsten.emde@osadl.org>
Signed-off-by: John Kacur <jkacur@redhat.com>
2009-12-14 15:53:20 +01:00
Carsten Emde da4e865225 Make use of the new library functions in signaltest.
Signed-off-by: Carsten Emde <carsten.emde@osadl.org>
Signed-off-by: John Kacur <jkacur@redhat.com>
2009-12-14 14:58:52 +01:00
Carsten Emde c51afec7fd Make use of the library functions in cyclic test.
Signed-off-by: Carsten Emde <carsten.emde@osadl.org>
Signed-off-by: John Kacur <jkacur@redhat.com>
2009-12-14 14:49:33 +01:00
Carsten Emde dce15eefef Start a separate library of functions for the rt-test suite.
The first couple are taken from cyclictest.

Signed-off-by: Carsten Emde <carsten.emde@osadl.org>
Signed-off-by: John Kacur <jkacur@redhat.com>
2009-12-14 14:21:19 +01:00
John Kacur a6d367302e Merge commit 'v0.56' into rt-tests-dev 2009-12-11 14:45:27 +01:00
Clark Williams 996e0f5e4d version bump to 0.56
Signed-off-by: Clark Williams <williams@redhat.com>
2009-12-10 14:33:40 -06:00
Clark Williams 93989ec0d6 [cyclictest] print thread ids when breaktracing
This commit adds some output then the -b option is used to break on
exceeding a threshold. the thread id of the thread that exceeded the
threshold is printed for use when looking at the trace log.

Signed-off-by: Clark Williams <williams@redhat.com>
2009-12-10 14:17:34 -06:00
John Kacur 3085482cff Merge commit 'v0.55' into rt-tests-dev 2009-11-19 23:31:29 +01:00
Clark Williams 4176f242c2 version bump to 0.55 2009-11-19 15:04:43 -06:00
Clark Williams 0b34a7b2bf rt-tests: pi_stress: cosmetic newline added
Add a second newline to the "Low thread priority" display line
so that updating number of inversions doesn't overwrite it.

Signed-off-by: Clark Williams <williams@redhat.com>
2009-11-19 14:17:10 -06:00
John Kacur d2ad7c7506 rt-tests: pi_stress: Remove racy state variables that cause watchdog to trigger
When using pthread_barrier_wait, it is important that barriers are called
the correct number of times. That is - the same number given as the count
when initializing the barrier.

There was a do-while loop around elevate_barrier in the med priority thread.
On most machines, it actually never looped.

On threads with enough processors (nehelam for example), there was a racy
situation in which the high priority thread could come out of the finish
barrier, and before it could set high_has_run = 0, the medium priority
thread would test the value and call the elevate barrier an extra time.

This patch removes the bogus loop and related state variables and fixes
the hang.

Signed-off-by: John Kacur <jkacur@redhat.com>
2009-11-19 10:58:00 -06:00
John Kacur cf46ad44b9 rt-tests: pi_stress: Check whether quiet is set, before taking shutdown_mtx
- Check whether quiet is set, before taking shutdown_mtx
- Add quiet to the help menu.
- Remove unused "signal" from struct options

Signed-off-by: John Kacur <jkacur@redhat.com>
2009-11-19 10:57:47 -06:00
John Kacur 9ee4dcad03 rt-tests: pi_stress: Use a pthread_mutex_t for the global variable shutdown
- Use a pthread_mutex_t for the global variable shutdown.
- Remove the volatile qualifier from shutdown. (Since the original author
probably simply meant the variable should be atomic which we effectively
get through the mutex.

Signed-off-by: John Kacur <jkacur@redhat.com>
2009-11-19 10:57:32 -06:00
John Kacur 2712903a40 rt-tests: pi_stress: Remove racy state variables that cause watchdog to trigger
When using pthread_barrier_wait, it is important that barriers are called
the correct number of times. That is - the same number given as the count
when initializing the barrier.

There was a do-while loop around elevate_barrier in the med priority thread.
On most machines, it actually never looped.

On threads with enough processors (nehelam for example), there was a racy
situation in which the high priority thread could come out of the finish
barrier, and before it could set high_has_run = 0, the medium priority
thread would test the value and call the elevate barrier an extra time.

This patch removes the bogus loop and related state variables and fixes
the hang.

Signed-off-by: John Kacur <jkacur@redhat.com>
2009-11-19 16:24:07 +01:00
John Kacur 9093a5de51 rt-tests: pi_stress: Check whether quiet is set, before taking shutdown_mtx
- Check whether quiet is set, before taking shutdown_mtx
- Add quiet to the help menu.
- Remove unused "signal" from struct options

Signed-off-by: John Kacur <jkacur@redhat.com>
2009-11-19 12:02:52 +01:00
John Kacur 97dbb3cebd rt-tests: pi_stress: Use a pthread_mutex_t for the global variable shutdown
- Use a pthread_mutex_t for the global variable shutdown.
- Remove the volatile qualifier from shutdown. (Since the original author
probably simply meant the variable should be atomic which we effectively
get through the mutex.

Signed-off-by: John Kacur <jkacur@redhat.com>
2009-11-19 11:50:10 +01:00
John Kacur 8f9ffd3750 Merge branch 'master' into rt-tests-dev 2009-11-18 10:21:47 +01:00
Clark Williams c8fdec1e07 version bump to 0.54 2009-11-17 17:01:37 -06:00
John Kacur edce3be048 rt-tests: Makefile - rt-tests.spec is not a PHONY target
Reported-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
Signed-off-by: Clark Williams <williams@redhat.com>
2009-11-17 15:24:25 -06:00
John Kacur 168f2a35eb pi_stress: Convert c-plus style comments to c-style comments
Signed-off-by: John Kacur <jkacur@redhat.com>
Signed-off-by: Clark Williams <williams@redhat.com>
2009-11-17 15:17:29 -06:00
John Kacur a95740e5de pi_stress: Fix trailing-whitespace warnings.
Signed-off-by: John Kacur <jkacur@redhat.com>
Signed-off-by: Clark Williams <williams@redhat.com>
2009-11-17 15:17:10 -06:00
John Kacur 72bffb255a pi_stress: Fix indentation problems with Lindent from the kernel
Signed-off-by: John Kacur <jkacur@redhat.com>
Signed-off-by: Clark Williams <williams@redhat.com>
2009-11-17 15:16:43 -06:00
John Kacur e3f61d1e8c rt-tests: Makefile - Add a DEBUG option to the Makefile
This allows you to do
make DEBUG=0
which changes CFLAGS from -Wall -Wno-nonnull -O2
to -Wall -Wno-nonnull -O0 -g

Signed-off-by: John Kacur <jkacur@redhat.com>
Signed-off-by: Clark Williams <williams@redhat.com>
2009-11-17 15:16:20 -06:00
John Kacur 502ab0b3e4 rt-tests: Makefile - Specify when a target is a PHONY target.
Signed-off-by: John Kacur: <jkacur@redhat.com>
Signed-off-by: Clark Williams <williams@redhat.com>
2009-11-17 15:15:40 -06:00
John Kacur 1c436a1d75 rt-tests: Makefile - Change FLAGS to CFLAGS
Change FLAGS to CFLAGS as this is the standard

Signed-off-by: John Kacur <jkacur@redhat.com>
Signed-off-by: Clark Williams <williams@redhat.com>
2009-11-17 15:15:00 -06:00
John Kacur 4fc1a432aa rt-tests: Makefile - rt-tests.spec is not a PHONY target
Reported-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2009-11-16 22:14:25 +01:00
John Kacur f517718bb6 pi_stress: Convert c-plus style comments to c-style comments
Signed-off-by: John Kacur <jkacur@redhat.com>
2009-11-16 21:02:28 +01:00
Clark Williams 76a7fa9c10 added back dist macro
Added the dist macro back for distribution differentiation

Signed-off-by: Clark Williams <williams@redhat.com>
2009-11-16 13:32:36 -06:00
John Kacur a41df95177 pi_stress: Fix trailing-whitespace warnings.
Signed-off-by: John Kacur <jkacur@redhat.com>
2009-11-16 20:22:23 +01:00
John Kacur c6a804f6c3 pi_stress: Fix indentation problems with Lindent from the kernel
Signed-off-by: John Kacur <jkacur@redhat.com>
2009-11-16 20:14:46 +01:00
John Kacur 7ea849f942 rt-tests: Makefile - Add a DEBUG option to the Makefile
This allows you to do
make DEBUG=0
which changes CFLAGS from -Wall -Wno-nonnull -O2
to -Wall -Wno-nonnull -O0 -g

Signed-off-by: John Kacur <jkacur@redhat.com>
2009-11-16 19:16:14 +01:00
John Kacur 14806d13a0 rt-tests: Makefile - Specify when a target is a PHONY target.
Signed-off-by: John Kacur: <jkacur@redhat.com>
2009-11-16 19:15:38 +01:00
John Kacur e2a22de977 rt-tests: Makefile - Change FLAGS to CFLAGS
Change FLAGS to CFLAGS as this is the standard

Signed-off-by: John Kacur <jkacur@redhat.com>
2009-11-16 19:14:58 +01:00
Clark Williams d0a65eb5a0 patch from Hans-Peter Bock <Hans-Peter.Bock@isw.uni-stuttgart.de>
correcting units in help message for cyclictest
2009-10-07 09:14:20 -05:00
Clark Williams 82ca52c27b version bump to 0.53 2009-10-06 14:21:04 -05:00
Clark Williams 6d54794d16 fixed incorrect format in hwlatdetect.py 2009-10-06 14:17:18 -05:00
Clark Williams de34dc90a4 add new file doc/realease-checklist.txt 2009-09-21 19:30:38 -05:00
Clark Williams b4eaf44285 version bump to 0.52 2009-09-21 16:57:25 -05:00
Clark Williams 99557d7360 cleanups for rt-migrate-test 2009-09-21 16:48:49 -05:00