diff options
author | Joshua Bakita <jbakita@cs.unc.edu> | 2020-10-23 15:56:49 -0400 |
---|---|---|
committer | Joshua Bakita <jbakita@cs.unc.edu> | 2020-10-23 15:56:49 -0400 |
commit | 8e9d3399bbc1249370a4423bce3d1db9e417d952 (patch) | |
tree | 9f8c98a0d3dd4f1e9abc33b40b6383486ef61aeb /extra.h | |
parent | 08acd263bc6286a1b9ccb94a0210a8a9ce91ac27 (diff) |
Fix an argument parsing error in libextra and cleanup
Diffstat (limited to 'extra.h')
-rw-r--r-- | extra.h | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -83,7 +83,7 @@ long unsigned int _rt_period; | |||
83 | static void _rt_load_params_itrl(int argc, char **argv) { | 83 | static void _rt_load_params_itrl(int argc, char **argv) { |
84 | #ifdef PAIRED | 84 | #ifdef PAIRED |
85 | if (argc != (8 + LITMUS*2) && argc != (9 + LITMUS*2)) { | 85 | if (argc != (8 + LITMUS*2) && argc != (9 + LITMUS*2)) { |
86 | fprintf(stderr, "Usage: %s <name> <loops> <my core> <other core> <other name> <runID> <save results?>\n", argv[0]); | 86 | fprintf(stderr, "Usage: %s <name> <loops> <my core> <other core> <other name> <runID> <save results?> <pairID>\n", argv[0]); |
87 | #else | 87 | #else |
88 | if (argc != (6 + LITMUS*2)) { | 88 | if (argc != (6 + LITMUS*2)) { |
89 | fprintf(stderr, "Usage: %s <name> <loops> <my core> <runID> <save results?>\n", argv[0]); | 89 | fprintf(stderr, "Usage: %s <name> <loops> <my core> <runID> <save results?>\n", argv[0]); |
@@ -120,7 +120,7 @@ static void _rt_load_params_itrl(int argc, char **argv) { | |||
120 | _rt_will_output = atoi(argv[7]); | 120 | _rt_will_output = atoi(argv[7]); |
121 | char *pairId; | 121 | char *pairId; |
122 | int end; | 122 | int end; |
123 | if (argc > 7) { | 123 | if (argc > 8) { |
124 | pairId = argv[8]; | 124 | pairId = argv[8]; |
125 | end = 9; | 125 | end = 9; |
126 | } else { | 126 | } else { |
@@ -218,7 +218,6 @@ static void _rt_load_params_itrl(int argc, char **argv) { | |||
218 | rt_param.phase = 0; | 218 | rt_param.phase = 0; |
219 | rt_param.priority = LITMUS_LOWEST_PRIORITY; | 219 | rt_param.priority = LITMUS_LOWEST_PRIORITY; |
220 | rt_param.cls = crit; | 220 | rt_param.cls = crit; |
221 | rt_param.release_policy = TASK_PERIODIC; | ||
222 | rt_param.budget_policy = NO_ENFORCEMENT; | 221 | rt_param.budget_policy = NO_ENFORCEMENT; |
223 | rt_param.cpu = _rt_core; | 222 | rt_param.cpu = _rt_core; |
224 | rt_param.release_policy = TASK_PERIODIC; | 223 | rt_param.release_policy = TASK_PERIODIC; |