Commit Graph

262 Commits

Author SHA1 Message Date
Clark Williams 5164e0178a Return-Path: <linux-rt-users-owner@vger.kernel.org>
Received: from pobox-2.corp.redhat.com ([unix socket])
	 by pobox-2.corp.redhat.com (Cyrus v2.2.12-Invoca-RPM-2.2.12-8.1.RHEL4) with LMTPA;
	 Tue, 03 Jun 2008 11:50:56 -0400
X-Sieve: CMU Sieve 2.2
Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254])
	by pobox-2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m53FoulP004003
	for <williams@pobox-2.corp.redhat.com>; Tue, 3 Jun 2008 11:50:56 -0400
Received: from mx1.redhat.com (mx1.redhat.com [172.16.48.31])
	by int-mx1.corp.redhat.com (8.13.1/8.13.1) with ESMTP id m53Foth3012071;
	Tue, 3 Jun 2008 11:50:55 -0400
Received: from vger.kernel.org (vger.kernel.org [209.132.176.167])
	by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id m53FOfJq012028;
	Tue, 3 Jun 2008 11:50:43 -0400
Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand
	id S1752828AbYFCPun (ORCPT <rfc822;mschmidt@redhat.com> + 1 other);
	Tue, 3 Jun 2008 11:50:43 -0400
Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752865AbYFCPun
	(ORCPT <rfc822;linux-rt-users-outgoing>);
	Tue, 3 Jun 2008 11:50:43 -0400
Received: from hrndva-omtalb.mail.rr.com ([71.74.56.125]:65243 "EHLO
	hrndva-omtalb.mail.rr.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org
	with ESMTP id S1752828AbYFCPum (ORCPT
	<rfc822;linux-rt-users@vger.kernel.org>);
	Tue, 3 Jun 2008 11:50:42 -0400
Received: from gandalf ([74.74.65.243]) by hrndva-omta03.mail.rr.com
          with ESMTP
          id <20080603155041.URDH15997.hrndva-omta03.mail.rr.com@gandalf>;
          Tue, 3 Jun 2008 15:50:41 +0000
Date: 	Tue, 3 Jun 2008 11:50:40 -0400 (EDT)
From: Steven Rostedt <rostedt@goodmis.org>
X-X-Sender: rostedt@gandalf.stny.rr.com
To: Thomas Gleixner <tglx@linutronix.de>
cc: linux-rt-users <linux-rt-users@vger.kernel.org>,
        Darren Hart <dvhltc@us.ibm.com>,
        Subrata Modak <subrata@linux.vnet.ibm.com>
Subject: [PATCH - cyclictest] handle latest ftrace
Message-ID: <Pine.LNX.4.58.0806031147290.22839@gandalf.stny.rr.com>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Sender: linux-rt-users-owner@vger.kernel.org
Precedence: bulk
List-ID: <linux-rt-users.vger.kernel.org>
X-Mailing-List: 	linux-rt-users@vger.kernel.org
X-RedHat-Spam-Score: -2.195
X-Scanned-By: MIMEDefang 2.58 on 172.16.52.254
X-Scanned-By: MIMEDefang 2.63 on 172.16.48.31


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>
2008-12-11 10:26:15 -06:00
Alessio Igor Bogani a038647f40 Makefile patch to prevent deleting too many files in clean operation 2008-12-11 10:13:07 -06:00
Clark Williams 5d8328bb03 changed test to not require root 2008-12-02 12:22:25 -06:00
Clark Williams 7cc5483775 told git to ignore tarballs and tmpdir 2008-10-22 15:02:17 -05:00
Clark Williams b4265a0e8e changed release target in Makefile 2008-10-22 15:00:57 -05: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 81523d18b4 Release 0.27
Testing before release would be better !

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-07-28 12:45:20 +02:00
Thomas Gleixner d14c3da7c8 release v0.26
Remove the rpm spec file from git as it is autogenerated.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-07-28 12:35:08 +02:00
Thomas Gleixner db07df3e98 Release v0.25
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-07-27 22:50:56 +02: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
Thomas Gleixner 8e30668e24 rt-tests: v0.24
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-07-12 04:22:44 +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
Thomas Gleixner 4f55874ffd Version 0.23
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-07-06 19:21:42 +02: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 7a052daef0 rt-tests/Makefile: Import an updated version number into RPM spec file
Import an updated version number into RPM spec file.

Signed-off-by: Carsten Emde <C.Emde@osadl.org>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-06-05 08:41:16 +02: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
Thomas Gleixner b0841096ce Version 0.22
I'm getting old and forgetful :)

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-06-04 17:30:55 +02:00
Alessio Igor Bogani 434091fc65 Fix some typo in the cyclictest's man page 2008-06-04 17:30:07 +02:00
Alessio Igor Bogani 87d83b67cc Add produced binary into .gitignore 2008-06-04 17:30:07 +02:00
Thomas Gleixner 8d09028ba3 Version 0.21
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-06-04 17:22:51 +02:00
Thomas Gleixner 894308125b Make: Exclude releases subdir from release tarball
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
2008-06-04 17:21:55 +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
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