summaryrefslogtreecommitdiffstats
AgeCommit message (Collapse)AuthorFilesLines
2013-12-20set distribution=unstable for upload to Debiandebian/0.85-1Uwe Kleine-König1-1/+1
2013-07-16[debian] move backfire-dkms into the archive section "kernel"Uwe Kleine-König1-0/+1
This is where the ftpmasters put it into
2013-07-16Bump Standards-VersionUwe Kleine-König2-1/+2
2013-07-16Merge branch 'master' of ↵Uwe Kleine-König13-246/+292
git://git.kernel.org/pub/scm/linux/kernel/git/clrkwllms/rt-tests and refresh patches
2013-07-07restore changelog for 0.83-1.Uwe Kleine-König1-0/+6
The changelog was changed to 0.84-1 in commit f28f3e663f6 when upstream's 0.84 was merged instead of creating a new entry.
2013-06-26Build-Depends += libnuma-dev for powerpcspe, ppc64 and x32Uwe Kleine-König2-1/+8
2013-06-08set distribution=unstable for upload to Debiandebian/0.84-2Uwe Kleine-König1-1/+1
also set urgency=medium for fixing a serious bug
2013-06-08update Maintainer email addressUwe Kleine-König2-2/+2
2013-06-08cherry-pick patch for hackbench to fix it on armhfUwe Kleine-König3-0/+64
2013-06-08fix backfire kernel module for Linux v3.4-rc1 and laterUwe Kleine-König4-8/+19
2012-11-13version bump to 0.85v0.85Clark Williams2-1/+16
Signed-off-by: Clark Williams <williams@redhat.com>
2012-11-09Merge branch 'clrkwllms/work' into rt-tests-0.84-develJohn Kacur1-0/+33
Signed-off-by: John Kacur <jkacur@redhat.com>
2012-10-17V3: cyclictest: report large measured clock latencyFrank Rowand1-1/+108
V3: Use src/lib/error.c functions instead of fprintf. Fix printf format warnings for 32 bit vs 64 bit systems with cast. One issue with using warn() and info() instead of fprintf is that the compiler no longer warns about format mismatches. Fix bad continuation line white space prefix. Remove unused variable zero_diff. cyclictest: ARM panda clock resolution will be ~30 usec unless CONFIG_OMAP_32K_TIMER=n, resulting in a poor latency report. This patch does _not_ fix the problem, it merely provides the instrumentation to make it visible. The value of measured resolution is useful information for any system. Signed-off-by: Frank Rowand <frank.rowand@am.sony.com> - Fixed up minor white space problem. Signed-off-by: John Kacur <jkacur@redhat.com>
2012-10-17V3: cyclictest: clean up getopt_long() parametersFrank Rowand1-71/+74
V3: unchanged from V2 cyclictest getopt_long() parameter clean up. Clean up before following patch which will add a new option. Some elements of long_options were not in alphabetical order. Some elements of optstring were not in alphabetical order. '-e', '--latency' was missing help text short form of --duration ('D') was missing from optstring Change a few instances of leading spaces to tabs. Add white space to long_options to improve readability. Some cases of the switch processing the result of getopt_long() were not in alphabetical order. Did _not_ clean up option value parsing and processing. Signed-off-by: Frank Rowand <frank.rowand@am.sony.com> Signed-off-by: John Kacur <jkacur@redhat.com> Conflicts: src/cyclictest/cyclictest.c
2012-10-17rt-tests Makefile: Add CPPFLAGS to the pattern rule to generate dependenciesJohn Kacur1-1/+1
Signed-off-by: John Kacur <jkacur@redhat.com>
2012-10-17rt-tests Makefile: separate CFLAGS and CPPFLAGSUwe Kleine-König1-2/+3
For compilation to work -D_GNU_SOURCE -Isrc/include is needed to be passed to the compiler. For Debian packaging several things are added but not these two from above. So be a bit more friendly and add them unconditionally. There is no harm if they are included in the user supplied CFLAGS and so passed twice. Moreover be a bit more correct about CFLAGS/CPPFLAGS. Both should be passed to the compiler with CFLAGS taking options for the compiler and CPPFLAGS taking options for the preprocessor. This is also needed for Debian packaging where the helper scripts set CPPFLAGS. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: John Kacur <jkacur@redhat.com>
2012-10-17rt-tests: have printf use %s format for stringsUwe Kleine-König4-8/+8
Discovered while compiling with "hardening flags" For Debian 7.0 (aka wheezy) packages it's recommended to use several hardening flags, the default on amd64 being: CFLAGS=-g -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat -Werror=format-security CPPFLAGS=-D_FORTIFY_SOURCE=2 LDFLAGS=-Wl,-z,relro This patch doesn't fix all warnings but at least makes all programs compile again by not using char *variables as printf format strings. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: John Kacur <jkacur@redhat.com>
2012-10-17rt-tests / gitignore: Exclude patches and .a libs too.John Kacur1-0/+2
Minor fix to make working with git nicer. Now that we're building a lib, we need to exclude it from git status output. Do the same for patches we generate or apply. Signed-off-by: John Kacur <jkacur@redhat.com>
2012-10-17cyclictest: histogram overflow instance trackingBhavesh Davda1-3/+23
Add feature to cyclictest histogram mode to track cycle counts every time a sample overflows the histogram limit. This should help identify if there is a timing pattern to jitters in cyclictest runs. Example output (with -h 10): ... Histogram Overflows: 00001 00007 00000 00009 00004 00007 00000 00001 Histogram Overflow at cycle number: Thread 0: 09964 Thread 1: 00000 00004 00006 00008 00010 09962 11594 Thread 2: Thread 3: 01169 04698 06782 09033 10299 11561 21517 28734 29532 Thread 4: 11574 11580 11583 11586 Thread 5: 00020 09448 13954 14954 18954 20587 24973 Thread 6: Thread 7: 18950 ... Signed-off-by: Bhavesh Davda <bhavesh@vmware.com> Reviewed-by: Frank Rowand <frank.rowand@am.sony.com> Signed-off-by: John Kacur <jkacur@redhat.com>
2012-10-17cyclictest: whitespace cleanupBhavesh Davda1-20/+20
Cosmetic whitespace cleanup Signed-off-by: Bhavesh Davda <bhavesh@vmware.com> Signed-off-by: John Kacur <jkacur@redhat.com>
2012-09-19set distribution=experimental for upload to Debiandebian/0.84-1Alexander Reichle-Schmehl1-2/+2
2012-09-02update to standards version 3.9.3Uwe Kleine-König2-1/+2
2012-09-02convert copyright file to machine-readable copyright format version 1.0Uwe Kleine-König2-29/+26
2012-09-02make sure all patches have .patch extensionRicardo Salveti de Araujo4-3/+3
[ukl: This was done as part of an update for 0.84 commit and separated out as standalone patch by me] Signed-off-by: Ricardo Salveti de Araujo <ricardo.salveti@linaro.org>
2012-09-02properly pass all needed options to the compilerUwe Kleine-König2-0/+45
debhelper provides CFLAGS and CPPFLAGS but not the options needed to compile rt-tests. So make sure all needed and specified options make it to the compiler
2012-09-02add a .gitignore to unignore patches subdirUwe Kleine-König1-0/+1
2012-09-02fix several FTBFS with hardening flags from dpkg-buildflagsUwe Kleine-König2-0/+91
2012-09-02bump dh to compatibility level v9 to get hardening build flagsUwe Kleine-König2-2/+2
2012-09-02bump debian version for 0.84 and refresh patchesUwe Kleine-König6-42/+24
2012-08-30add setup and call of tracemark function for breaktraceClark Williams1-0/+33
Add back call to the tracemark function but only if we're using the breaktrace option and only when we actually hit the breaktrace threshold. Signed-off-by: Clark Williams <williams@redhat.com>
2012-07-18Merge tag 'v0.84'Uwe Kleine-König16-142/+398
misc fixes
2012-05-09version bump to 0.84v0.84Clark Williams2-1/+24
Signed-off-by: Clark Williams <williams@redhat.com>
2012-05-09rt-tests / cyclictest: Make cyclictest fail if it cannot run with requested ↵John Kacur1-1/+75
priority. Currently if a non-root user requests a priority higher than the soft limit in /etc/security/limits.conf the call to sched_setscheduler will silently fail and the user will be running with priority of 0. Cyclictest will not complain, and display the requested priority resulting in seemingly poor results. The following patch fixes this by doing two things. 1. If the requested priority is higher than the soft limit but lower than the hard limit, it will raise the soft limit to the requested priority. 2. If the requested priority is higher than the hard limit, it will fail with a warning. The patch should not affect privileged users. Reported-by: Nicholas Mc Guire <der.herr@hofr.at> Signed-off-by: John Kacur <jkacur@redhat.com> Signed-off-by: Clark Williams <williams@redhat.com>
2012-05-03rt-tests: printf format compile warningFrank Rowand1-1/+1
V2: use type casting instead of ugly constant in format string Fix printf format string to fix compile warning for ARM 32 bit target. Signed-off-by: Frank Rowand <frank.rowand@am.sony.com> Signed-off-by: Clark Williams <williams@redhat.com>
2012-05-03rt-tests: incorrect first latency value for --verbose optionFrank Rowand1-6/+16
When the --verbose option is selected, the first value for each thread is incorrectly reported as zero. This is because when collecting the first value, the index into stat->values is incremented from zero to one before storing the value. But when printing the values, the first value printed is stat->values[0], which has been initialized to zero. Signed-off-by: Frank Rowand <frank.rowand@am.sony.com> Signed-off-by: Clark Williams <williams@redhat.com>
2012-05-03rt-tests: Makefile get machinetype from compiler instead of unameFrank Rowand1-2/+2
Fix the machinetype check for cross-compiling. This has been tested on an x86_64 Fedora host for an x86_64 target and an ARM target. Additional testing would be greatly appreciated. Signed-off-by: Frank Rowand <frank.rowand@am.sony.com> Tested-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Clark Williams <williams@redhat.com>
2012-05-03rt-tests: cyclictest warn of interaction between '-a', '--smp', and '--numa'Frank Rowand1-4/+12
The '-a' option is always ignored if --smp or --numa is specified. Fix the warning message to not depend on --smp or --numa occuring first. Signed-off-by: Frank Rowand <frank.rowand@am.sony.com> Tested-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Clark Williams <williams@redhat.com>
2012-05-03rt-tests: cyclictest avoid unneeded warningFrank Rowand1-2/+3
Avoid annoying warning message when tracing is not requested and the debug file system is not available. The same test already protects against calling event_enable_all(). Signed-off-by: Frank Rowand <frank.rowand@am.sony.com> Reviewed-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Clark Williams <williams@redhat.com>
2012-05-03rt-tests: cyclictest segfault with '-a'Frank Rowand1-1/+3
This fixes a segfault on ARM when the '-a' option is used. man sched_setaffinity says to use pthread_setaffinity_np() when using the POSIX threads API. Signed-off-by: Frank Rowand <frank.rowand@am.sony.com> Tested-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: Clark Williams <williams@redhat.com>
2012-03-26Merge remote-tracking branch 'jkacur/rt-tests-0.83-devel' into workClark Williams0-0/+0
Conflicts: Makefile
2012-03-26change cyclictest measurement thread to check returns and exit on errorClark Williams1-15/+26
Start of an ongoing process to have error strategy where return is checked and if error, exit with appropriate status. Signed-off-by: Clark Williams <williams@redhat.com>
2012-03-26report number of samples written in hwlatdetectClark Williams1-1/+3
Signed-off-by: Clark Williams <williams@redhat.com>
2012-03-26install: Fix failed to create symbolic link hwlatdetect file existsJohn Kacur1-1/+1
The following build error can occur if you have done a previous make install if test -n "/usr/lib/python2.7/site-packages" ; then \ install -D -m 755 src/hwlatdetect/hwlatdetect.py /usr/lib/python2.7/site-packages/hwlatdetect.py ; \ ln -s /usr/lib/python2.7/site-packages/hwlatdetect.py "/usr/local/bin/hwlatdetect" ; \ fi ln: failed to create symbolic link `/usr/local/bin/hwlatdetect': File exists make: *** [install] Error 1 I initially wanted to fix the error by removing the symbolic link, with rm -rf but Andrew Burgess pointed out that you can just use the ln's -f (force) flag. I like that solution better. Suggested-by: Andrew Burgess <aab@cichlid.com> Signed-off-by: John Kacur <jkacur@redhat.com>
2012-03-23Revert "cyclictest problem/bug as non-root"Clark Williams1-15/+1
This reverts commit 64e635bc513a3a114729f86de7a87780b2737605. moving to the check-return-and-exit strategy Signed-off-by: Clark Williams <williams@redhat.com>
2012-03-23Merge remote-tracking branch 'jkacur/rt-tests-0.83-devel' into workClark Williams12-110/+138
2012-03-23install: Fix failed to create symbolic link hwlatdetect file existsJohn Kacur1-0/+1
The following build error can occur if you have done a previous make install if test -n "/usr/lib/python2.7/site-packages" ; then \ install -D -m 755 src/hwlatdetect/hwlatdetect.py /usr/lib/python2.7/site-packages/hwlatdetect.py ; \ ln -s /usr/lib/python2.7/site-packages/hwlatdetect.py "/usr/local/bin/hwlatdetect" ; \ fi ln: failed to create symbolic link `/usr/local/bin/hwlatdetect': File exists make: *** [install] Error 1 Fix the error by removing the symbolic link. Signed-off-by: John Kacur <jkacur@redhat.com>
2012-03-23Move info, warn, and fatal functions to error.[ch]John Kacur8-36/+39
Move warning, error and fatal function to the error files. This is a first step in cleaning up rt-tests. Signed-off-by: John Kacur <jkacur@redhat.com>
2012-03-23Makefile: Introduce a static libraryJohn Kacur1-10/+13
Introduce a static libray. Currently it contains the functions in rt-utils.c error.c and rt-get_cpu.c Signed-off-by: John Kacur <jkacur@redhat.com>
2012-03-23Makefile: Support user supplied CFLAGS and LDFLAGSDarren Hart1-12/+13
Accept user supplied CFLAGS and LDFLAGS, overwriting the Makefile supplied versions. This can cause the build to fail if the user does not provide at least what the Makefile defines, but so be it. Signed-off-by: Darren Hart <dvhart@linux.intel.com> CC: Clark Williams <williams@redhat.com> CC: John Kacur <jkacur@redhat.com> CC: Denys Dmytriyenko <denis@denix.org> Signed-off-by: John Kacur <jkacur@redhat.com>
2012-03-23pi_stress: Check the status of sched_getaffinityJohn Kacur1-0/+8
Check the status of sched_getaffinity and exit upon error. CPU_ISSET only checks whether a cpu is in a mask, and not whether the mask is valid. Checking the status ensures we aren't working with garbage values. This also removes the warning from gcc about the status variable being unused as reported by Darren Hart. Reported-by: Darren Hart <dvhart@linux.intel.com> Signed-off-by: John Kacur <jkacur@redhat.com>
2012-03-23rt-tests: Update rt-migrate-test to use ftrace infrastructureSteven Rostedt1-39/+46
The rt-migrate-test in the rt-tests is still using the old logdev interface that requires the logdev patch. Ftrace has been introduced into mainline Linux since 2.6.27 and has many more features than logdev. The rt-migrate-test should interact with ftrace instead of logdev. Signed-off-by: Steven Rostedt <rostedt@goodmis.org> Signed-off-by: John Kacur <jkacur@redhat.com>
2012-03-23gitignore: differentiate between program names and directoriesJohn Kacur1-13/+18
Many rt-test programs including cyclictest have directories with the same name as the generated binaries. Tell .gitignore to only ignore the program names and not the directories by using a slash prefix. Signed-off-by: John Kacur <jkacur@redhat.com>
2012-02-13Merge branch 'master' into workClark Williams1-1/+15
2012-02-13cyclictest problem/bug as non-rootNicholas Mc Guire1-1/+15
HI ! minor bug in cyclictest but potential causing confusion on cyclictest resuults when running as non-root user. Setup: if one sets the rtprio in /etc/security/limits.conf to something below prio max - like: @hofrat hard rtprio 10 @hofrat soft rtprio 10 but then starts cylictest with -p 80 cyclictest will not fuss and also display priority 80 (as it uses par->prio in print_stat) but effectively runs with prio 0 as the return value of sched_setscheduler is not being checked in timerthread), resulting in semingly bad scheduling jitter values. So maybe cyclictest should take the effective maximum schduling priority of the user and not the scheduling policy maximum. Not sur if the check in timerthread is actually really needed - but it should not hurt ither. patch below (against current git) at "works for me" quality. thx! hofrat
2011-12-02Merge tag 'v0.83' of git://github.com/clrkwllms/rt-testsdebian/v0.83-1Uwe Kleine-König12-118/+452
Further update changelog and refresh patches Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2011-11-10Merge https://github.com/flosse/rt-tests into workClark Williams1-0/+87
2011-11-10[cyclictest] added priority spreading option --priospreadClark Williams1-2/+12
Add option to spread priorities across measurement threads in decending order. Signed-off-by: Clark Williams <williams@redhat.com>
2011-10-24added description from osadl.orgMarkus Kohlhase1-0/+87
2011-09-26version bump to 0.83v0.83Clark Williams2-1/+4
Signed-off-by: Clark Williams <williams@redhat.com>
2011-09-26Modified Makefile to be smarter about turning on/off NUMA compileClark Williams1-2/+6
Combined Uwe Kleine-König and Frank Rowand's suggestions into a Makefile modification that tries to be smart about turning on NUMA, while allowing it to be explicitly enabled/disabled via command line options Signed-off-by: Clark Williams <williams@redhat.com>
2011-09-21version bump to 0.82v0.82Clark Williams2-1/+4
Signed-off-by: Clark Williams <williams@redhat.com>
2011-09-21fix print that causes histogram processing error in cyclictestClark Williams1-2/+2
Signed-off-by: Clark Williams <williams@redhat.com>
2011-09-20version bump to 0.81v0.81Clark Williams2-1/+4
Signed-off-by: Clark Williams <williams@redhat.com>
2011-09-20cleaned up previous hack for using /dev/cpu_dma_latencyClark Williams1-12/+21
Changed function name to set_latency_target() and added a command line argument to allow passing in values other than the default of zero microseconds. Signed-off-by: Clark Williams <williams@redhat.com>
2011-09-20version bump to 0.80v0.80Clark Williams2-1/+5
Signed-off-by: Clark Williams <williams@redhat.com>
2011-09-20use latency trick to hold system in idle=poll for duration of cyclictest runClark Williams1-1/+39
Use the /dev/cpu_dma_latency power management interface to hold the system in idle=poll state while cyclictest is running. Look in the kernel documenation: Documentation/power/pm_qos_interface.txt for more information. Signed-off-by: Clark Williams <williams@redhat.com>
2011-09-15version bump to 0.79v0.79Clark Williams2-1/+5
Signed-off-by: Clark Williams <williams@redhat.com>
2011-09-15hackbench mods to work better under stressClark Williams1-2/+26
added a signal_worker routine to send individual SIGTERM's to worker threads (since sending via pid=0 seems to have issues). Also added the -F/--fifo option to change the main thread to a SCHED_FIFO realtime thread after creating the workers. This will allow the mangagement thread to run when there are tons of workers. Signed-off-by: Clark Williams <williams@redhat.com>
2011-09-14version bump to 0.78v0.78Clark Williams2-1/+4
Signed-off-by: Clark Williams <williams@redhat.com>
2011-09-14modify signal handling logic and clarify modeClark Williams1-12/+18
Modify signal handling logic so main can't receive sigterm when reaping children Also added THREAD_MODE and PROCESS_MODE defines to use rather than bare constants 0 and 1. Signed-off-by: Clark Williams <williams@redhat.com>
2011-09-09version bump to 0.77v0.77Clark Williams2-1/+4
Signed-off-by: Clark Williams <williams@redhat.com>
2011-09-09remove tracemark functions from cyclictestClark Williams1-35/+1
removed trace marking functions because they cause too much contention on multiprocessor systems. Signed-off-by: Clark Williams <williams@redhat.com>
2011-09-07version bump to 0.76v0.76Clark Williams2-1/+8
Signed-off-by: Clark Williams <williams@redhat.com>
2011-09-07add stat(2) shortcuts to mount_debugfs()Clark Williams2-10/+36
Before trying to parse /proc/mount, check for existance of directories /sys/kernel/debug/tracing and /debug/tracing using stat(2). Signed-off-by: Clark Williams <williams@redhat.com>
2011-09-07modify /proc/sys/kernel/ftrace_enabled handlingClark Williams1-3/+16
Only turn on ftrace_enabled if we're doing tracing that requires the function tracer. Don't turn it on for event-based tracing. Also, turn it off a the end of a run. Signed-off-by: Clark Williams <williams@redhat.com>
2011-09-07handle stupid systemd automount of debugfsClark Williams1-3/+19
Signed-off-by: Clark Williams <williams@redhat.com>
2011-09-02version bump to 0.75v0.75Clark Williams2-1/+11
Signed-off-by: Clark Williams <williams@redhat.com>
2011-09-01allow tracemark() to take variable argsSteven Rostedt1-2/+13
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2011-09-01use interval on first loop instead of 1 secondSteven Rostedt1-1/+4
Use the interval given for the first loop instead of one second wait. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2011-09-01only check file descriptor in tracemark() functionSteven Rostedt1-1/+1
If the tracemark_fd is >= 0, then we know we can write to the trace_marker file. We only need to check that and not version of the kernel or anything else at every instance of calling tracemark(). Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2011-09-01do not touch tracing_threshSteven Rostedt1-3/+0
The -b argument is for stopping the cyclictest when it misses a wakup by that # microseconds. Setting the tracing_thresh causes the latency tracer to ignore any latency under tracing_thresh. These two meanings are completely agnostic to each other, and should not be the same. We want the max latency, that should be good enough. Not only those that are bigger than our missed deadline. That misses most of our traces that we want. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2011-09-01Have -I and -P together also be -BSteven Rostedt1-6/+22
-B is used to enable preemptirqsoff, but it also makes sense that one could use both -I and -P together for the same thing. Also rename the enum IRQPREEMPTOFF TO PREEMPTIRQSOFF to match the tracer it represents and avoid confusion. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2011-09-01allow events for all tracersSteven Rostedt1-12/+14
Events are available for all tracers, including function and latency tracers. Do not treat them as a tracer. The -E option is agnostic to the tracer options, and if it is set, then events will be enabled for any tracer that is also set. If it is set by itself, then events will be enabled with the nop tracer. Also, the nop tracer is set before setting any of the tracers. This makes the nop tracer the default as well as clears out the trace before running the test. Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2011-09-01commit WIP for rostedtClark Williams3-45/+200
Signed-off-by: Clark Williams <williams@redhat.com>
2011-08-26set distribution=unstable for upload to Debiandebian/v0.74-1Uwe Kleine-König1-2/+2
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2011-08-26debian/copyright: update for 0.74Uwe Kleine-König1-1/+2
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2011-08-20new patch fixing a build failure in the backfire kernel moduleUwe Kleine-König2-0/+41
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2011-08-20debian: Update to v0.74Uwe Kleine-König3-71/+2
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2011-08-20Merge tag 'v0.74' of ↵Uwe Kleine-König8-45/+930
git://git.kernel.org/pub/scm/linux/kernel/git/clrkwllms/rt-tests
2011-08-18version bump to 0.74v0.74Clark Williams2-1/+11
Signed-off-by: Clark Williams <williams@redhat.com>
2011-08-18fix possible buffer overflow in string handlingUwe Kleine-König2-4/+19
strncat writes up to n+1 chars when n is passed as 3rd argument. So when doing strncpy(filename, fileprefix, sizeof(filename)); strncat(filename, name, sizeof(filename) - strlen(fileprefix)); with strlen(fileprefix) + strlen(name) >= sizeof(filename) a buffer overflow occurs. Addionally there is no check if filename is big enough. So convert to memcpy and handle filename not being big enough. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Clark Williams <williams@redhat.com>
2011-08-18added files to git repoClark Williams4-0/+814
Signed-off-by: Clark Williams <williams@redhat.com>
2011-08-12update cyclictest to handle 3.0-rt as well is update ftraceClark Williams1-33/+81
reworked the kernel versioning logic to handle the 3.0 kernel and update the ftrace logic to deal with changes to the debugfs tracing directory. Signed-off-by: Clark Williams <williams@redhat.com>
2011-08-09Merge remote-tracking branch 'jkacur/rt-tests-dev-new' into workClark Williams1-5/+3
2011-07-17bump backfire versionUwe Kleine-König2-2/+2
This fixes dkms to find the source files again. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2011-07-16add a README describing how to allow changing scheduler policy for usersUwe Kleine-König1-0/+9
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2011-07-16new patch: Don't reference non-standard realtime groupUwe Kleine-König3-0/+29
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2011-07-16debian/control: bump Standards-Version to 3.9.2Uwe Kleine-König2-1/+2
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2011-07-16new patch fixing a harmless build warning by dpkg-shlibdepsUwe Kleine-König2-0/+114
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2011-07-16switch to debhelper compatibility level 8Uwe Kleine-König2-2/+2
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2011-07-16debian/rules: provide sequence as first parameter to dhUwe Kleine-König2-4/+8
This is needed for debhelper compatibility level 8. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2011-06-25new patch providing a man page for pip_stressUwe Kleine-König3-0/+54
This fixes the following lintian warning: W: rt-tests: binary-without-manpage usr/bin/pip_stress Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2011-06-25debian/rules: add build-{arch,indep} targetsUwe Kleine-König3-4/+8
This fixes the following warnings from lintian: W: rt-tests source: debian-rules-missing-recommended-target build-arch W: rt-tests source: debian-rules-missing-recommended-target build-indep Debhelper 8.1.0 is the first version supporting the corresponding sequences, so bump Build-Depends. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2011-05-13Minor Fix-upsJohn Kacur1-6/+4
1. Make the function header style consistent with the rest of cyclictest. 2. Spelling clean-ups. Signed-off-by: John Kacur <jkacur@redhat.com>
2011-05-13refresh patches for new upstream releaseUwe Kleine-König6-62/+11
- drop modernize_backfire_Makefile and install_backfire_Makefile (applied upstream) - refresh install_hwlatdetect_into_sbindir and kernvar_fix_possible_buffer_overflow Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2011-05-13Merge tag 'v0.73' of ↵Uwe Kleine-König6-62/+144
git://git.kernel.org/pub/scm/linux/kernel/git/clrkwllms/rt-tests
2011-05-12fixed spelling error in printfClark Williams1-1/+1
Signed-off-by: Clark Williams <williams@redhat.com>
2011-05-09fixed BuildRequires in specfile for PythonClark Williams1-1/+1
Need python to be able to correctly install hwlatdetect. Signed-off-by: Clark Williams <williams@redhat.com>
2011-05-09version bump to 0.73v0.73Clark Williams2-1/+16
Signed-off-by: Clark Williams <williams@redhat.com>
2011-05-05hackbench: add setjmp/longjmp and rework signal handling logicClark Williams1-34/+49
Use setjmp/longjump to get the parent process back out of processing loop and into forced kill mode for the child processes/threads. Added function reset_worker_signals() so that workers (sender and receiver) don't try to reap as well. Signed-off-by: Clark Williams <williams@redhat.com>
2011-05-04cyclictest: Fixed incorrect wakeup reset interfaceGeunsik Lim1-1/+2
When we try to run ftrace with cyclictest command of rt-test, We view the error according to different kernel version. We need to modify this hard coded interface. * Directory name of each kernel version 2.6.24.7-rt23 /sys/kernel/debug/tracing/latency_hist/wakeup_latency/reset 2.6.31-rc9-rt9.1 /sys/kernel/debug/tracing/latency_hist/wakeup/reset 2.6.33.7.2-rt30 /sys/kernel/debug/tracing/latency_hist/wakeup/reset * parsing verification: ./linux-2.6/scripts/checkpatch.pl --> OK Signed-off-by: Geunsik Lim <geunsik.lim@samsung.com> Reviewed-by: John Kacur <jkacur@redhat.com> Reviewed-by: Carsten Emde <C.Emde@osadl.org> Signed-off-by: Clark Williams <williams@redhat.com>
2011-05-04Simplify Makefile using -D option to installWolfram Sang1-4/+2
install can also create directories with -D Signed-off-by: Clark Williams <williams@redhat.com>
2011-05-04add histogram summary column option (-H) to cyclictestCarsten Emde2-10/+47
To compare histograms of several SMP machines or to gain an overview when cyclictest is running more than a single thread, an overall histogram is required that contains a summary of the individual thread latencies. This patch adds this functionality and introduces the new option -H/--histofall for this purpose. Signed-off-by: Carsten Emde <C.Emde@osadl.org> Signed-off-by: Clark Williams <williams@redhat.com>
2011-05-04fix sched_setaffinity type error when building with UCLIBCDaniel Sangorrin1-4/+16
Change type of faux sched_setaffinity to match headers. Also add additional report info when dumping histogram. Signed-off-by: Clark Williams <williams@redhat.com>
2011-03-30debian/backfire-dkms: add BUILT_MODULE_NAME[0] to fix warningUwe Kleine-König2-1/+8
Before this change $(dkms status) issued: dkms.conf: Error! No 'BUILT_MODULE_NAME' directive specified for record #0. backfire, 0.71-1, 2.6.32-5-amd64, x86_64: installed (WARNING! Missing some built modules!) Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2011-03-20set distribution=unstable for upload to Debiandebian/v0.72-1Uwe Kleine-König1-2/+2
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2011-03-20debian/control: bump Standards-Version to 3.9.1Uwe Kleine-König2-1/+2
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2011-02-18debian/control: use Architecture: linux-anyUwe Kleine-König2-2/+2
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2011-02-18update debian/changelog for new upstream releaseUwe Kleine-König1-0/+8
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2011-02-18new patch: kernvar() fix possible buffer overflowUwe Kleine-König2-0/+70
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2011-02-18Merge tag 'v0.72' of ↵Uwe Kleine-König4-10/+25
git://git.us.kernel.org/pub/scm/linux/kernel/git/clrkwllms/rt-tests
2010-07-01install backfire's MakefileUwe Kleine-König1-0/+1
Only installing backfire.c hardly makes sense. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2010-07-01modernize backfire's MakefileUwe Kleine-König1-9/+12
- don't rely on non-standard envvar PWD, use make's CURDIR instead - allow overwriting KERNELDIR - less repetition by conflating targets - explicitly differentiate between kbuild and ordinary make part Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2010-06-25version bump to 0.72v0.72Clark Williams2-1/+7
Signed-off-by: Clark Williams <williams@redhat.com>
2010-06-25convert convert 'unsigned long long' and 'long long' to uint64_t and int64_tClark Williams1-8/+9
Cleanup spurred by need to make the 'diff' variable in timerthread() to be unsigned and 64-bits (rather than a signed 32-bit). Signed-off-by: Clark Williams <williams@redhat.com>
2010-06-14added --numa option to cyclictest man pageClark Williams1-1/+9
Documented the --numa mode option to cyclictest in the man page. Also updated the command summary to include the short options for the --smp and --numa modes (-S and -U). Signed-off-by: Clark Williams <williams@redhat.com>
2010-06-13Add more linux ports to ArchitectureUwe Kleine-König1-1/+1
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2010-06-08set distribution=unstable for upload to Debiandebian/v0.71-1Uwe Kleine-König1-2/+2
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2010-06-08add backfire package with dkms supportUwe Kleine-König9-4/+66
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2010-05-28add powerpcspe to architecture listUwe Kleine-König2-1/+2
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2010-05-28new patch: modernize backfire MakefileUwe Kleine-König2-0/+34
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2010-05-28update debian/c{opyright,ontrol,hangelog} for new upstream releaseUwe Kleine-König3-3/+27
The copyright of hackbench is specified as found in ltp and confimed by Ingo Molnar. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2010-05-26drop patches applied by upstream, refresh remaining patchUwe Kleine-König4-851/+13
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2010-05-26Merge tag 'v0.71' of ↵Uwe Kleine-König16-61/+1436
git://git.kernel.org/pub/scm/linux/kernel/git/clrkwllms/rt-tests
2010-05-18version bump to 0.71v0.71Clark Williams2-1/+5
Signed-off-by: Clark Williams <williams@redhat.com>
2010-05-18cyclictest: fix accumulating overruns in periodic timer modeMichal Schmidt1-0/+5
When using a POSIX interval timer and an overrun occurs, a signal is always lost. From then on cyclictest would report all measurements as increased by N*period (where N is the number of overruns). cyclictest can detect the overruns and adjust the expected time of the next tick accordingly. Reported-by: Marti Raudsepp <marti@juffo.org> Signed-off-by: Michal Schmidt <mschmidt@redhat.com> Signed-off-by: Clark Williams <williams@redhat.com>
2010-04-09version bump to 0.70v0.70Clark Williams2-1/+5
2010-04-09skip python dependency in rt-tests make installOlaf Hering1-3/+6
If python is not available on the target, skip the hwlatdetect.py installation with: make PYLIB= DESTDIR=/some/dir install Create PYLIB during make install with DESTDIR set Also, the second bindir should probably be srcdir. Signed-off-by: Olaf Hering <olaf@aepfle.de> Signed-off-by: Clark Williams <williams@redhat.com>
2010-04-09version bump to 0.69v0.69Clark Williams2-1/+8
2010-04-09default cyclictest to SCHED_OTHER; clean up help messageClark Williams1-3/+3
After much thought, I decided to keep cyclictest's default scheduling policy as SCHED_OTHER. My rationale is that if you don't specify a priority on the command line you get the priorityless policy. If you do specify a priority but no specific RT policy, we'll default to SCHED_FIFO. So to get SCHED_RR you have to specify priorty and policy name, for example: # cyclictest --priority=90 --policy=rr Yes, I realize that the vast majority of users will run it with a realtime priority, but I just don't like picking a priority if it wasn't specified. If you want a realtime policy, specify a priority. Signed-off-by: Clark Williams <williams@redhat.com>
2010-04-09added pmqtest to .gitignoreClark Williams1-0/+1
2010-04-01fix bus error when in numa mode with more than 16 coresClark Williams1-1/+1
The call numa_node_to_cpus() in rt_numa_numa_node_of_cpu() was failing because the cpumask buffer size was only 16 bytes and it seems to require 32. Change the declaration to be 256 just for paranoia's sake. Signed-off-by: Clark Williams <williams@redhat.com>
2010-04-01replace nanosleep with clock_nanosleep in pmqtestClark Williams1-2/+2
Since it's doing relative time sleeps probably not an issue, but move to clock_nanosleep(CLOCK_MONOTONIC, 0,...) to be clear. Signed-off-by: Clark Williams <williams@redhat.com>
2010-04-01Add pmqtest programCarsten Emde5-2/+668
This patch adds the program pmqtest to the rt-tests suite. The test mechanism is the same as in ptsematest, svsematest and friends, but it uses message queues to synchronize the test threads. To test the - now hopefully fixed - kernel problem that occurred when a timeout was specified, the -T option is available. On an 8-way machine, the test result may look like: Signed-off-by: Carsten Emde <C.Emde@osadl.org> Signed-off-by: Clark Williams <williams@redhat.com>
2010-04-01fixed typo in cyclictest.8 man pageClark Williams1-1/+1
Signed-off-by: Clark Williams <williams@redhat.com>
2010-03-19version bump to 0.68v0.68Clark Williams2-1/+4
Signed-off-by: Clark Williams <williams@redhat.com>
2010-03-19handle ftrace difference between 2.6.24 and 2.6.33Clark Williams1-3/+24
Somewhere between 2.6.24 and 2.6.33, the tracing_on field was added to the debugfs tracing dir. If it exists use it to turn tracing on and off; if not use tracing_enabled. Signed-off-by: Clark Williams <williams@redhat.com>
2010-03-16version bump to 0.67v0.67Clark Williams2-3/+21
Signed-off-by: Clark Williams <williams@redhat.com>
2010-03-16Merge branch 'work' into tempClark Williams7-10/+610
Conflicts: .gitignore Makefile
2010-03-16added hackbench executable to ignore targets in .gitignoreClark Williams1-0/+1
Signed-off-by: Clark Williams <williams@redhat.com>
2010-03-16reword rpm %description field for clarity (BZ# 572323)Clark Williams1-3/+3
Changed description field to be more descriptive Signed-off-by: Clark Williams <williams@redhat.com>
2010-03-16modifications to ftrace logic for correct operationClark Williams1-4/+11
Change enable/disable file to be tracing/tracing_on; enable the options/latency-trace format for function tracing; add tracetype CUSTOM for use with the -T/--tracer option. Signed-off-by: Clark Williams <williams@redhat.com>
2010-03-10cyclictest - fixed missing ':' in option processing string for -T optionClark Williams1-2/+2
the -T option (set tracer) option was missing a ':' for to indicate that it required an argument. Signed-off-by: Clark Williams <williams@redhat.com>
2010-03-08add-smp-option-to-svsematest.patchCarsten Emde1-2/+23
Add SMP testing option (-S, --smp) to svsematest, same as in cyclictest. Signed-off-by: Carsten Emde <C.Emde@osadl.org> Acked-by: John Kacur <jkacur@redhat.com>
2010-03-08add-smp-option-to-ptsematest.patchCarsten Emde1-2/+23
Add SMP testing option (-S, --smp) to ptsematest, same as in cyclictest. Signed-off-by: Carsten Emde <C.Emde@osadl.org> Acked-by: John Kacur <jkacur@redhat.com>
2010-03-08remove-incorrect-options-from-smp-help-message-in-cyclictest.patchCarsten Emde1-2/+2
The help message of cyclictest's -S option says that it equals -a -t -n -m -d0. In reality, it only equals -a -t -n. Signed-off-by: Carsten Emde <C.Emde@osadl.org> Acked-by: John Kacur <jkacur@redhat.com>
2010-03-08fix-policy-display-for-cyclictest.patchCarsten Emde1-6/+19
If the policy is forced to SCHED_OTHER, since the priority no longer fits into the SCHED_FIFO or SCHED_RR range, the policy display of cyclictest is somewhat incorrect. Display all policies. Also make the variable policystr static; the condition "if (!policystr)" is useless, otherwise. In addition, place the priority logic before decrementing the priority; a priority of 1 is incorrectly made SCHED_OTHER, otherwise. Signed-off-by: Carsten Emde <C.Emde@osadl.org> Acked-by: John Kacur <jkacur@redhat.com>
2010-03-08cyclictest: Make the default scheduling policy SCHED_FIFOJohn Kacur1-2/+1
The default scheduling policy if unspecified should be SCHED_FIFO. Before the change for example. sudo ./cyclictest policy: other: loadavg: 0.05 0.04 0.05 1/331 22367 T: 0 (22367) P: 0 I:1000 C: 1321 Min: 14 Act: 89 Avg: 77 Max: 942 After the change sudo ./cyclictest defaulting realtime priority to 2 policy: fifo: loadavg: 0.03 0.04 0.05 2/331 22387 T: 0 (22387) P: 2 I:1000 C: 713 Min: 17 Act: 41 Avg: 81 Max: 161 Signed-off-by: John Kacur <jkacur@redhat.com>
2010-03-08cyclictest: Fix spelling mistake in the man page.John Kacur1-1/+1
- In the -mlockall section, change "an" to "and" Signed-off-by: John Kacur <jkacur@redhat.com>
2010-03-08cyclictest: Use symbolic names for scheduling policyJohn Kacur1-10/+5
- Use symbolic names for scheduling policies, that is, don't assume SCHED_RR is 2, use SCHED_RR instead, and so on. - Fix the logic in handlepolicy(char *polname) - remove the test with the unreachable line, - make the default SCHED_FIFO if we don't recognize the requested policy. Signed-off-by: John Kacur <jkacur@redhat.com>
2010-03-08Revert "simplify equal priority logic for cyclictest"John Kacur1-5/+2
This reverts commit 582be2a52c43801a10d318de7491f1cc7243d5cf. Unfortunately this commit introduces a bug because the priority is not retested, and this can result in reported priorities below 0. For example, sudo ./cyclictest -t3 -p1 policy: fifo: loadavg: 0.09 0.06 0.05 1/331 21732 T: 0 (21730) P: 1 I:1000 C: 593 Min: 34 Act: 155 Avg: 100 Max: 672 T: 1 (21731) P: 0 I:1500 C: 395 Min: 15 Act: 43 Avg: 72 Max: 853 T: 2 (21732) P:-1 I:2000 C: 297 Min: 21 Act: 57 Avg: 79 Max: 330 Notice that the last priority is reported as -1. After reverting this commit, we get the correct expected behaviour. sudo ./cyclictest -t3 -p1 policy: fifo: loadavg: 0.07 0.05 0.04 2/330 21754 T: 0 (21752) P: 1 I:1000 C: 11600 Min: 13 Act: 7072 Avg: 3593 Max: 7841 T: 1 (21753) P: 0 I:1500 C: 7737 Min: 12 Act: 1572 Avg: 516 Max: 2381 T: 2 (21754) P: 0 I:2000 C: 5804 Min: 12 Act: 53 Avg: 59 Max: 548 I think it can be argued that the original code is also clearer, although that is somewhat subjective. With the original code I don't need to track down exactly what "sameprio" means, and it is clear what is being tested. Signed-off-by: John Kacur <jkacur@redhat.com>
2010-03-02set distribution=unstable for upload to Debiandebian/v0.66-2Uwe Kleine-König1-2/+2
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2010-03-02Urgency high due to rc bug fixAlexander Reichle-Schmehl1-1/+2
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2010-03-01rename pip to pip_stress as pip is too generalUwe Kleine-König4-12/+11
The command name is already taken by a perl script working with CPAN and a Python package installer. While at it remove trailing whitespace from three lines in src/pi_tests/pip_stress.c. Closes: http://bugs.debian.org/572104 Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: John Kacur <jkacur@redhat.com>
2010-03-01Makefile: don't use temporary files in generation of dependency filesUwe Kleine-König1-4/+1
These temporary files were a real problem when creating the Debian package for rt-tests. debhelper (a generic suite of scripts to ease packaging) did something like: perl -c 'close(STDERR); exec("make distclean");' which leaked the *.d.$$ files and then wailed that the package contained untracked changes to the vanilla source. See http://bugs.debian.org/570443 for some more details. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by: John Kacur <jkacur@redhat.com>
2010-03-01install backfire.c to $(srcdir)/backfire/Uwe Kleine-König1-0/+1
Acked-by: John Kacur <jkacur@redhat.com>
2010-03-01trivial: s/specifed/specified/Uwe Kleine-König1-1/+1
Acked-by: John Kacur <jkacur@redhat.com>
2010-03-01new patch: rename pip to pip_stressUwe Kleine-König3-0/+833
Closes: http://bugs.debian.org/572104 Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2010-02-24fix stupid typo in %changelog dateClark Williams1-1/+1
2010-02-24Merge remote branch 'uwe/for-clark' into workClark Williams2-5/+3
2010-02-24added hackbench manpage installation bitsClark Williams2-0/+2
Added hackbench.8 installation to both Makefile and specfile Signed-off-by: Clark Williams <williams@redhat.com>
2010-02-24Merge remote branch 'davids/master' into workClark Williams1-1/+37
2010-02-24Updated hackbench man page with some examples and some extra details re. fdsDavid Sommerseth1-1/+37
2010-02-24Makefile: don't use temporary files in generation of dependency filesUwe Kleine-König1-4/+1
These temporary files were a real problem when creating the Debian package for rt-tests. debhelper (a generic suite of scripts to ease packaging) did something like: perl -c 'close(STDERR); exec("make distclean");' which leaked the *.d.$$ files and then wailed that the package contained untracked changes to the vanilla source. See http://bugs.debian.org/570443 for some more details. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2010-02-24install backfire.c to $(srcdir)/backfire/Uwe Kleine-König1-0/+1
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2010-02-24Merge remote branch 'davids/master' into workClark Williams2-174/+50
2010-02-24hackbench - Taken out the runit.pl scriptDavid Sommerseth2-126/+1
We don't need to ship that, and Craig Thomas wrote only that code as far as we know, so taking him out of man page as well.
2010-02-24hackbench, man page: Added another contributor and a brief history of hackbenchDavid Sommerseth1-5/+19
2010-02-24man page, hackbench - Corrected wrong spellingDavid Sommerseth1-1/+1
2010-02-24Updated man page for hackbenchDavid Sommerseth1-51/+38
2010-02-23Merge remote branch 'davids/master' into workClark Williams1-5/+27
2010-02-23Merge remote branch 'origin/work'David Sommerseth1-0/+70
2010-02-23Merge remote branch 'dsommers/master'David Sommerseth0-0/+0
Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-23Added signal handling in hackbenchDavid Sommerseth1-5/+27
When receiving SIGINT or SIGTERM, it will now reap all worker threads/processes and properly stop them.
2010-02-23hackbench: Implemented getoptDavid Sommerseth1-32/+97
Improved argument/option handling by using getopt_long(). Made more of the parameters tunable as well. Hackbench now accepts the following arguments: -P | --pipe Use pipe -s | --datasize Number of bytes to pass from sender to receiver (default 100 bytes) -l | --loops Number of messages each sender will send (default 100 rounds) -g | --groups Number of groups with sender/receivers (default 10 groups) -f | --fds Number of file descriptors each group will use (default 20*2) -T | --threads Run using pthreads -P | --process Run using fork() Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-23(code cleanup) Tabified lines which was not tabbedDavid Sommerseth1-2/+2
Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-23Simplified and improved error logging, clarified some messagesDavid Sommerseth1-15/+15
Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-23Fixed a memory leak, receiver contexts not getting freed upon exitDavid Sommerseth1-1/+3
Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-23Reimplement better child tracking and improve error handlingDavid Sommerseth2-123/+124
This does much what earlier commits did before hackbench got updated to the latest version in the previous commit. Consider the following commits being "forward ported", feature wise: 4c39eff2136c39b3c2746ca293eed5b5242aea52 0a72fcaade064b70b698aab676217f28681280ff fbd80c495bd861545713279d5f96f1e4770d6911 bd588c92b8bae59e3404fc3c90283e98c9f0a96e Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-23Updated hackbench to lastest version availableDavid Sommerseth2-185/+333
Downloaded from http://people.redhat.com/mingo/cfs-scheduler/tools/hackbench.c February 19 2010. Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-23added hackbench.8 manpage frameworkClark Williams1-0/+70
Signed-off-by: Clark Williams <williams@redhat.com>
2010-02-23Merge remote branch 'davids/master' into workClark Williams2-187/+403
2010-02-23hackbench: Implemented getoptDavid Sommerseth1-32/+97
Improved argument/option handling by using getopt_long(). Made more of the parameters tunable as well. Hackbench now accepts the following arguments: -P | --pipe Use pipe -s | --datasize Number of bytes to pass from sender to receiver (default 100 bytes) -l | --loops Number of messages each sender will send (default 100 rounds) -g | --groups Number of groups with sender/receivers (default 10 groups) -f | --fds Number of file descriptors each group will use (default 20*2) -T | --threads Run using pthreads -P | --process Run using fork() Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-23(code cleanup) Tabified lines which was not tabbedDavid Sommerseth1-2/+2
Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-23Simplified and improved error logging, clarified some messagesDavid Sommerseth1-15/+15
Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-23Fixed a memory leak, receiver contexts not getting freed upon exitDavid Sommerseth1-1/+3
Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-23Reimplement better child tracking and improve error handlingDavid Sommerseth2-123/+124
This does much what earlier commits did before hackbench got updated to the latest version in the previous commit. Consider the following commits being "forward ported", feature wise: 4c39eff2136c39b3c2746ca293eed5b5242aea52 0a72fcaade064b70b698aab676217f28681280ff fbd80c495bd861545713279d5f96f1e4770d6911 bd588c92b8bae59e3404fc3c90283e98c9f0a96e Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-23Updated hackbench to lastest version availableDavid Sommerseth2-185/+333
Downloaded from http://people.redhat.com/mingo/cfs-scheduler/tools/hackbench.c February 19 2010. Signed-off-by: David Sommerseth <davids@redhat.com>
2010-02-22trivial: s/specifed/specified/Uwe Kleine-König1-1/+1
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
2010-02-22set distribution=unstable for upload to Debiandebian/v0.66-1Uwe Kleine-König1-2/+2
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>