summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Kacur <jkacur@redhat.com>2015-10-01 11:20:25 +0200
committerJohn Kacur <jkacur@redhat.com>2015-10-05 20:21:15 +0200
commitb482ecc2bf16b51394ed3d42266c7fc14744c2bb (patch)
tree7823dcb61850fa7e1fd5ece281a3940e0eb47f4f
parent3374f941a68203ac92d41fac91082e683533ae55 (diff)
downloadrt-tests-b482ecc2bf16b51394ed3d42266c7fc14744c2bb.tar.gz
signaltest: Add a man page to signaltest
- Add a man page to signaltest - Improve the display_help in signaltest - Add install of new man page to makefile Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r--Makefile1
-rw-r--r--src/signaltest/signaltest.848
-rw-r--r--src/signaltest/signaltest.c19
3 files changed, 59 insertions, 9 deletions
diff --git a/Makefile b/Makefile
index 87946fb..25024c9 100644
--- a/Makefile
+++ b/Makefile
@@ -183,6 +183,7 @@ install: all install_hwlatdetect
gzip -c src/pmqtest/pmqtest.8 >"$(DESTDIR)$(mandir)/man8/pmqtest.8.gz"
gzip -c src/backfire/sendme.8 >"$(DESTDIR)$(mandir)/man8/sendme.8.gz"
gzip -c src/hackbench/hackbench.8 >"$(DESTDIR)$(mandir)/man8/hackbench.8.gz"
+ gzip -c src/signaltest/signaltest.8 >"$(DESTDIR)$(mandir)/man8/signaltest.8.gz"
.PHONY: install_hwlatdetect
install_hwlatdetect: hwlatdetect
diff --git a/src/signaltest/signaltest.8 b/src/signaltest/signaltest.8
new file mode 100644
index 0000000..d6c11c2
--- /dev/null
+++ b/src/signaltest/signaltest.8
@@ -0,0 +1,48 @@
+.\"
+.TH SIGNALTEST 8 "October 1, 2015"
+.\" Please adjust this date whenever updating this manpage
+.SH NAME
+signaltest \- signal roundtrip test software
+.SH SYNOPSIS
+.B signaltest
+.RI "[ \-b USEC ] [ \-l LOOPS ] [ \-p PRIO] [ \-q ] [ \-t NUM ] [ \-m ] [ \-v ] [ \-\-help ]"
+.SH OPTIONS
+These programs follow the usual GNU command line syntax, with long options
+starting with two dashes ('\-\-').
+.TP
+.B \-b, \-\-breaktrace=USEC
+Send break trace command whn latency > USEC
+.TP
+.B \-l, \-\-loops=LOOPS
+Number of loops: default=0 (endless)
+.TP
+.B \-p, \-\-priority=PRIO
+Priority of highest priority thread
+.TP
+.B \-q, \-\-quiet
+print a summary only on exit
+.TP
+.B \-t, \-\-threads=NUM
+number of threads: default=2
+.TP
+.B \-m, \-\-mlockall
+lock current and future memory allocations
+.TP
+.B \-v, \-\-verbose
+output values on stdout for statistics
+.br
+format: n:c:v n=tasknum c=count v=value in us
+.TP
+.B \-\-help
+display usage information
+.SH AUTHOR
+signaltest was written by Thomas Gleixner <tglx@linuxtronix.de>.
+.PP
+This manual page was originally written by
+.br
+John Kacur <jkacur@redhat.com>
+.PP
+Copying and distribution of this file, with or without modification,
+are permitted in any medium without royalty provided the copyright
+notice and this notice are preserved. This file is offered as-is,
+without any warranty.
diff --git a/src/signaltest/signaltest.c b/src/signaltest/signaltest.c
index 2ee1929..b80969b 100644
--- a/src/signaltest/signaltest.c
+++ b/src/signaltest/signaltest.c
@@ -205,15 +205,16 @@ static void display_help(void)
{
printf("signaltest V %1.2f\n", VERSION);
printf("Usage:\n"
- "signaltest <options>\n\n"
- "-b USEC --breaktrace=USEC send break trace command when latency > USEC\n"
- "-l LOOPS --loops=LOOPS number of loops: default=0(endless)\n"
- "-p PRIO --prio=PRIO priority of highest prio thread\n"
- "-q --quiet print only a summary on exit\n"
- "-t NUM --threads=NUM number of threads: default=2\n"
- "-m --mlockall lock current and future memory allocations\n"
- "-v --verbose output values on stdout for statistics\n"
- " format: n:c:v n=tasknum c=count v=value in us\n");
+ "signaltest <options>\n\n"
+ "-b USEC --breaktrace=USEC send break trace command when latency > USEC\n"
+ "-l LOOPS --loops=LOOPS number of loops: default=0(endless)\n"
+ "-p PRIO --prio=PRIO priority of highest prio thread\n"
+ "-q --quiet print a summary only on exit\n"
+ "-t NUM --threads=NUM number of threads: default=2\n"
+ "-m --mlockall lock current and future memory allocations\n"
+ "-v --verbose output values on stdout for statistics\n"
+ " format: n:c:v n=tasknum c=count v=value in us\n"
+ "--help display usage information\n");
exit(0);
}