Commit Graph

487 Commits

Author SHA1 Message Date
Clark Williams d3ae4c81ea updated pi_stress option processing 2008-12-18 15:55:10 -06:00
Luis Claudio R. Goncalves 9505ea6a6a Patch to fix tracer selection in cyclictest when using -b 2008-12-11 10:43:22 -06:00
Clark Williams 679b34e74b cyclictest fixup for tracing 2008-12-11 10:38:46 -06:00
Clark Williams 5d8328bb03 changed test to not require root 2008-12-02 12:22:25 -06:00
Clark Williams 3ece612bd1 add option to run for specified duration
Add an option (--duration or -D) to specify how long the test should run

Signed-off-by: Clark Williams <williams@redhat.com>
2008-10-22 14:33:51 -05:00
Sven-Thorsten Dietrich cb548199a6 Subject: Add histogram support to cyclictest
Add -h <size> parameter and functionality to log histograms of latencies
in cyclictest.

Signed-off-by: Sven-Thorsten Dietrich <sdietrich@suse.de>
2008-10-22 13:23:02 -05:00
Clark Williams 2e058f7f98 fixed merge breakage 2008-09-25 15:13:51 -05:00
Clark Williams 2d45d878ba Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/tglx/rt-tests
Conflicts:
	src/cyclictest/cyclictest.c
	src/pi_tests/pi_stress.8
2008-09-25 15:11:56 -05:00
Thomas Gleixner 5d3ac6cb76 cyclictest: remove duplicate option in help text
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-07-27 22:49:02 +02:00
Alessio Igor Bogani 69d53796da Fix typo in pi_stress manpage
Signed-off-by: Alessio Igor Bogani <abogani@texware.it>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-07-24 18:27:07 +02:00
Alessio Igor Bogani 5cd772b14a Differentiate hyphen and minus in manpages
Signed-off-by: Alessio Igor Bogani <abogani@texware.it>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-07-24 18:27:07 +02:00
Clark Williams d60e13722d fixed formating damage
Signed-off-by: Clark Williams <williams@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: Luis Claudio Goncalves <lclaudio@uudg.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-07-12 04:21:23 +02:00
Clark Williams 198975b2e4 updated man pages for --mlockall option
Signed-off-by: Clark Williams <williams@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: Luis Claudio Goncalves <lclaudio@uudg.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-07-12 04:18:39 +02:00
Clark Williams 1e00c7a587 added mlockall option
Signed-off-by: Clark Williams <williams@redhat.com>
Cc: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Cc: Luis Claudio Goncalves <lclaudio@uudg.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-07-12 04:18:39 +02:00
Clark Williams 1c3872ef1d Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/tglx/rt-tests
Conflicts:

	src/cyclictest/cyclictest.c
2008-07-08 08:45:51 -05:00
John Kacur 3ad6648f2c Fix the processing of optional options for cyclictest
Problem: when running cyclic test, short options are not parsing
optional arguments correctly when followed by a space.
"-t3" works, but "-t 3" does not.

- Fix the processing of options with optional parameters, so that the user
  can write -tNUM or -t NUM and it will work as expected. This was done
  for the -t and -a options

- Modify the usage messages to correspond with the way the program makes use
  of the options.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-07-06 19:20:35 +02:00
Clark Williams 699c38bb8d Merge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/tglx/rt-tests
Conflicts:

	.gitignore
	src/cyclictest/cyclictest.8
	src/cyclictest/cyclictest.c
2008-06-12 19:43:21 -05:00
Carsten Emde 6963a41f68 rt-tests/cyclictest.c: oscilloscope mode did not work correctly with >1 threads
Data reduction (-o mode) did not work correctly with >1 threads.

Signed-off-by: Carsten Emde <C.Emde@osadl.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-06-05 08:41:15 +02:00
Alessio Igor Bogani 434091fc65 Fix some typo in the cyclictest's man page 2008-06-04 17:30:07 +02:00
Steven Rostedt 65d1cb7079 cyclictest: sched_switch not sched-switch
I noticed I had a typo on sched_switch. I tested this on linux-tip tree
and it works there.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Cc: Darren Hart <dvhltc@us.ibm.com>
Cc: Subrata Modak <subrata@linux.vnet.ibm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-06-04 17:17:26 +02:00
Steven Rostedt 9ba30e6ef2 cyclictest: handle latest ftrace
This patch has cyclictest work a bit better with ftrace. Some new options
have been added.

When -b is used:

  -P : use the preemptoff tracer
  -I : use the irqsoff tracer
  -B : use preemptirqsoff tracer

If the above are not set, then it tries to use "events" tracer if it is
available (currently only available in the -rt kernel) and if that is not
set, it defaults to the sched-switch tracer.

-f will enabled the function tracer.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Cc: Darren Hart <dvhltc@us.ibm.com>
Cc: Subrata Modak <subrata@linux.vnet.ibm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-06-04 17:17:26 +02:00
Steven Rostedt fcee9fe2e0 cyclictest: search for debugfs
Not everyone mounts debugfs at /debug. This patch makes cyclictest search
for debugfs in the /proc/mounts directory.

Signed-off-by: Steven Rostedt <srostedt@redhat.com>
Cc: Darren Hart <dvhltc@us.ibm.com>
Cc: Subrata Modak <subrata@linux.vnet.ibm.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-06-04 17:17:26 +02:00
Clark Williams 5587d442ee fixed formating damage 2008-05-09 13:43:55 -05:00
Clark Williams f6db792ba4 updated man pages for --mlockall option 2008-05-09 13:40:08 -05:00
Clark Williams c4a44c163d added mlockall option 2008-05-09 13:28:50 -05:00
Carsten Emde 2df51a799f cyclictest: send correct cycle number in -o mode
The appropriate cycle number of the maximum is now sent when in -o
mode. This is needed to more accurately determine the trace line that
is related to a particular latency.

Signed-off-by: Carsten Emde <C.Emde@osadl.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-04-18 14:22:17 +02:00
Sebastian Siewior 6a0f073aa4 cyclictest: fix "get kernel version"
The version check in cyclic test fails if proc isn't mounted or if OS
name isn't Linux (uClinux isn't uncommon).  This patch fixes both
issues.

Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-04-18 14:22:17 +02:00
Sebastian Siewior 342e3b83ee cyclictest: fix build on uClibc due to missing cpu affinity
CPU affinity isn't supported by all uClibc ports right now.

Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-04-18 14:22:17 +02:00
Sebastian Siewior 7f4ac71644 cyclictest: fix for uClibc builds
as of uClibc-20080416 clock_nanosleep is still not implemented.

Signed-off-by: Sebastian Siewior <bigeasy@linutronix.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-04-16 11:12:04 +02:00
Carsten Emde 4cb277ee27 cyclictest: add -o option to reduce -v option's output speed
When the output of the -v option is piped into another program and if
more data are sent than the other program can eat, data points get
lost. Since high latency values normally occur much less frequently
than average latency values, the connected program will miss many of
the high latency values, and the realtime capability of a given system
may appear much better than it is.

Therefore, the new option -o RED was introduced. This option causes 
cyclictest to suppress every subsequent RED number of samples and 
replace them with the maximum of the values encountered during that 
sampling interval.

Signed-off-by: Carsten Emde <C.Emde@osadl.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-04-16 11:12:04 +02:00
Carsten Emde 82155e3d9e cyclictest & kernel>=2.6.24
- Added support for the kernel tracer as of kernel 2.6.24
- Options mostly identical, irrespective of the kernel version
- Added check whether debug fs is mounted and tracing configured
- -v (verbose) option additionally makes tracing more verbose

Signed-off-by: Carsten Emde <C.Emde@osadl.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-04-16 11:12:04 +02:00
Carsten Emde f055732c16 cyclictest: add CPU affinity
Add CPU affinitt option to cyclictest.

1. New option -a:

without argument to a cyclictest spreads the threads consecutive on
the available CPUs. On a quad core machine we get:

-a -t4   Thread #0 -> CPU #0
         Thread #1 -> CPU #1
         Thread #2 -> CPU #2
         Thread #3 -> CPU #3

-a -t5   Thread #0 -> CPU #0
         Thread #1 -> CPU #1
         Thread #2 -> CPU #2
         Thread #3 -> CPU #3
         Thread #4 -> CPU #0

Adding a CPU number to the -a option all threads are pinned to
the given CPU:

-a3 -t4  Thread #0 -> CPU #3
         Thread #1 -> CPU #3
         Thread #2 -> CPU #3
         Thread #3 -> CPU #3

2. extension of the -t option:

Without argument to -t cyclictest starts as many threads as CPUs are
available.

Signed-off-by: Carsten Emde <c.emde@osadl.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-04-06 17:25:05 +02:00
Clark Williams fea12d35c3 added pi_tests; added specfile for rpm generation 2008-01-03 13:26:22 -06:00
Alessio Igor Bogani 899ebf7302 Fix kernel parameters in cyclictest's manpage
Signed-off-by: Alessio Igor Bogani <abogani@texware.it>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2007-12-21 10:24:48 +01:00
Alessio Igor Bogani be4a5a9807 Unified versions into Makefile
Packaging version control

Signed-off-by: Alessio Igor Bogani <abogani@texware.it>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2007-12-14 15:25:29 +01:00
Alessio Igor Bogani 79ad2eca9a COPYING file and cyclictest's man page added
Signed-off-by: Alessio Igor Bogani <abogani@texware.it>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2007-12-14 15:25:29 +01:00
Alessio Igor Bogani e6b7207115 Re-organized sources
Move code around to make packaging easier.

Signed-off-by: Alessio Igor Bogani <abogani@texware.it>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2007-12-14 15:25:29 +01:00