summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Kacur <jkacur@redhat.com>2021-06-16 19:04:48 -0400
committerJohn Kacur <jkacur@redhat.com>2021-06-17 09:02:58 -0400
commite333004376f7ea07f01d29b17bd11432bcd81639 (patch)
tree4c729a21ae408499953753241140f183812fc27d
parentfe60405ed338d2ebb01b1046e57a61875367ed61 (diff)
downloadrt-tests-unstable/devel/latest.tar.gz
rt-tests: cyclictest: Add entry for mainaffinity in the manpageunstable/devel/latest
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>
-rw-r--r--src/cyclictest/cyclictest.83
-rw-r--r--src/cyclictest/cyclictest.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/src/cyclictest/cyclictest.8 b/src/cyclictest/cyclictest.8
index 4fe42e5..abc56e8 100644
--- a/src/cyclictest/cyclictest.8
+++ b/src/cyclictest/cyclictest.8
@@ -94,6 +94,9 @@ Set the number of loops. The default is 0 (endless). This option is useful for a
.B \-\-laptop
Save battery when running cyclictest. This will give you poorer realtime results, but will not drain your battery so quickly.
.TP
+.B \-\-mainaffinity=CPUSET
+Run the main thread on CPU #N. This only affects the main thread and not the measurement threads
+.TP
.B \-m, \-\-mlockall
Lock current and future memory allocations to prevent being paged out
.TP
diff --git a/src/cyclictest/cyclictest.c b/src/cyclictest/cyclictest.c
index 3477cd1..be8285a 100644
--- a/src/cyclictest/cyclictest.c
+++ b/src/cyclictest/cyclictest.c
@@ -837,7 +837,8 @@ static void display_help(int error)
" --laptop Save battery when running cyclictest\n"
" This will give you poorer realtime results\n"
" but will not drain your battery so quickly\n"
- " --mainaffinity=[CPUSET] Run the main thread on CPU #N. This only affects\n"
+ " --mainaffinity=CPUSET\n"
+ " Run the main thread on CPU #N. This only affects\n"
" the main thread and not the measurement threads\n"
"-m --mlockall lock current and future memory allocations\n"
"-M --refresh_on_max delay updating the screen until a new max\n"