aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Brandenburg <bbb@mpi-sws.org>2016-04-17 10:16:35 -0400
committerBjoern Brandenburg <bbb@mpi-sws.org>2016-04-17 10:16:35 -0400
commite23b5f6834be8f7e07ca5ba58e169845ad982ddb (patch)
treee5d9d873fcda60faf4cae2fdf72eb7c651a7ca08
parente46eb2f93142bdcd59a4987f1ee97b17edc5f5b8 (diff)
Clean up help message of rt_launch
-rw-r--r--bin/rt_launch.c33
1 files changed, 19 insertions, 14 deletions
diff --git a/bin/rt_launch.c b/bin/rt_launch.c
index 0418102..67aaa3a 100644
--- a/bin/rt_launch.c
+++ b/bin/rt_launch.c
@@ -9,27 +9,32 @@
9#include "common.h" 9#include "common.h"
10 10
11const char *usage_msg = 11const char *usage_msg =
12 "Usage: rt_launch OPTIONS wcet period program [arg1 arg2 ...]\n" 12 "Usage: rt_launch OPTIONS budget period -- program [arg1 arg2 ...]\n"
13 " -w wait for synchronous release\n" 13 "\n"
14 " -v verbose (prints PID)\n" 14 "Required arguments:\n"
15 " -p CPU physical partition or cluster to assign to\n" 15 " budget, period reservation parameters (in ms)\n"
16 " -r VCPU virtual CPU or reservation to attach to (irrelevant to most plugins)\n" 16 " program path to the binary to be launched\n"
17 " -R create sporadic reservation for task (with VCPU=PID)\n" 17 "\n"
18 " -d DEADLINE relative deadline, implicit by default (in ms)\n" 18 "Options:\n"
19 " -o OFFSET offset (also known as phase), zero by default (in ms)\n"
20 " -q PRIORITY priority to use (ignored by EDF plugins, highest=1, lowest=511)\n"
21 " -c be|srt|hrt task class (best-effort, soft real-time, hard real-time)\n" 19 " -c be|srt|hrt task class (best-effort, soft real-time, hard real-time)\n"
20 " -d DEADLINE relative deadline, equal to the period by default (in ms)\n"
22 " -e turn off budget enforcement (DANGEROUS: can result in lockup)\n" 21 " -e turn off budget enforcement (DANGEROUS: can result in lockup)\n"
23 " wcet, period reservation parameters (in ms)\n" 22 " -h show this help message\n"
24 " program path to the binary to be launched\n" 23 " -o OFFSET offset (also known as phase), zero by default (in ms)\n"
24 " -p CPU partition or cluster to assign this task to\n"
25 " -q PRIORITY priority to use (ignored by EDF plugins, highest=1, lowest=511)\n"
26 " -r VCPU virtual CPU or reservation to attach to (irrelevant to most plugins)\n"
27 " -R create sporadic reservation for task (with VCPU=PID)\n"
28 " -v verbose (prints PID)\n"
29 " -w wait for synchronous release\n"
25 "\n"; 30 "\n";
26 31
27void usage(char *error) { 32void usage(char *error) {
28 fprintf(stderr, "%s\n%s", error, usage_msg); 33 fprintf(stderr, "%s\n\n%s", error, usage_msg);
29 exit(1); 34 exit(1);
30} 35}
31 36
32#define OPTSTR "wp:q:c:er:b:o:d:vhR" 37#define OPTSTR "wp:q:c:er:o:d:vhR"
33 38
34int main(int argc, char** argv) 39int main(int argc, char** argv)
35{ 40{
@@ -106,7 +111,7 @@ int main(int argc, char** argv)
106 verbose = 1; 111 verbose = 1;
107 break; 112 break;
108 case 'h': 113 case 'h':
109 usage(""); 114 usage("rt_launch: Run an arbitrary binary as a LITMUS^RT real-time task.");
110 break; 115 break;
111 case ':': 116 case ':':
112 usage("Argument missing."); 117 usage("Argument missing.");