Commit Graph

225 Commits

Author SHA1 Message Date
John Kacur eb18c75481 rt-tests: Makefile: Use sysconfig instead of distutils for PYLIB
Use sysconfig instead of distutils for PYLIB
Version 2 takes into consideration that different versions of python
produce different results.

Signed-off-by: John Kacur <jkacur@redhat.com>
2023-02-15 17:10:37 -05:00
John Kacur 4579b9a6d8 rt-tests: Change to version v2.5
Change the version in the Makefile to 2.5
tag this commit as v2.5

Signed-off-by: John Kacur <jkacur@redhat.com>
2023-01-20 15:36:37 -05:00
John Kacur ca4a6293da rt-tests: Change to version v2.4
Change the version in the Makefile to 2.4
tag this commit as v2.4

Signed-off-by: John Kacur <jkacur@redhat.com>
2022-07-08 10:46:01 -04:00
John Kacur 974241c78a rt-tests: Makefile: ctags: Change obsolete extra to extras
Change obsolete extra to extras in ctags

Signed-off-by: John Kacur <jkacur@redhat.com>
2022-06-23 16:05:56 -04:00
John Kacur 338843c1ee rt-tests: Change to version 2.3
Change the version in the Makefile to 2.3

Signed-off-by: John Kacur <jkacur@redhat.com>
2021-12-10 12:59:55 -05:00
John Kacur 75c16956e3 rt-tests: Change VERSION to 2.2
Change the VERSION in the Makefile to 2.2

Signed-off-by: John Kacur <jkacur@redhat.com>
2021-08-30 21:58:19 -04:00
John Kacur 667e1aae89 rt-tests: Change VERSION to 2.1
Change the VERSION in the Makefile to 2.1

Signed-off-by: John Kacur <jkacur@redhat.com>
2021-06-29 23:09:41 -04:00
John Kacur 3014bb16eb rt-tests: Change VERSION to 2.0
Change the VERSION in the Makefile to 2.0

Signed-off-by: John Kacur <jkacur@redhat.com>
2021-06-25 10:26:57 -04:00
Daniel Wagner 07445ec798 rt-tests: Rename error.h to rt-error.h
Avoid confusion with the system header called error.h.

Signed-off-by: Daniel Wagner <dwagner@suse.de>

- Fixed a conflict in cyclictest.c
- Fixed up rt_numa.h
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-02-16 20:08:00 -05:00
John Kacur 32819581cc rt-tests: Makefile - update version to v1.10
Update the version in the Makefile to v1.10 for a new release

Signed-off-by: John Kacur <jkacur@redhat.com>
2020-12-22 16:30:14 -05:00
John Kacur 009954ca65 rt-tests: queuelat: Add a manpage for determine_maximum_mpps.sh
Add a manpage for determine_maximum_mpps.sh

Signed-off-by: John Kacur <jkacur@redhat.com>
2020-12-09 12:26:53 -05:00
John Kacur a6114da09c rt-tests: queuelat: Remove get_cpuinfo_mhz.sh and old Makefile
The functionality in get_cpuinfo_mhz.sh has been incorporated into
determine_maximum_mpps.sh, so it can safely be removed.

The queuelat is built from the rt-tests suite Makefile, and the old
Makefile in the queuelat directory can be removed.

Signed-off-by: John Kacur <jkacur@redhat.com>
2020-12-09 12:24:57 -05:00
John Kacur d4d45924d1 rt-tests: Don't compress man pages by default
This patch changes the default behavior of the Makefile to install
man pages without compression. This allows distribution build systems to
use the kind of compression they wish to use without the Makefile
getting in the way.

It is still possible to compress the man pages using the Makefile, for
example

make MAN_COMPRESSION=gzip

or

make MAN_OMPRESSION=bzip2

Signed-off-by: John Kacur <jkacur@redhat.com>
2020-11-21 00:09:50 -05:00
Daniel Wagner 590846ff2a signaltest: Implement thread placing
Without setting the thread affinity, the scheduler will move the
threads around which will lead to spikes. Since any proper realtime
application will use thread affinity, let's pin down the threads to
CPUs.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
- Fixed spelling of "initialize" in the code
Signed-off-by: John Kacur <jkacur@redhat.com>
2020-11-20 16:43:05 -05:00
Daniel Wagner 308b753fc8 rt-numa: Introduce NUMA helpers
A common task is to parse the provided cpumask from the command
line. Add a helper which uses libnuma. Since we don't want to add
unnecessary dependencies for tests which don't need this helper create
a new library containing the NUMA bits.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Adding my name to the copyright in the new file src/lib/rt-numa.c
as some of the functions moved here are ones that I've written or
modified / maintained etc.
Signed-off-by: John Kacur <jkacur@redhat.com>
2020-11-18 16:07:09 -05:00
John Kacur 08f3ec6fed rt-tests: makefile: undefine PYLIB if empty
The makefile will run a shell command to determine the location of the
python libraries. If an error occurs, for example if the system doesn't
have python installed on it, undefine PYLIB

This prevents undesired side effects such as installing man pages for
utilities that will not be installed and does not interfere with other
conditionals such as if test -n "${PYLIB]"

Signed-off-by: John Kacur <jkacur@redhat.com>
2020-10-19 15:22:56 -04:00
Anders Roxell 3d1976ba3c Makefile: manpages: only add get_cyclictest_snapshot if PYLIB
Since the installation of get_cyclictest_snapshot.py is done if PYLIB
then we should only install the manpages then as well.

Signed-off-by: Anders Roxell <anders.roxell@linaro.org>
Signed-off-by: John Kacur <jkacur@redhat.com>
2020-10-19 15:11:47 -04:00
John Kacur 21c1df7d2e rt-tests: Makefile - update version to v1.9
Update the version in the Makefile to v1.9

Signed-off-by: John Kacur <jkacur@redhat.com>
2020-09-18 16:02:13 -04:00
Peter Xu c86dec5765 rt-tests: oslat: Init commit
oslat was initially a standalone program [1].  This patch merges oslat into
rt-tests repo.

This is a direct port of oslat v0.1.7 into rt-tests.  It naturally bumps the
version to latest rt-tests version.

[1] https://github.com/xzpeter/oslat

Signed-off-by: Peter Xu <peterx@redhat.com>
A few minor fixes to the grammar in the man page
Signed-off-by: John Kacur <jkacur@redhat.com>
2020-08-18 16:48:08 -04:00
John Kacur 7731b805fa rt-tests: Install new man page get_cyclictest_snapshot.8
Install the new man page, get_cyclictest_snapshot.8

Signed-off-by: John Kacur <jkacur@redhat.com>
2020-07-06 23:19:24 -04:00
John Kacur 9f78b91f05 rt-tests: Makefile - update version
Update the version in the Makefile to 1.8

Signed-off-by: John Kacur <jkacur@redhat.com>
2020-03-09 14:44:20 -04:00
John Kacur 240938737e rt-tests: cyclictest: Remove support for compiling without NUMA
We announced way back in 2015 that compiling without the NUMA libs was
no-longer supported, but we left the bits in there for you to do it
anyway.

Since this is not supported, and is broken now anyway, let's remove the
cruft.

Of course running on non-NUMA machines should still work fine.

Signed-off-by: John Kacur <jkacur@redhat.com>
2020-03-04 10:42:14 -05:00
John Kacur 8ec141339d rt-tests: cyclictest: Remove HAVE_PARSE_CPUSTRING_ALL
We assume that numa_parse_cpustring_all() is available.
Older numa libs without it are no-longer supported

Signed-off-by: John Kacur <jkacur@redhat.com>
2020-03-02 23:44:52 -05:00
Jeremy Puhlman 9c454c773e rt-tests: make manpages builds reproducible
Add -n to gzip call to make the build output
of the manpages reproducible.

Signed-off-by: Jeremy A. Puhlman <jpuhlman@mvista.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
2020-02-27 13:28:49 -05:00
John Kacur 61d1fc6a1b rt-tests: Makefile - update version
Update the version in the Makefile to 1.7

Signed-off-by: John Kacur <jkacur@redhat.com>
2020-02-21 15:58:31 -05:00
John Kacur 63a2aa9ec5 rt-tests: Add get_cyclictest_snapshot to Makefile
Add get_cyclictest_snapshot to Makefile

Signed-off-by: John Kacur <jkacur@redhat.com>
2020-02-21 15:53:54 -05:00
Kurt Kanzenbach d8de8e8e5d make: Make man page compression configurable
Currently the man pages are unconditionally gzip compressed. However, users
might want to use something else such as bzip2 or none.

When using package management systems it makes sense to use no compression at
all, as the package system might chose the appropriate one. Therefore, introduce
MAN_COMPRESSION. This variable is handling how the compression is done. Default
is gzip.

Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2020-01-30 12:19:55 -05:00
John Kacur f90391d190 rt-tests: cyclicdeadline: Add a simple manpage for cyclicdeadline
- Add a simple manpage for cyclicdeadline
- Install it from the Makefile

Signed-off-by: John Kacur <jkacur@redhat.com>
2020-01-16 18:04:43 +01:00
John Kacur f5937e0b20 rt-tests: Makefile - update version
Update the version in the Makefile to 1.6

Signed-off-by: John Kacur <jkacur@redhat.com>
2020-01-15 15:17:53 +01:00
Uwe Kleine-König b94014f5dc Makefile: don't create empty directories in install target
Both $(prefix)/src and $(prefix)/share/man/man4 are unused since commit
2829763fdd ("rt-tests: Remove install and build of backfire and
sendme")

Signed-off-by: John Kacur <jkacur@redhat.com>
2019-11-26 17:33:27 +01:00
Afzal Mohammed 7763cf316d rt-tests: Allow cross compilation
$ make CROSS_COMPILE=<my-toolchain-prefix>

currently does not cause source to be built using the intended
toolchain, instead will use the host toolchain.

CC & AR are not updated with CROSS_COMPILE value since they are
predefined make variables (with default cc & ar respectively) combined
with the fact that CC & AR variables are updated in the makefile only if
not already defined due to the usage of '?='.

Signed-off-by: Afzal Mohammed <afzal.mohd.ma@gmail.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
2019-11-26 17:33:27 +01:00
John Kacur d3a929bf0b rt-tests: Makefile update version
Update the version in the Makefile to 1.5

Signed-off-by: John Kacur <jkacur@redhat.com>
2019-11-26 17:33:27 +01:00
John Kacur 88efdb99bc rt-tests: Version 1.4
Create version 1.4

Signed-off-by: John Kacur <jkacur@redhat.com>
2019-06-19 14:40:42 +02:00
John Kacur d6edef62b8 rt-tests: ssdd: Add a simple manpage for ssdd
Add a simple manpage to rt-tests for ssdd, and modify the manpage to
install it

Signed-off-by: John Kacur <jkacur@redhat.com>
2019-06-19 01:43:22 +02:00
John Kacur 38e7eb899f queuelat: Install queuelat helper scripts from the rt-tests Makefile
Install queuelat helper scripts from the rt-tests Makefile

Signed-off-by: John Kacur <jkacur@redhat.com>
2019-05-07 16:10:05 +02:00
John Kacur 524aebc390 rt-tests: Makefile: ssdd: Incoroporate ssdd into the rt-tests Makefile
Incoroporate ssdd into the rt-tests build

Signed-off-by: John Kacur <jkacur@redhat.com>
2019-01-14 21:39:47 +01:00
John Kacur 803c33cfe8 rt-tests: deadline_test: Add a manpage
Add an initial manpage for deadline_test.
Modify the Makefile to install it too.

Signed-off-by: John Kacur <jkacur@redhat.com>
2018-11-02 16:23:22 +01:00
John Kacur 2829763fdd rt-tests: Remove install and build of backfire and sendme
Leave the source code in place but remove the install and build of
backfire and sendme for now as it is broken

Signed-off-by: John Kacur <jkacur@redhat.com>
2018-10-19 16:24:40 +02:00
John Kacur 283f5a73a3 rt-tests: manpages: Modify makefile for queuelat.8 and pip_stress.8
Modify the manpage to include queuelat.8 and pip_stress.8 for the
install

Signed-off-by: John Kacur <jkacur@redhat.com>
2018-10-19 16:24:40 +02:00
John Kacur 026f2a31c5 rt-tests: Makefile: Change syntax for python3
When testing for the PYLIB version, we need to explicitly
specify python3 and fix the print syntax

Signed-off-by: John Kacur <jkacur@redhat.com>
2018-06-13 02:07:17 +02:00
John Kacur e905f555f3 rt-tests: Makefile - New development (unstable) release
Modify the Makefile for a new release

Signed-off-by: John Kacur <jkacur@redhat.com>
2018-04-30 15:39:26 +01:00
Marcelo Tosatti 9e41e33d94 Add queuelat test to rt-tests
Add queuelat, a test to simulate a DPDK queue.

See README in src/queuelat/ for details.

Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2018-04-16 20:30:25 -03:00
John Kacur 59d86812cc rt-tests: Makefile
Tag v1.2 in order to start some new development

Signed-off-by: John Kacur <jkacur@redhat.com>
2018-03-26 22:51:25 +01:00
John Kacur e5bca09eb8 rt-tests: Need to generate debug info for rpms
Need to generate debug info for rpms, use -g even for non-debug version

Signed-off-by: John Kacur <jkacur@redhat.com>
2017-12-20 17:48:24 +00:00
John Kacur ba6cf8f41e rt-tests: Add cyclicdeadline and deadline_test to the Make system
- Add cyclicdeadline and deadline_test to the Makefile
- Conditionally define _GNU_SOURCE in the new programs
- Add the new programs to the .gitignore file

Signed-off-by: John Kacur <jkacur@redhat.com>
2016-06-23 13:51:00 +02:00
John Kacur c8ce47ae17 rt-tests: Makefile, change version to 1.1
Rethinking the naming scheme, so changing the development line from 2.0
to 1.1

Signed-off-by: John Kacur <jkacur@redhat.com>
2016-06-23 12:49:32 +02:00
John Kacur dff174f994 rt-tests: Makefile: Add missing install of rt-migrate-test.8 man page
Add missing install of rt-migrate-test.8 man page

Signed-off-by: John Kacur <jkacur@redhat.com>
2016-05-14 00:02:56 +02:00
John Kacur e1b1537a20 rt-tests: Create a new unstable line called devel/rt-tests-2.0
Bump the Version number and create a devel/2.0 branch

Signed-off-by: John Kacur <jkacur@redhat.com>
2016-05-13 22:34:14 +02:00
John Kacur bddffd32c9 rt-tests: Makefile - bump version to 1.0
We've arrived, it's version 1.0!

Signed-off-by: John Kacur <jkacur@redhat.com>
2016-05-13 20:30:12 +02:00
John Kacur 81a948a2a6 rt-tests: Makefile: Assume numa_parse_cpustring_all available
NUMA users should have long ago stepped up to libs that have
numa_parse_cpustring_all(). Make this the default so that we can include
isolated cpus in the affinity string.

If there are any NUMA users or distros left that have old libraries that
don't have numa_parse_cpu_string_all(), and only numa_parse_cpu_string()
they can compile like this

make HAVE_PARSE_CPUSTRING_ALL=0

Signed-off-by: John Kacur <jkacur@redhat.com>
Reviewed-and-Tested-by: Luiz Capitulino <lcapitulino@redhat.com>
2016-04-21 22:41:45 +02:00