diff options
author | Namhoon Kim <namhoonk@ludwig.cs.unc.edu> | 2013-11-25 17:23:23 -0500 |
---|---|---|
committer | Namhoon Kim <namhoonk@ludwig.cs.unc.edu> | 2013-11-25 17:23:23 -0500 |
commit | 52006dedc0a2ba4d8a1901e8940eb80f8c02033e (patch) | |
tree | 8560e8b25ad03f59ffecb7b624e36da0147f5133 /bin/rt_launch.c | |
parent | f4d43d7b7d23c6445f099c28e156f0cffdaae000 (diff) |
First draft of C-FL-split factor supportwip-pgm-split
1) added -n option in rtspin to specify split factor
Diffstat (limited to 'bin/rt_launch.c')
-rw-r--r-- | bin/rt_launch.c | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/bin/rt_launch.c b/bin/rt_launch.c index 93f10d5..209ff15 100644 --- a/bin/rt_launch.c +++ b/bin/rt_launch.c | |||
@@ -32,6 +32,7 @@ void usage(char *error) { | |||
32 | fprintf(stderr, "%s\nUsage: rt_launch [-w][-v][-p partition/cluster [-z cluster size]][-q prio][-c hrt | srt | be] wcet period program [arg1 arg2 ...]\n" | 32 | fprintf(stderr, "%s\nUsage: rt_launch [-w][-v][-p partition/cluster [-z cluster size]][-q prio][-c hrt | srt | be] wcet period program [arg1 arg2 ...]\n" |
33 | "\t-w\tSynchronous release\n" | 33 | "\t-w\tSynchronous release\n" |
34 | "\t-v\tVerbose\n" | 34 | "\t-v\tVerbose\n" |
35 | "\t-n\tSplit factor\n" | ||
35 | "\t-p\tpartition or cluster\n" | 36 | "\t-p\tpartition or cluster\n" |
36 | "\t-z\tsize of cluster (default = 1 for partitioned)\n" | 37 | "\t-z\tsize of cluster (default = 1 for partitioned)\n" |
37 | "\t-c\tClass\n" | 38 | "\t-c\tClass\n" |
@@ -42,7 +43,7 @@ void usage(char *error) { | |||
42 | } | 43 | } |
43 | 44 | ||
44 | 45 | ||
45 | #define OPTSTR "p:z:c:vwq:" | 46 | #define OPTSTR "p:z:c:vwq:n:" |
46 | 47 | ||
47 | int main(int argc, char** argv) | 48 | int main(int argc, char** argv) |
48 | { | 49 | { |
@@ -50,6 +51,7 @@ int main(int argc, char** argv) | |||
50 | lt_t wcet; | 51 | lt_t wcet; |
51 | lt_t period; | 52 | lt_t period; |
52 | int migrate = 0; | 53 | int migrate = 0; |
54 | int split = 1; | ||
53 | int cluster = 0; | 55 | int cluster = 0; |
54 | int cluster_size = 1; | 56 | int cluster_size = 1; |
55 | int opt; | 57 | int opt; |
@@ -67,6 +69,9 @@ int main(int argc, char** argv) | |||
67 | case 'v': | 69 | case 'v': |
68 | verbose = 1; | 70 | verbose = 1; |
69 | break; | 71 | break; |
72 | case 'n': | ||
73 | split = atoi(optarg); | ||
74 | break; | ||
70 | case 'p': | 75 | case 'p': |
71 | cluster = atoi(optarg); | 76 | cluster = atoi(optarg); |
72 | migrate = 1; | 77 | migrate = 1; |
@@ -118,7 +123,7 @@ int main(int argc, char** argv) | |||
118 | if (ret < 0) | 123 | if (ret < 0) |
119 | bail_out("could not migrate to target partition or cluster"); | 124 | bail_out("could not migrate to target partition or cluster"); |
120 | } | 125 | } |
121 | ret = __create_rt_task(launch, &info, cluster, cluster_size, wcet, period, | 126 | ret = __create_rt_task(launch, &info, split, cluster, cluster_size, wcet, period, |
122 | priority, class); | 127 | priority, class); |
123 | 128 | ||
124 | 129 | ||