Commit Graph

914 Commits

Author SHA1 Message Date
John Kacur e333004376 rt-tests: cyclictest: Add entry for mainaffinity in the manpage
Add an entry for mainaffinity in the manpage.
Tweek the output in cyclictest for mainaffinity as well.

Signed-off-by: John Kacur <jkacur@redhat.com>
Reviewed-by: Daniel Wagner <dwagner@suse.de>
2021-06-17 09:02:58 -04:00
Jonathan Schwender fe60405ed3 Subject: [PATCH v4 2/2] cyclictest: Add --mainaffinity=[CPUSET] option.
This allows the user to specify a separate cpuset for the main pid,
e.g. on a housekeeping CPU.
If --mainaffinity is not specified, but --affinity is, then the
current behaviour is preserved and the main thread is bound
to the cpuset specified by --affinity

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
- Little fix-up applying patch
Signed-off-by: John Kacur <jkacur@redhat.com>
Reviewed-by: Daniel Wagner <dwagner@suse.de>
2021-06-17 09:02:53 -04:00
Jonathan Schwender 5290b62d3e cyclictest: Move main pid setaffinity handling into a function
Move error handling for setting the affinity of the main thread
into a separate function.
This prevents duplicating the code in the next commit,
where the main thread pid can be restricted to one of
two bitmasks depending on the passed parameters.

Signed-off-by: Jonathan Schwender <schwenderjonathan@gmail.com>
Signed-off-by: John Kacur <jkacur@redhat.com>
Reviewed-by: Daniel Wagner <dwagner@suse.de>
2021-06-17 09:02:28 -04:00
Daniel Wagner fca9fc32b0 svematest: Add --json to man page
Add the newly introduced --json command line to the man page.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-21 23:54:12 -04:00
Daniel Wagner 2f34187dfe ssdd: Add --json to man page
Add the newly introduced --json command line to the man page.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-21 23:52:39 -04:00
Daniel Wagner dbeaf2da78 sigwaittest: Add --json to man page
Add the newly introduced --json command line to the man page.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-21 23:49:25 -04:00
Daniel Wagner 10b82e0c17 signaltest: Add --json to man page
Add the newly introduced --json command line to the man page.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-21 23:47:51 -04:00
Daniel Wagner 2d9528f148 cyclicdeadline: Add --json to man page
Add the newly introduced --json command line to the man page.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-21 23:46:23 -04:00
Daniel Wagner 6b6be5f372 rt-migrate-test: Add --json to man page
Add the newly introduced --json command line to the man page.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-21 23:44:54 -04:00
Daniel Wagner eb508a1282 ptsematest: Add --json to man page
Add the newly introduced --json command line to the man page.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-21 23:43:47 -04:00
Daniel Wagner 78ebe67f56 pmqtest: Add --json to man page
Add the newly introduced --json command line to the man page.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-21 23:42:11 -04:00
Daniel Wagner d8a15a900d pi_stress: Add --json to man page
Add the newly introduced --json command line to the man page.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-21 23:40:40 -04:00
Daniel Wagner 0d2bd81cd8 oslat: Add --json to man page
Add the newly introduced --json command line to the man page.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-21 23:38:53 -04:00
Daniel Wagner 1c6cd355b2 cyclictest: Add --json to man page
Add the newly introduced --json command line to the man page.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-21 23:37:39 -04:00
Daniel Wagner bf10a5660e svsematest: Rename command line option --output to --json
The initial idea was to have several different output format
supported but it turns out everyone is happy with JSON, so
there is no need to add another format.

Thus let's make the command line option more specific and
rename it to --json.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-21 23:35:16 -04:00
Daniel Wagner 8bdc7c423c ssdd: Rename command line option --output to --json
The initial idea was to have several different output format
supported but it turns out everyone is happy with JSON, so
there is no need to add another format.

Thus let's make the command line option more specific and
rename it to --json.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-21 23:33:46 -04:00
Daniel Wagner 2f4fdcd463 sigwaittest: Rename command line option --output to --json
The initial idea was to have several different output format
supported but it turns out everyone is happy with JSON, so
there is no need to add another format.

Thus let's make the command line option more specific and
rename it to --json.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-21 23:32:42 -04:00
Daniel Wagner 7f92bfefa2 signaltest: Rename command line option --output to --json
The initial idea was to have several different output format
supported but it turns out everyone is happy with JSON, so
there is no need to add another format.

Thus let's make the command line option more specific and
rename it to --json.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-21 17:51:00 -04:00
Daniel Wagner 918172805a cyclicdeadline: Rename command line option --output to --json
The initial idea was to have several different output format
supported but it turns out everyone is happy with JSON, so
there is no need to add another format.

Thus let's make the command line option more specific and
rename it to --json.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-21 17:49:21 -04:00
Daniel Wagner bcb728ffd0 rt-migrate-test: Rename command line option --output to --json
The initial idea was to have several different output format
supported but it turns out everyone is happy with JSON, so
there is no need to add another format.

Thus let's make the command line option more specific and
rename it to --json.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-21 17:47:11 -04:00
Daniel Wagner 6638c4ce0f ptsematest: Rename command line option --output to --json
The initial idea was to have several different output format
supported but it turns out everyone is happy with JSON, so
there is no need to add another format.

Thus let's make the command line option more specific and
rename it to --json.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-21 17:45:14 -04:00
Daniel Wagner 15ba3045c4 pmqtest: Rename command line option --output to --json
The initial idea was to have several different output format
supported but it turns out everyone is happy with JSON, so
there is no need to add another format.

Thus let's make the command line option more specific and
rename it to --json.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
2021-05-21 17:41:07 -04:00
Daniel Wagner 868aceaf09 pi_stress: Rename command line option --output to --json
The initial idea was to have several different output format
supported but it turns out everyone is happy with JSON, so
there is no need to add another format.

Thus let's make the command line option more specific and
rename it to --json.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-21 17:38:36 -04:00
Daniel Wagner b63a591cbd oslat: Rename command line option --output to --json
The initial idea was to have several different output format
supported but it turns out everyone is happy with JSON, so
there is no need to add another format.

Thus let's make the command line option more specific and
rename it to --json.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-21 17:34:46 -04:00
Daniel Wagner 523f2cf71a cyclictest: Rename command line option --output to --json
The initial idea was to have several different output format
supported but it turns out everyone is happy with JSON, so
there is no need to add another format.

Thus let's make the command line option more specific and
rename it to --json.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-21 17:31:41 -04:00
Daniel Wagner 0d5692235b cyclicdeadline: Fix JSON output format
Add missing comma after the max entry.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-21 17:28:00 -04:00
Daniel Wagner c9051a36d9 ssdd: Add JSON output feature
Write the test results as JSON output to a file. This allows to
simplifies any parsing later on.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-07 12:24:45 -04:00
Daniel Wagner a82c7e81b4 ssdd: Add quiet command line option
The quiet option is useful for automated test setups where
only the final result of the run is interesting.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-07 12:24:45 -04:00
Daniel Wagner d7734bcae0 pi_stress: Add JSON output feature
Write the test results as JSON output to a file. This allows to
simplifies any parsing later on.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-07 12:24:45 -04:00
Daniel Wagner 77ae713003 pi_stress: Prepare command line parser for long options only
Introduce option value enums in order to be able to parse long options
only.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-07 12:24:45 -04:00
Daniel Wagner 9f90248b2d rt-util: Add return_code to common section of JSON output
Many rt-tests return an error code if the test fails. Let's add
this information to the common section.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-07 12:24:45 -04:00
Daniel Wagner 5f0864dda9 svsematest: Record start of test execution
Use rt_test_start() to record a timestamp when the test starts.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-07 12:24:45 -04:00
Daniel Wagner 69519203e6 sigwaittest: Record start of test execution
Use rt_test_start() to record a timestamp when the test starts.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-07 12:24:45 -04:00
Daniel Wagner 5d15b2e607 signaltest: Record start of test execution
Use rt_test_start() to record a timestamp when the test starts.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-07 12:24:45 -04:00
Daniel Wagner 5694e46b75 cyclicdeadline: Record start of test execution
Use rt_test_start() to record a timestamp when the test starts.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-07 12:24:45 -04:00
Daniel Wagner 4b7248df5c rt-migrate-test: Record start of test execution
Use rt_test_start() to record a timestamp when the test starts.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-07 12:24:45 -04:00
Daniel Wagner ce0892a908 ptesematest: Record start of test execution
Use rt_test_start() to record a timestamp when the test starts.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-07 12:24:45 -04:00
Daniel Wagner 1f59a08599 pmqtest: Record start of test execution
Use rt_test_start() to record a timestamp when the test starts.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-07 12:24:45 -04:00
Daniel Wagner 78fd3bc873 oslat: Record start of test execution
Use rt_test_start() to record a timestamp when the test starts.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-07 12:24:45 -04:00
Daniel Wagner 426c94e536 cyclictest: Record start of test execution
Use rt_test_start() to record a timestamp when the test starts.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-07 12:24:45 -04:00
Daniel Wagner 19ae9c38b3 rt-util: Introduce rt_test_start()
For the JSON output records a timestamp when the test ended.
Let's introduce a new API to record a timestamp when the test
starts. We could put this into rt_init() but in this case we
would meassure also the time test needs to setup or warm up.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-07 12:24:45 -04:00
Daniel Wagner a0dba1fe07 rt-util: Remove superfluous arguments from rt_write_json
We copy the command line via the rt_init() API and don't need
the argc, argv arguments for rt_write_json. Remove them.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-07 12:24:45 -04:00
Daniel Wagner 4b953580db svematest: Initialize rt-util
Allow rt-util make a copy of the command line.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-07 12:24:45 -04:00
Daniel Wagner a3a0a2e94f sigwaittest: Initialize rt-util
Allow rt-util make a copy of the command line.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-07 12:24:45 -04:00
Daniel Wagner 38c7f1f36f signaltest: Initialize rt-util
Allow rt-util make a copy of the command line.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-07 12:24:45 -04:00
Daniel Wagner f80f2be8f5 cyclicdeadline: Initialize rt-util
Allow rt-util make a copy of the command line.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-07 12:24:45 -04:00
Daniel Wagner 99654cb223 rt-migrate-test: Initialize rt-util
Allow rt-util make a copy of the command line.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-07 12:24:45 -04:00
Daniel Wagner 516d926451 ptsematest: Initialize rt-util
Allow rt-util make a copy of the command line.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-07 12:24:45 -04:00
Daniel Wagner c88f922353 pmqtest: Initialize rt-util
Allow rt-util make a copy of the command line.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-07 12:24:45 -04:00
Daniel Wagner 94bf9fc04d oslat: Initialize rt-util
Allow rt-util make a copy of the command line.

Signed-off-by: Daniel Wagner <dwagner@suse.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
2021-05-07 12:24:45 -04:00