Commit Graph

233 Commits

Author SHA1 Message Date
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
Clark Williams a778639f31 version bump to v0.44 2009-06-30 13:36:50 -05:00
Clark Williams 68b947acc1 renamed smidetect to hwlatdetect in specfile template 2009-06-30 13:36:35 -05:00
Clark Williams f247fd753a added code to resize window/width when setting the other to a smaller value 2009-06-30 13:36:06 -05:00
Clark Williams 803a417378 version bump to 0.43 2009-06-25 09:15:40 -05:00
Uwe Kleine-König 2a1cf80ccc hwlatdetect.8: There is no macro .R
You might wonder if this wasn't already fixed.  Yes it was (in
f16ec27fb3), but the change was undone by 3e04327f7f.

While at it add an .br which makes the paragraph look a bit nicer.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2009-06-24 00:21:08 +02:00
Clark Williams 219d5b48b1 version bump to 0.42 2009-06-12 15:48:18 -05:00
Clark Williams eb0c42a27c added copyright header to hwlatdetect.py 2009-06-12 15:47:59 -05:00
Clark Williams 652127181c updated hwlatdetect.8 to reflect new options/behavior 2009-06-12 15:47:35 -05:00
Clark Williams 3e04327f7f merge resolution 2009-06-12 13:20:17 -05:00
Clark Williams 11f68bd172 added hwlatdetect remove in clean target of Makefile 2009-06-12 13:15:45 -05:00
Clark Williams ad5a12cb08 removed internal defaults (went with module defaults); added debugging code; make sure window set before width 2009-06-12 13:06:12 -05:00
Uwe Kleine-König c7deee8c38 Make comment describing set_debugfileprefix a bit clearer
This was noticed by GeunSik Lim.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: GeunSik Lim <leemgs1@gmail.com>
Cc: Luis Claudio R. Goncalves <lclaudio@uudg.org>
Cc: Clark Williams <williams@redhat.com>
2009-06-12 15:38:06 +02:00
Clark Williams 556a10971c handled module changes 2009-06-10 23:32:41 -05:00
Clark Williams 77dc91b066 updated distclean target 2009-06-10 13:53:18 -05:00
Clark Williams 446ff91990 the great renaming: smidetect -> hwlat 2009-06-10 13:50:02 -05:00
Clark Williams 7bb717b666 added smidetect and generated spec file to .gitignore 2009-06-09 12:47:07 -05:00
Clark Williams 758df97308 added non-blocking open+polling read to handle new module logic; added debug statements 2009-06-09 12:45:58 -05:00
Clark Williams 30edd0b4ab rewrite to match updated smi_detector module 2009-05-30 10:30:49 -05:00
Stefan Agner 0884033338 cyclictest: calcdiff calculated wrong seconds if the difference was bigger than 2147s
Hello,

My first fix didn't took into account that long is 4 byte long on ARM. Therefor
I changed it to long long now, which works on my ARM board...

Signed-off-by: Stefan Agner <stefan@agner.ch>
Signed-off-by: Clark Williams <williams@redhat.com>
2009-05-28 14:56:27 -05:00
Uwe Kleine-König f16ec27fb3 smidetect.8: There is no macro .R
For a normal font just use nothing.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2009-05-14 01:06:38 +02:00
Clark Williams 5aac188d85 added smidetect 2009-05-13 13:57:11 -05:00
Clark Williams 934e60da53 added rule to ignore emacs backupfiles 2009-05-12 16:56:37 -05:00
Clark Williams e8711b5cb9 initial checkin 2009-05-12 16:54:06 -05:00
Clark Williams 45d0c73f33 initial checkin 2009-05-12 16:54:03 -05:00
Clark Williams 337bf38f80 initial checkin 2009-05-12 16:53:59 -05:00
Clark Williams 9153c383ec version bump to 0.39 2009-05-06 09:35:23 -05:00
Uwe Kleine-König ec536d0454 Makefile: don't override DESTDIR, prefix, bindir and mandir
This eases packaging rt-tests and shouldn't have any further impact.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2009-05-02 20:26:35 +02:00
Uwe Kleine-König c289046965 signaltest: fix typo in copyright header
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Cc: Thomas Gleixner <tglx@linutronix.de>
2009-05-02 20:02:37 +02:00
Uwe Kleine-König 8565bd61b4 escape minus signs in manpages
'-' chars are interpreted as hyphens by groff, not as minus signs.  This
means that if you're using an UTF-8 locale searching for '-' to find
options doesn't work.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2009-05-02 18:01:34 +02:00
Clark Williams 1b81d40771 version bump to 0.38 2009-04-30 15:28:32 -05:00
Clark Williams 95bd88ca5a added code to usage message to show configured tracers if debugfs mounted
Signed-off-by: Clark Williams <williams@redhat.com>
2009-04-30 15:27:15 -05:00
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