Commit Graph

528 Commits

Author SHA1 Message Date
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
Sebastian Andrzej Siewior 47e87a456c cyclictest: exit with an error code in error case
if cyclictest is started with invalid arguments or $SOMETHING, then it
prints the help screen and the exit code is 0 which is wrong.

Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Clark Williams <williams@redhat.com>
2009-07-13 09:40:46 -05:00
Clark Williams 2ba1f87e05 version bump to 0.48
added push target to Makefile
2009-07-07 17:15:21 -05:00
Clark Williams c6efd5be12 moved to scripts directory 2009-07-07 17:14:46 -05:00
Clark Williams f8b121ddd8 Added sanity checks and comments to scripts/do-git-push 2009-07-07 17:13:53 -05:00
Clark Williams 03f8afd845 added do-git-push script 2009-07-07 16:26:42 -05:00
Clark Williams d4e64bdf64 version bump to 0.47 2009-07-05 16:14:57 -05:00
Clark Williams a64d952c2c updated change log 2009-07-05 16:14:43 -05:00
Clark Williams 1b7ecf004b change options for --policy to be string names rather than integers
moved policy display from individual threads to header with load average
did some sanity checking so that policy and priority match

Signed-off-by: Clark Williams <williams@redhat.com>
2009-07-05 13:33:52 -05:00
Clark Williams de70815ad0 Subject: [PATCH]cyclictest: Arrange alphabetically for readability of
"cyclictest --help".
From: GeunSik Lim <leemgs1@gmail.com>
Reply-To: leemgs1@gmail.com
To: williams <williams@redhat.com>
Cc: linux-rt-users <linux-rt-users@vger.kernel.org>, tglx <tglx@linutronix.de>

When we use "#> cyclictest --help" command, we are confusing because of
random order of many options. Arrange alphabetically.

After Patch)
[root@fedora11 rt-tests]# ./cyclictest  --help
cyclictest V 0.46
Usage:
cyclictest <options>

-a [NUM] --affinity        run thread #N on processor #N, if possible
                           with NUM pin all threads to the processor NUM
-b USEC  --breaktrace=USEC send break trace command when latency > USEC
-B       --preemptirqs     both preempt and irqsoff tracing (used with -b)
-c CLOCK --clock=CLOCK     select clock
                           0 = CLOCK_MONOTONIC (default)
                           1 = CLOCK_REALTIME
-C       --context         context switch tracing (used with -b)
-d DIST  --distance=DIST   distance of thread intervals in us default=500
-D       --duration=t      specify a length for the test run
                           default is in seconds, but 'm', 'h', or 'd' maybe added
                           to modify value to minutes, hours or days
-E       --event           event tracing (used with -b)
-f       --ftrace          function trace (when -b is active)
-h       --histogram=US    dump a latency histogram to stdout after the run
                           (with same priority about many threads)
                           US is the max time to be be tracked in microseconds
-i INTV  --interval=INTV   base interval of thread in us default=1000
-I       --irqsoff         Irqsoff tracing (used with -b)
-l LOOPS --loops=LOOPS     number of loops: default=0(endless)
-m       --mlockall        lock current and future memory allocations
-n       --nanosleep       use clock_nanosleep
-N       --nsecs           print results in ns instead of ms (default ms)
-o RED   --oscope=RED      oscilloscope mode, reduce verbose output by RED
-O TOPT  --traceopt=TOPT   trace option
-p PRIO  --prio=PRIO       priority of highest prio thread
-P       --preemptoff      Preempt off tracing (used with -b)
-q       --quiet           print only a summary on exit
-r       --relative        use relative timer instead of absolute
-s       --system          use sys_nanosleep and sys_setitimer
-t       --threads         one thread per available processor
-t [NUM] --threads=NUM     number of threads:
                           without NUM, threads = max_cpus
                           without -t default = 1
-T TRACE --tracer=TRACER   set tracing function
    configured tracers: unavailable (debugfs not mounted)
-v       --verbose         output values on stdout for statistics
                           format: n:c:v n=tasknum c=count v=value in us
-w       --wakeup          task wakeup tracing (used with -b)
-W       --wakeuprt        rt task wakeup tracing (used with -b)
-y POLI  --policy=POLI     policy of realtime thread (1:FIFO, 2:RR)
                           format: --policy=1(default) or --policy=2

      Signed-by-off: GeunSik Lim <geunsik.lim@samsung.com>

Signed-off-by: Clark Williams <williams@redhat.com>
2009-07-05 12:58:51 -05:00
Clark Williams 1926b98439 Subject: [PATCH] cyclictest: Add policy option to support FIFO or RR by
users
From: GeunSik Lim <leemgs1@gmail.com>
To: williams <williams@redhat.com>
Cc: linux-rt-users <linux-rt-users@vger.kernel.org>, tglx <tglx@linutronix.de>


Current cyclictest support FIFO policy for static priority of
RT threads only. Append policy option to support FIFO or RR by user.

After this patch.
1) with FIFO about RT threads(default)
   ./cyclictest -t 5 -p 50
or ./cyclictest -t 5 -p 50 -y 1
or ./cyclictest -t 5 -p 50 --policy 1

2) with RR about RT threads(default)
   ./cyclictest -t 5 -p 50 -y 2
or ./cyclictest -t 5 -p 50 --policy 2

This is screenshot of threads using cyclictest & tuna utility after patch.
http://blogfiles6.naver.net/20090703_5/invain_1246588185266_sc7zEq_PNG/cyclictest-tuna-policy.PNG

        Signed-off-by: GeunSik Lim <geunsik.lim@samsung.com>

Signed-off-by: Clark Williams <williams@redhat.com>
2009-07-05 12:58:27 -05:00
Clark Williams 78ae63b635 Subject: [PATCH] cyclictest : Appended man & usage about the same priority
of many threads with -h
From: GeunSik Lim <leemgs1@gmail.com>
Reply-To: leemgs1@gmail.com
To: williams <williams@redhat.com>
Cc: linux-rt-users <linux-rt-users@vger.kernel.org>, tglx <tglx@linutronix.de>,
        sdietrich@suse.de


If we run a many threads with -t option, "priority--" rt priority will assign
per thread in sequence. But, If we use -h option, all threads is same priority.

Append man page and cyclictest usage about the same priority of many threads
with -h option.

ex) cyclictest -t 5 -p 50        [enter] <-- without -h
ex) cyclictest -t 5 -p 50 -h 100 [enter] <-- with    -h

        Signed-off-by: GeunSik Lim <geunsik.lim@samsung.com>
        Acked-by     : Sven-Thorsten Dietrich <sdietrich@suse.de>

Signed-off-by: Clark Williams <williams@redhat.com>
2009-07-05 12:58:01 -05:00
Clark Williams 581a864672 changed smidetect to hwlatdetect in .gitignore 2009-07-05 12:57:27 -05:00
Clark Williams 802855c693 added fix from Daniel Gollub <dgollub@suse.de> for doomsday latency
version bump to 0.46
2009-07-02 17:13:39 -05:00
Daniel Gollub 4b1bc6a9bb Subject: Handle doomsday latency for cyclictest in histogram mode
Don't miss latency which exceed the histogram limit -
instead sample limit exceeding latency in the last bucket.

This is a leftover from cyclictest_histogram.patch:
-> Todo: Currently cyclictest does not report the number of samples
-> that exceeded the histogram max latency.

Handle OOM.

Signed-off-by: Daniel Gollub <dgollub@suse.de>
Reviewed-by: Sven-Thorsten Dietrich <sdietrich@suse.de>
--
2009-07-02 17:10:44 -05:00
Clark Williams 81b30e4c38 updated changelog for 0.45 2009-07-02 09:42:30 -05:00
Clark Williams 190a00e14e version bump to 0.45; added help target to Makefile 2009-07-02 09:36:52 -05:00
Sven-Thorsten Dietrich 63cf2a4809 Change output format to allow 6 digits.
This is useful when testing PREEMPT_NONE Kernels with cyclictest,
where latencies approaching 1 second can be observed.

Signed-off-by: Sven-Thorsten Dietrich <sdietrich@suse.de>
2009-07-02 09:29:36 -05:00
Clark Williams 66fb1db24e added debug prints and retry logic to hwlatdetect enable/disable code and detection code 2009-07-02 09:29:11 -05:00
Daniel Gollub 6092f3b705 Avoid segfault of cyclictest if it gets immediately interrupted.
If clock_nanosleep() gets interrupted this could result in a negative
time diff from calcdiff().

With the histogram patch this leads to a segfault, since the time diff
is used as index for the histogram array:

Core was generated by `/usr/bin/cyclictest -n -q -p 99 -t 2 -i 500 -l
1000000 -h
 20000'.
 Program terminated with signal 11, Segmentation fault.
#0  0x0000000000402324 in timerthread (param=<value optimized out>)
     at src/cyclictest/cyclictest.c:339
     339                             stat->hist_array[diff] += 1;
     (gdb) p diff
     $1 = -751974

Signed-off-by: Daniel Gollub <dgollub@suse.de>
Acked-by: Sven-Thorsten Dietrich <sdietrich@suse.de>
2009-07-02 09:28:04 -05:00