Commit Graph

997 Commits

Author SHA1 Message Date
Tobias Klauser 3fc59347e8 cyclictest: Remove duplicate entry for -m from manpage
Hi Thomas,

The patch below removes the duplicate entry for the -m/--mlockall option from
the cyclictest manpage. Patch is againnst current HEAD of rt-tests.git

Cheers, Tobias

Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
2009-04-30 14:46:28 -05:00
Clark Williams 986688b00b updated version string to 0.37 2009-04-29 15:31:10 -05:00
Clark Williams 9187c3944b added --tracer and --traceopt options 2009-04-29 15:30:44 -05:00
Clark Williams 552bd1a203 added --tracer and --traceopt options 2009-04-29 15:23:22 -05:00
Clark Williams 9abe9601f7 correct usage message for -w and -W 2009-04-24 15:35:27 -05:00
Clark Williams 54623d8d7e add -w and -W 2009-04-24 15:35:04 -05:00
GeunSik Lim 870347de96 [PATCH] cyclictest: Add tracing function about wakeup and wakeup_rt of ftrace.
This is patch to support wakeup & wakeup_rt tracing at the argument of
    cyclictest additionally. Current cyclictest support three tracing
    like PREEMPTOFF, IRQSOFF, PREEMPTIRQSOFF just.

    This additional function will help wakeup related tracing
    about sleep api [ex: nanosleep() , usleep] of cyclictest.

    Practically speaking, wakeup(+wakeup-rt) tracing by steven rostedt is useful
    in the linux based embedded product development.

    After patching,
    Fedora9#> cat /debug/tracing/available_tracers
    syscall blk kmemtrace power branch function_graph mmiotrace wakeup_rt wakeup \
    preemptirqsoff preemptoff irqsoff function sched_switch initcall nop
    Fedora9#> cyclictest -t 5 -p 80 -b 1000 -w -D 10 [enter] <--- tracing wakeup
    Fedora9#> cat /debug/tracing/trace

    Fedora9#> cyclictest -t 5 -p 80 -b 1000 -W -D 10 [enter] <--- tracing wakeup-rt
    Fedora9#> cat /debug/tracing/trace

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

Signed-off-by: Clark Williams <williams@redhat.com>
2009-04-24 15:20:50 -05:00
GeunSik Lim 6d4136e501 cyclictest: Remove duplicated description of cyclictest usage like -h.
Author: Lim,GeunSik <leemgs1@gmail.com>
Date:   Tue Apr 21 16:03:56 2009 +0900

    [PATCH] cyclictest: Remove duplicated description of cyclictest usage like -h.

    We often utilize a various options with "#>cyclictest --help" command in the terminal environment.
    When We run "#> cyclictest --help" command, We can show duplicated description about "-h" option
    for latency histogram.
    Unfortunatley, Some of the users is confusing because of two options about latency histogram.

    [root@fedora9 invain]# ./cyclictest --help
    cyclictest V 0.36
    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
    -E       --event           event tracing (used with -b)
    -f       --ftrace          function trace (when -b is active)
    -h H_MAX                   latency histogram size in us default 0 (off)
    -i INTV  --interval=INTV   base interval of thread in us default=1000

         ................. [Middle Omission] ...................

    -v       --verbose         output values on stdout for statistics
                               format: n:c:v n=tasknum c=count v=value in us
    -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
    -h       --histogram=US    dump a latency histogram to stdout after the run
                               US is the max time to be be tracked in microseconds

    For example,

    -h H_MAX                   latency histogram size in us default 0 (off)

    -h       --histogram=US    dump a latency histogram to stdout after the run
                               US is the max time to be be tracked in microseconds

    As you see, We don't need "-h H_MAX  . . . . . ." description.
    So, I think that We have to remove old option about description of histogram function.

    Signed-off-by: GeunSik Lim <leemgs1@gmail.com>
2009-04-24 15:05:53 -05:00
Clark Williams 0e2f1a14ff version bump to 0.36 2009-04-20 14:09:12 -05:00
Clark Williams 5dce871f96 updated cyclictest man page with -C/--context and -E/--event options 2009-04-20 14:07:05 -05:00
GeunSik Lim 7272c4d320 cyclictest: bugfix getopt_long() for -C and -F.
Author: Lim,GeunSik <leemgs1@gmail.com>
Date:   Wed Apr 8 22:21:59 2009 +0900

    [patch] cyclictest: bugfix getopt_long() for -C and -F.

    We can not use -C option without --context option for tracing context switching.
    ex) ./cyclictest -t 10 -m -b 100 -C
    We can not use -E option without --event option for tracing events.
    ex) ./cyclictest -t 10 -m -b 100 -E
    Append -C and -E option on getopt_long() function to solve this problems.

    Signed-off-by: GeunSik Lim <leemgs1@gmail.com>

Signed-off-by: Clark Williams <williams@redhat.com>
2009-04-20 14:01:21 -05:00
Clark Williams 876c33c8a9 fixed release target in Makefile so rpms will build
updated version string to 0.35
minor format tweak to make variables

Signed-off-by: Clark Williams <williams@redhat.com>
2009-04-07 15:31:32 -05:00
Clark Williams 4d284a272e adjustedt install target to match Uwe's DESTDIR/prefix split
Signed-off-by: Clark Williams <williams@redhat.com>
2009-04-07 15:29:27 -05:00
Uwe Kleine-König f2e4eebd40 split function of DESTDIR into DESTDIR + prefix
It's more common that DESTDIR doesn't include /usr or /usr/local but
only the base directory for a relocated installation.  The in-tree
prefix is usually named "prefix".

"usually" here means as it is done by autoconf and as it is expected by
the Debian package helpers.

While at it also make the other path variables match this convention.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Clark Williams <williams@redhat.com>
2009-04-07 15:14:53 -05:00
Uwe Kleine-König 7453d772a0 Signed-off-by: Clark Williams <williams@redhat.com> 2009-04-07 15:08:17 -05:00
Clark Williams 6f3669db23 version bump to 0.34 2009-04-05 09:41:51 -05:00
Clark Williams 1b3ee55106 reworked settracer()
GeunSik Lim <leemgs1@gmail.com> found a problem with settracer()
in that it had a hardcoded limit to the number of tracers searched.
Unfortunately his patch found a bug in either fscanf or debugfs,
since it doesn't seem to return EOF at the end of input, so I reworked
the patch to read all the input and parse it using strtok.

Signed-off-by: Clark Williams <williams@redhat.com>
2009-04-05 09:31:24 -05:00
Clark Williams 99ba86e19c version bump to 0.33 2009-03-30 09:21:37 -05:00
Clark Williams d2532aed60 fix formatting damage from nanosecond patch 2009-03-30 09:21:07 -05:00
Clark Williams 64cca12051 version bump to 0.32 2009-03-28 09:39:51 -05:00
Luis Henriques 58f08ef334 cyclictest: Added option for results in nanoseconds
cyclictest results are presented in microseconds, although internal precision
uses nanosecond unit.  This patch adds a command-line option for keeping the
nanoseconds precision.  man page has also been update.

Signed-off-by: Luis Henriques <henrix@sapo.pt>
Signed-off-by: Clark Williams <williams@redhat.com>
2009-03-28 09:35:11 -05:00
Thomas Gleixner a7bd17e188 cyclictest: init tracer only once
The tracer setup happens in every thread, which is nonsense. First of
all it leads to a lot of irritating warnings because the things are
setup multiple times. The worst effect is that one tasks runs already
into the tracer stop condition and the next one reenables the tracer.

Move the tracer setup into the main thread and do it only once.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Clark Williams <williams@redhat.com>
2009-03-28 09:30:49 -05:00
Thomas Gleixner d4a986cb07 cyclictest: fix priviledge test
Switching back to SCHED_OTHER in check_priv() fails due to the param
argument of sched_setscheduler() set to NULL.

Set the priority to 0 and hand in params.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Clark Williams <williams@redhat.com>
2009-03-28 09:30:38 -05:00
Clark Williams 9ffdc557b3 added license header to sigtest.c 2009-03-21 09:58:57 -05:00
Clark Williams f4e80a2fb0 version bump to 0.31 2009-03-20 16:15:33 -05:00
Alessio Igor Bogani f5da548e25 Avoid ChangeLog erasing in tarball release
Execute a make clean into a rt-tests directory, exploded from a tarball,
cause erroneous erasing of the ChangeLog file. Let make do it only if it
executes under git tree.

Signed-off-by: Alessio Igor Bogani <abogani@texware.it>
Signed-off-by: Clark Williams <williams@redhat.com>
2009-03-17 16:18:46 -05:00
Thomas Gleixner 7aecff931f To: rt-users <linux-rt-users@vger.kernel.org>
Cc: Clark Williams <williams@redhat.com>
Subject: [patch 2/2] cyclictest: support for latest mainline tracer

The tracer in mainline changed the interface another time. Make it
work again.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Clark Williams <williams@redhat.com>
2009-02-13 15:36:14 -06:00
Thomas Gleixner 2c8f2d774e To: rt-users <linux-rt-users@vger.kernel.org>
Cc: Clark Williams <williams@redhat.com>
Subject: [patch 1/2] cyclictest: code cleanup

Started to grow whitespace and formatting sloppiness.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Clark Williams <williams@redhat.com>
2009-02-13 15:36:13 -06:00
Luis Henriques 0a378282d4 he help for the -C option was being printed out inside the help of the -c
option.

Signed-off-by: Luis Henriques <henrix@sapo.pt>
Signed-off-by: Clark Williams <williams@redhat.c m>
2009-02-09 13:18:35 -06:00
Clark Williams 41902b4ca0 corrected version bump 2008-12-18 16:52:12 -06:00
Clark Williams 495ed19184 bumped version string 2008-12-18 16:47:23 -06:00
Clark Williams 724dfb4690 changed deadlock detection to be a little more flexible 2008-12-18 16:46:58 -06:00
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 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