diff options
author | leochanj105 <leochanj@live.unc.edu> | 2020-10-23 17:00:41 -0400 |
---|---|---|
committer | leochanj105 <leochanj@live.unc.edu> | 2020-10-23 17:00:41 -0400 |
commit | 87997c91b55c9e84097a7c79c63d583044ff4c63 (patch) | |
tree | 77f215972e691fbb51ecba00c4c206361baee23c /extra.h | |
parent | 863e64b15f29dc35ab646045ece7e3d40fe2a6c4 (diff) |
current
Diffstat (limited to 'extra.h')
-rw-r--r-- | extra.h | 9 |
1 files changed, 5 insertions, 4 deletions
@@ -120,12 +120,12 @@ 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 > 8) { | 123 | if (argc > 7) { |
124 | pairId = argv[8]; | 124 | pairId = argv[8]; |
125 | end = 8; | 125 | end = 9; |
126 | } else { | 126 | } else { |
127 | pairId = "none"; | 127 | pairId = "none"; |
128 | end = 9; | 128 | end = 8; |
129 | } | 129 | } |
130 | #else | 130 | #else |
131 | _rt_other_core = "none"; | 131 | _rt_other_core = "none"; |
@@ -204,7 +204,7 @@ static void _rt_load_params_itrl(int argc, char **argv) { | |||
204 | #if LITMUS | 204 | #if LITMUS |
205 | _rt_period = strtoul(argv[end], NULL, 10); | 205 | _rt_period = strtoul(argv[end], NULL, 10); |
206 | unsigned int crit = atoi(argv[end+1]); | 206 | unsigned int crit = atoi(argv[end+1]); |
207 | unsigned int wait = 1; | 207 | unsigned int wait = 0; |
208 | if (be_migrate_to_domain(_rt_core) < 0) { | 208 | if (be_migrate_to_domain(_rt_core) < 0) { |
209 | perror("Unable to migrate to specified CPU"); | 209 | perror("Unable to migrate to specified CPU"); |
210 | exit(1); | 210 | exit(1); |
@@ -221,6 +221,7 @@ static void _rt_load_params_itrl(int argc, char **argv) { | |||
221 | rt_param.release_policy = TASK_PERIODIC; | 221 | rt_param.release_policy = TASK_PERIODIC; |
222 | rt_param.budget_policy = NO_ENFORCEMENT; | 222 | rt_param.budget_policy = NO_ENFORCEMENT; |
223 | rt_param.cpu = _rt_core; | 223 | rt_param.cpu = _rt_core; |
224 | rt_param.release_policy = TASK_PERIODIC; | ||
224 | if (set_rt_task_param(gettid(), &rt_param) < 0) { | 225 | if (set_rt_task_param(gettid(), &rt_param) < 0) { |
225 | perror("Unable to set real-time parameters"); | 226 | perror("Unable to set real-time parameters"); |
226 | exit(1); | 227 | exit(1); |