diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2011-12-22 21:39:32 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2011-12-22 21:39:32 -0500 |
commit | 88dc12391b14d62011f382a6556da0529e9afdc7 (patch) | |
tree | 62e1cecc077bf23a9213f734480d013a04b0ae25 /src/ft2csv.c | |
parent | 2725f4c784ead58407b0341bdc4a609a873accef (diff) |
Added lvl b and c macros
Diffstat (limited to 'src/ft2csv.c')
-rw-r--r-- | src/ft2csv.c | 31 |
1 files changed, 25 insertions, 6 deletions
diff --git a/src/ft2csv.c b/src/ft2csv.c index 33b65c4..ce44c7e 100644 --- a/src/ft2csv.c +++ b/src/ft2csv.c | |||
@@ -43,7 +43,9 @@ static unsigned int non_rt = 0; | |||
43 | static unsigned int interleaved = 0; | 43 | static unsigned int interleaved = 0; |
44 | static unsigned int avoided = 0; | 44 | static unsigned int avoided = 0; |
45 | static unsigned int lvl_a_sched = 0; | 45 | static unsigned int lvl_a_sched = 0; |
46 | static unsigned int lvl_a_sched_not_a = 0; | 46 | static unsigned int lvl_b_sched = 0; |
47 | static unsigned int lvl_c_sched = 0; | ||
48 | static unsigned int other_sched = 0; | ||
47 | 49 | ||
48 | #define CYCLES_PER_US 2128 | 50 | #define CYCLES_PER_US 2128 |
49 | 51 | ||
@@ -223,17 +225,31 @@ static void find_event_by_eid(struct timestamp *first, struct timestamp* end) | |||
223 | if (TS_LVLA_SCHED_END == second->event && | 225 | if (TS_LVLA_SCHED_END == second->event && |
224 | second->task_type == TSK_LVLA) | 226 | second->task_type == TSK_LVLA) |
225 | { | 227 | { |
226 | /* second could be a level-A task */ | ||
227 | format_pair(first, second, exec_time); | 228 | format_pair(first, second, exec_time); |
228 | complete++; | 229 | complete++; |
229 | lvl_a_sched++; | 230 | lvl_a_sched++; |
231 | } else if (TS_LVLB_SCHED_END == second->event && | ||
232 | second->task_type == TSK_LVLB) | ||
233 | { | ||
234 | format_pair(first, second, exec_time); | ||
235 | complete++; | ||
236 | lvl_b_sched++; | ||
237 | } else if (TS_LVLC_SCHED_END == second->event && | ||
238 | second->task_type == TSK_LVLC) | ||
239 | { | ||
240 | format_pair(first, second, exec_time); | ||
241 | complete++; | ||
242 | lvl_c_sched++; | ||
243 | |||
230 | } else { | 244 | } else { |
231 | non_rt++; | 245 | non_rt++; |
232 | } | 246 | } |
233 | } else if (TS_LVLA_SCHED_END == second->event && | 247 | } else if ((TS_LVLA_SCHED_END == second->event || |
248 | TS_LVLB_SCHED_END == second->event || | ||
249 | TS_LVLC_SCHED_END == second->event) && | ||
234 | TSK_RT == second->task_type) | 250 | TSK_RT == second->task_type) |
235 | { | 251 | { |
236 | lvl_a_sched_not_a++; | 252 | other_sched++; |
237 | } else | 253 | } else |
238 | { | 254 | { |
239 | format_pair(first, second, exec_time); | 255 | format_pair(first, second, exec_time); |
@@ -403,11 +419,14 @@ int main(int argc, char** argv) | |||
403 | "Non RT : %10d\n" | 419 | "Non RT : %10d\n" |
404 | "Interleaved : %10d\n" | 420 | "Interleaved : %10d\n" |
405 | "Lvl-A Sched : %10d\n" | 421 | "Lvl-A Sched : %10d\n" |
406 | "Lvl-A Sched (non-A) : %10d\n", | 422 | "Lvl-B Sched : %10d\n" |
423 | "Lvl-C Sched : %10d\n" | ||
424 | "Other Sched (non-A) : %10d\n", | ||
407 | (int) count, | 425 | (int) count, |
408 | skipped, avoided, complete, | 426 | skipped, avoided, complete, |
409 | incomplete, filtered, non_rt, | 427 | incomplete, filtered, non_rt, |
410 | interleaved, lvl_a_sched, lvl_a_sched_not_a); | 428 | interleaved, lvl_a_sched, lvl_b_sched, lvl_c_sched, |
429 | other_sched); | ||
411 | 430 | ||
412 | return 0; | 431 | return 0; |
413 | } | 432 | } |