diff options
author | Kurt Kanzenbach <kurt@linutronix.de> | 2019-06-18 12:38:39 +0200 |
---|---|---|
committer | John Kacur <jkacur@redhat.com> | 2019-06-19 17:39:30 +0200 |
commit | 9f2381a12453fbcf6b827d52f506024de3e8489e (patch) | |
tree | 7737e8ee4b06cf3e5b24231411ddd9151edf2ea0 | |
parent | f73533e923d9032b1811ff2312931ae1ec0e2bdd (diff) | |
download | rt-tests-9f2381a12453fbcf6b827d52f506024de3e8489e.tar.gz rt-tests-9f2381a12453fbcf6b827d52f506024de3e8489e.tar.xz |
rt-tests: cyclicdeadline: Add options to usage
The current usage doesn't show the available options:
$ sudo ./cyclicdeadline -h
usage: cyclicdeadline
So, add the options to the help text to see what can be configured.
Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r-- | src/sched_deadline/cyclicdeadline.c | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/sched_deadline/cyclicdeadline.c b/src/sched_deadline/cyclicdeadline.c index 17786db..7cffe82 100644 --- a/src/sched_deadline/cyclicdeadline.c +++ b/src/sched_deadline/cyclicdeadline.c @@ -631,8 +631,16 @@ static void usage(char **argv) p--; p++; - printf("usage: %s\n" - "\n",p); + printf("usage: %s [options]\n" + " -h - Show this help menu\n" + " -a - Use all CPUs\n" + " -c cpulist - Comma/hyphen separated list of CPUs to run deadline tasks on\n" + " -i interval(us) - The shortest deadline for the tasks (default 1000us)\n" + " -s step(us) - The amount to increase the deadline for each task (default 500us)\n" + " -t threads - The number of threads to run as deadline (default 1)\n" + " -D time - Specify a length for the test run\n" + " Append 'm', 'h', or 'd' to specify minutes, hours or days\n" + "\n", p); exit(-1); } |