diff options
Diffstat (limited to 'include/litmus.h')
-rw-r--r-- | include/litmus.h | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/include/litmus.h b/include/litmus.h index b798c92..2b58d82 100644 --- a/include/litmus.h +++ b/include/litmus.h | |||
@@ -31,18 +31,18 @@ int get_rt_task_param(pid_t pid, struct rt_task* param); | |||
31 | /* times are given in ms */ | 31 | /* times are given in ms */ |
32 | int sporadic_task( | 32 | int sporadic_task( |
33 | lt_t e, lt_t p, lt_t phase, | 33 | lt_t e, lt_t p, lt_t phase, |
34 | int partition, task_class_t cls, | 34 | int partition, int criticality, task_class_t cls, |
35 | budget_policy_t budget_policy, int set_cpu_set); | 35 | budget_policy_t budget_policy, int set_cpu_set); |
36 | 36 | ||
37 | /* times are given in ns */ | 37 | /* times are given in ns */ |
38 | int sporadic_task_ns( | 38 | int sporadic_task_ns( |
39 | lt_t e, lt_t p, lt_t phase, | 39 | lt_t e, lt_t p, lt_t phase, |
40 | int cpu, task_class_t cls, | 40 | int cpu, int criticality, task_class_t cls, |
41 | budget_policy_t budget_policy, int set_cpu_set); | 41 | budget_policy_t budget_policy, int set_cpu_set); |
42 | 42 | ||
43 | /* budget enforcement off by default in these macros */ | 43 | /* budget enforcement off by default in these macros */ |
44 | #define sporadic_global(e, p) \ | 44 | #define sporadic_global(e, p) \ |
45 | sporadic_task(e, p, 0, 0, RT_CLASS_SOFT, NO_ENFORCEMENT, 0) | 45 | sporadic_task(e, p, 0, 0, 0, RT_CLASS_SOFT, NO_ENFORCEMENT, 0) |
46 | #define sporadic_partitioned(e, p, cpu) \ | 46 | #define sporadic_partitioned(e, p, cpu) \ |
47 | sporadic_task(e, p, 0, cpu, RT_CLASS_SOFT, NO_ENFORCEMENT, 1) | 47 | sporadic_task(e, p, 0, cpu, RT_CLASS_SOFT, NO_ENFORCEMENT, 1) |
48 | 48 | ||
@@ -82,9 +82,10 @@ void exit_litmus(void); | |||
82 | typedef int (*rt_fn_t)(void*); | 82 | typedef int (*rt_fn_t)(void*); |
83 | 83 | ||
84 | /* These two functions configure the RT task to use enforced exe budgets */ | 84 | /* These two functions configure the RT task to use enforced exe budgets */ |
85 | int create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, int period); | 85 | int create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, int period, |
86 | int criticality); | ||
86 | int __create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, | 87 | int __create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, |
87 | int period, task_class_t cls); | 88 | int period, int criticality, task_class_t cls); |
88 | 89 | ||
89 | /* per-task modes */ | 90 | /* per-task modes */ |
90 | enum rt_task_mode_t { | 91 | enum rt_task_mode_t { |