Commit Graph

997 Commits

Author SHA1 Message Date
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
Clark Williams 7ca2d46e60 added Steven Rostedt's rt-migrate-test 2009-09-21 10:30:10 -05:00
John Kacur 1670757300 pi_stress clean-ups, fix hang.
From f17765e52e248b3a738f5206cb4b97bdcc1a0204 Mon Sep 17 00:00:00 2001
From: John Kacur <jkacur@redhat.com>
Date: Tue, 1 Sep 2009 15:24:23 +0200
Subject: [PATCH] Add tags and TAGS to .gitignore

Add tags and TAGS to .gitignore, to prepare for a make tags option
2009-09-14 10:14:14 -05:00
Clark Williams 42ab9e7cd2 documented -M option 2009-09-03 15:11:05 -05:00
Clark Williams 64fce51cb8 version bump to 0.51 2009-09-03 15:07:42 -05:00
Clark Williams 34fca025a6 Merge commit 'uwe/for-clark' 2009-09-03 14:57:42 -05:00
Uwe Kleine-König ab887085b4 cyclictest.8: make description of --policy consistent to other options
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2009-09-03 21:02:19 +02:00
Uwe Kleine-König ba788f0731 manpages: fix lintian warning hyphen-used-as-minus-sign
"-" must be escaped ("\-") to be interpreted as minus, otherwise they
might be rendered as hyphen which makes it impossible to search for or
to cut'n'paste.

See http://lintian.debian.org/tags/hyphen-used-as-minus-sign.html for a
detailed explanation.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2009-09-03 20:56:14 +02:00
Arnaldo Carvalho de Melo fc96b72126 cyclictest: add --update_on_max option
Note: the previous one sucked rockz, please try this one instead.

When running on a machine with not enough bandwidth it can be helpful to
only update the status when a new max is hit.

Signed-off-by: Arnaldo Carvalho de Melo <acme@redhat.com>
2009-08-27 08:50:20 -05:00
Clark Williams 3eba62854f added extra status prints to scripts/do-git-push
added pushtest target to Makefile
fixed incorrect argument to git push
2009-07-16 10:46:39 -05:00
Clark Williams a55242cc96 version bump to 0.50 2009-07-16 10:42:01 -05:00
Clark Williams 62ef8a98a7 major rewrite of hwlatdetect.py to handle old smi_detector module
as well as current hwlat_detector
2009-07-15 20:43:21 -05:00
Clark Williams b7ba8bc3c7 removed redirect to /dev/null and added --dryrun push 2009-07-15 20:41:37 -05:00
Clark Williams a8a69c7e96 Merge branch 'clark' 2009-07-13 12:35:02 -05:00
Clark Williams b2554ef475 small tweaks to Uwe's changes to scripts/do-push-git
added testing mode to scripts/do-push-git
2009-07-13 12:34:10 -05:00
Uwe Kleine-König edcaf94945 scripts/do-git-push: optimize a few forks away
As I'm not Clark I cannot test my changes, so this is completly
untested :-)

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Clark Williams <williams@redhat.com>
2009-07-13 10:10:38 -05:00
Clark Williams 960adc44a2 version bump to 0.49 2009-07-13 10:07:24 -05:00
Sebastian Andrzej Siewior e5d7ca1ac5 cyclictest: process option before checking for permissions
so a normal user is able to take a look on the available options

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Clark Williams <williams@redhat.com>
2009-07-13 09:41:23 -05:00