Commit Graph

582 Commits

Author SHA1 Message Date
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
Thomas Gleixner 1a731d646e Bump version number to 0.20
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-04-18 14:39:41 +02: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
Thomas Gleixner 44b84cd87f v0.19
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-01-04 09:00:33 +01:00
Clark Williams df2bf2cfdc added Obsoletes 2008-01-03 13:33:43 -06:00
Clark Williams 58d8df8cc8 added distclean target to cleanup rpm dirs 2008-01-03 13:33:23 -06: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
Thomas Gleixner ca606d3fe9 v0.18
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2007-12-14 16:03:34 +01:00
Thomas Gleixner d00cc0754a Some more Makefile updates
- add changelog and install targets
- replace $(CROSS_COMPILE)gcc with $(CC)

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2007-12-14 16:03:34 +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
Thomas Gleixner 9a10305f0d Bump version number
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2007-10-18 19:20:05 +02:00
Clark Williams 4ee3b82d4e Fix to cyclictest (from signaltest fix)
This is a patch that's a ripple from the bug in signaltest that Luis and Jeff Burke
were working on. Looks like there's a race where a variable can be used
uninitialized, depending on thread scheduling circumstances. Probably not major, but
hey, can't hurt :).

Signed-off-by: Clark Williams <williams@redhat.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2007-10-18 19:18:48 +02:00
Thomas Gleixner 854cd3eae2 Bump version number
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2007-10-18 00:19:07 +02:00
Luis Claudio R. Goncalves b1bb85c51f Signaltest: initialize stat[i].threadstarted before using
Signaltest was hanging in a wide variety of kernel versions, in some cases
after a few iterations and in other cases right after being called on the
command line. We created a bugzilla ticket for this issue:

	https://bugzilla.redhat.com/show_bug.cgi?id=308231

After a few debug sessions we realized that a shared variable used to
synchronize the work between threads, stat[i].threadstarted, could end up
being used before initialization depending on the scheduling of the
threads.

The fix is a one-liner.

Signed-off-by: Luis Claudio R. Goncalves <lclaudio@uudg.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2007-10-18 00:17:31 +02:00
Thomas Gleixner afb46d37f2 Bump version number
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2007-05-11 21:49:27 +02:00
Thomas Gleixner dfbefb8056 Check if highres timers are enabled
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2007-05-11 21:32:51 +02:00
Carsten Emde f22379d0a4 Save and restore the tracer variables
Signed-off-by: Carsten Emde <ce@ceag.ch>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2007-05-11 21:11:46 +02:00
Thomas Gleixner fa892122f3 Initial import 2007-05-11 21:01:04 +02:00