diff options
author | Christopher Kenna <cjk@cs.unc.edu> | 2011-10-12 00:08:43 -0400 |
---|---|---|
committer | Christopher Kenna <cjk@cs.unc.edu> | 2011-10-12 00:09:03 -0400 |
commit | a565bb17ee38e4a811254c6f0a3e46e8b2c2b66f (patch) | |
tree | 888ea1c5bb68173807b66a612fd70dc1556a1a7d | |
parent | 9bbedd1b59b55650767395eabf093e0400d4bd97 (diff) |
fix level-a schedule event id and a bad define in rt_domain.h
-rw-r--r-- | include/litmus/rt_domain.h | 4 | ||||
-rw-r--r-- | include/litmus/trace.h | 3 | ||||
-rw-r--r-- | litmus/trace.c | 7 |
3 files changed, 9 insertions, 5 deletions
diff --git a/include/litmus/rt_domain.h b/include/litmus/rt_domain.h index 59350fb78d4f..f98d47ccbb0b 100644 --- a/include/litmus/rt_domain.h +++ b/include/litmus/rt_domain.h | |||
@@ -31,10 +31,10 @@ typedef struct _rt_domain { | |||
31 | raw_spinlock_t release_lock; | 31 | raw_spinlock_t release_lock; |
32 | struct release_queue release_queue; | 32 | struct release_queue release_queue; |
33 | 33 | ||
34 | #ifdef CONFIG_MERGE_TIMERS | 34 | #if defined(CONFIG_MERGE_TIMERS) |
35 | struct event_group* event_group; | 35 | struct event_group* event_group; |
36 | int prio; | 36 | int prio; |
37 | #elif CONFIG_RELEASE_MASTER | 37 | #elif defined(CONFIG_RELEASE_MASTER) |
38 | int release_master; | 38 | int release_master; |
39 | #endif | 39 | #endif |
40 | 40 | ||
diff --git a/include/litmus/trace.h b/include/litmus/trace.h index db91ff69b51e..e0c84716d87a 100644 --- a/include/litmus/trace.h +++ b/include/litmus/trace.h | |||
@@ -113,7 +113,8 @@ feather_callback void save_timestamp_time(unsigned long event, unsigned long tim | |||
113 | #define TS_LVLA_RELEASE_END DTIMESTAMP(113, TSK_RT) | 113 | #define TS_LVLA_RELEASE_END DTIMESTAMP(113, TSK_RT) |
114 | 114 | ||
115 | #define TS_LVLA_SCHED_START DTIMESTAMP(114, TSK_UNKNOWN) | 115 | #define TS_LVLA_SCHED_START DTIMESTAMP(114, TSK_UNKNOWN) |
116 | #define TS_LVLA_SCHED_END(t) TTIMESTAMP(115, t) | 116 | #define TS_LVLA_SCHED_END_ID 115 |
117 | #define TS_LVLA_SCHED_END(t) TTIMESTAMP(TS_LVLA_SCHED_END_ID, t) | ||
117 | 118 | ||
118 | 119 | ||
119 | #define TS_PLUGIN_SCHED_START /* TIMESTAMP(120) */ /* currently unused */ | 120 | #define TS_PLUGIN_SCHED_START /* TIMESTAMP(120) */ /* currently unused */ |
diff --git a/litmus/trace.c b/litmus/trace.c index 417422d2f16d..1d4593aec71d 100644 --- a/litmus/trace.c +++ b/litmus/trace.c | |||
@@ -4,6 +4,9 @@ | |||
4 | #include <litmus/ftdev.h> | 4 | #include <litmus/ftdev.h> |
5 | #include <litmus/litmus.h> | 5 | #include <litmus/litmus.h> |
6 | #include <litmus/trace.h> | 6 | #include <litmus/trace.h> |
7 | |||
8 | #include <litmus/domain.h> | ||
9 | #include <litmus/event_group.h> | ||
7 | #include <litmus/sched_mc.h> | 10 | #include <litmus/sched_mc.h> |
8 | 11 | ||
9 | /******************************************************************************/ | 12 | /******************************************************************************/ |
@@ -82,11 +85,11 @@ feather_callback void save_timestamp_def(unsigned long event, | |||
82 | feather_callback void save_timestamp_task(unsigned long event, | 85 | feather_callback void save_timestamp_task(unsigned long event, |
83 | unsigned long t_ptr) | 86 | unsigned long t_ptr) |
84 | { | 87 | { |
85 | struct task_struct *ts = t_ptr; | 88 | struct task_struct *ts = (struct task_struct*) t_ptr; |
86 | int rt = is_realtime(ts); | 89 | int rt = is_realtime(ts); |
87 | uint8_t type = rt ? TSK_RT : TSK_BE; | 90 | uint8_t type = rt ? TSK_RT : TSK_BE; |
88 | 91 | ||
89 | if (TS_LVLA_SCHED_END == event) { | 92 | if (TS_LVLA_SCHED_END_ID == event) { |
90 | if (rt && CRIT_LEVEL_A == tsk_mc_crit(ts)) | 93 | if (rt && CRIT_LEVEL_A == tsk_mc_crit(ts)) |
91 | type = TSK_LVLA; | 94 | type = TSK_LVLA; |
92 | } | 95 | } |