aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJeremy Erickson <jerickso@cs.unc.edu>2010-11-02 12:37:14 -0400
committerJeremy Erickson <jerickso@cs.unc.edu>2010-11-02 12:37:14 -0400
commit2701b0022c6c409d2172753aed48d616e789b98c (patch)
treeb3a12e39e8f882374f78508ab2733594244fb256 /include
parente9c900fae35e4e4730469e189ff17bf30518346a (diff)
Updated Mixed Criticality stuffwip-mc-jerickso
Diffstat (limited to 'include')
-rw-r--r--include/litmus.h11
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 */
32int sporadic_task( 32int 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 */
38int sporadic_task_ns( 38int 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);
82typedef int (*rt_fn_t)(void*); 82typedef 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 */
85int create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, int period); 85int create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, int period,
86 int criticality);
86int __create_rt_task(rt_fn_t rt_prog, void *arg, int cpu, int wcet, 87int __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 */
90enum rt_task_mode_t { 91enum rt_task_mode_t {