diff options
author | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-06-18 12:57:43 -0400 |
---|---|---|
committer | Andrea Bastoni <bastoni@cs.unc.edu> | 2010-06-18 12:57:43 -0400 |
commit | 623b61db6649c1fd60791df965f38a06acb3ea93 (patch) | |
tree | d7f1f0119062fac33c05e41fd43156a1c766c824 | |
parent | 046f99f037d0c862e7bab8856169aa742c8ad65f (diff) |
Adapt parameters order in *_edffm programs to new format
- "num1 denom1 cpu1 num2 denom2 cpu2" instead of
"num1 denom1 num2 denom2 cpu1 cpu2"
-rw-r--r-- | bin/rt_launch_edffm.c | 8 | ||||
-rw-r--r-- | bin/rtspin_edffm.c | 8 |
2 files changed, 8 insertions, 8 deletions
diff --git a/bin/rt_launch_edffm.c b/bin/rt_launch_edffm.c index fcb895e..ddde7dd 100644 --- a/bin/rt_launch_edffm.c +++ b/bin/rt_launch_edffm.c | |||
@@ -30,7 +30,7 @@ int launch(void *task_info_p) { | |||
30 | 30 | ||
31 | void usage(char *error) { | 31 | void usage(char *error) { |
32 | fprintf(stderr, "%s\nUsage: rt_launch [-w][-v][-p cpu][-c hrt | srt | be] wcet period" | 32 | fprintf(stderr, "%s\nUsage: rt_launch [-w][-v][-p cpu][-c hrt | srt | be] wcet period" |
33 | " fracnum1 fracden2 fracnum2 fracden2 cpu1 cpu2 program [arg1 arg2 ...]\n" | 33 | " fracnum1 fracden1 cpu1 fracnum2 fracden2 cpu2 program [arg1 arg2 ...]\n" |
34 | "\t-w\tSynchronous release\n" | 34 | "\t-w\tSynchronous release\n" |
35 | "\t-v\tVerbose\n" | 35 | "\t-v\tVerbose\n" |
36 | "\t-p\tcpu (or initial cpu)\n" | 36 | "\t-p\tcpu (or initial cpu)\n" |
@@ -97,9 +97,9 @@ int main(int argc, char** argv) | |||
97 | /* frac num, den = 0 means fixed task */ | 97 | /* frac num, den = 0 means fixed task */ |
98 | frac1[0] = atoi(argv[optind + 2]); | 98 | frac1[0] = atoi(argv[optind + 2]); |
99 | frac1[1] = atoi(argv[optind + 3]); | 99 | frac1[1] = atoi(argv[optind + 3]); |
100 | frac2[0] = atoi(argv[optind + 4]); | 100 | cpu1 = atoi(argv[optind + 4]); |
101 | frac2[1] = atoi(argv[optind + 5]); | 101 | frac2[0] = atoi(argv[optind + 5]); |
102 | cpu1 = atoi(argv[optind + 6]); | 102 | frac2[1] = atoi(argv[optind + 6]); |
103 | cpu2 = atoi(argv[optind + 7]); | 103 | cpu2 = atoi(argv[optind + 7]); |
104 | if (wcet <= 0) | 104 | if (wcet <= 0) |
105 | usage("The worst-case execution time must be a " | 105 | usage("The worst-case execution time must be a " |
diff --git a/bin/rtspin_edffm.c b/bin/rtspin_edffm.c index d28d028..5271c10 100644 --- a/bin/rtspin_edffm.c +++ b/bin/rtspin_edffm.c | |||
@@ -30,7 +30,7 @@ static double wctime() | |||
30 | void usage(char *error) { | 30 | void usage(char *error) { |
31 | fprintf(stderr, "Error: %s\n", error); | 31 | fprintf(stderr, "Error: %s\n", error); |
32 | fprintf(stderr, | 32 | fprintf(stderr, |
33 | "Usage: rt_spin [-w] [-p PARTITION] [-c CLASS] WCET PERIOD DURATION fracnum1 fracden2 fracnum2 fracden2 cpu1 cpu2\n" | 33 | "Usage: rt_spin [-w] [-p PARTITION] [-c CLASS] WCET PERIOD DURATION fracnum1 fracden2 cpu1 fracnum2 fracden2 cpu2\n" |
34 | " rt_spin -l\n"); | 34 | " rt_spin -l\n"); |
35 | exit(1); | 35 | exit(1); |
36 | } | 36 | } |
@@ -209,9 +209,9 @@ int main(int argc, char** argv) | |||
209 | /* frac num, den = 0 means fixed task */ | 209 | /* frac num, den = 0 means fixed task */ |
210 | frac1[0] = atoi(argv[optind + 3]); | 210 | frac1[0] = atoi(argv[optind + 3]); |
211 | frac1[1] = atoi(argv[optind + 4]); | 211 | frac1[1] = atoi(argv[optind + 4]); |
212 | frac2[0] = atoi(argv[optind + 5]); | 212 | cpu1 = atoi(argv[optind + 5]); |
213 | frac2[1] = atoi(argv[optind + 6]); | 213 | frac2[0] = atoi(argv[optind + 6]); |
214 | cpu1 = atoi(argv[optind + 7]); | 214 | frac2[1] = atoi(argv[optind + 7]); |
215 | cpu2 = atoi(argv[optind + 8]); | 215 | cpu2 = atoi(argv[optind + 8]); |
216 | wcet = wcet_ms * __NS_PER_MS; | 216 | wcet = wcet_ms * __NS_PER_MS; |
217 | period = period_ms * __NS_PER_MS; | 217 | period = period_ms * __NS_PER_MS; |