diff options
author | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-02-18 11:58:44 -0500 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2013-03-05 13:41:27 -0500 |
commit | c31763ecf41cbcdb61e8960f0354d8b2e39a8645 (patch) | |
tree | af1797f680b6904f24d54393a8f255f2e4e40930 /include/litmus/sched_trace.h | |
parent | cf1644594e8faa0f8bb4cd8656fc01e27f4e6e8e (diff) |
Merged changes from Tegra branch.
Diffstat (limited to 'include/litmus/sched_trace.h')
-rw-r--r-- | include/litmus/sched_trace.h | 79 |
1 files changed, 41 insertions, 38 deletions
diff --git a/include/litmus/sched_trace.h b/include/litmus/sched_trace.h index cb8758f8aebf..0580340d0170 100644 --- a/include/litmus/sched_trace.h +++ b/include/litmus/sched_trace.h | |||
@@ -51,6 +51,7 @@ struct st_switch_away_data { /* A process was switched away from on a given CPU. | |||
51 | u64 exec_time; | 51 | u64 exec_time; |
52 | }; | 52 | }; |
53 | 53 | ||
54 | /* changed: like everything */ | ||
54 | struct st_completion_data { /* A job completed. */ | 55 | struct st_completion_data { /* A job completed. */ |
55 | u32 exec; | 56 | u32 exec; |
56 | u16 flush_work; | 57 | u16 flush_work; |
@@ -76,8 +77,8 @@ struct st_resume_data { /* A task resumes. */ | |||
76 | 77 | ||
77 | struct st_action_data { | 78 | struct st_action_data { |
78 | u64 when; | 79 | u64 when; |
79 | u32 action; | 80 | u8 action; |
80 | u8 __unused[4]; | 81 | u8 __unused[7]; |
81 | }; | 82 | }; |
82 | 83 | ||
83 | struct st_sys_release_data { | 84 | struct st_sys_release_data { |
@@ -85,11 +86,13 @@ struct st_sys_release_data { | |||
85 | u64 release; | 86 | u64 release; |
86 | }; | 87 | }; |
87 | 88 | ||
89 | /* changed: easy enough to remove */ | ||
88 | struct st_task_exit_data { | 90 | struct st_task_exit_data { |
89 | u64 avg_exec_time; | 91 | u64 avg_exec_time; |
90 | u64 max_exec_time; | 92 | u64 max_exec_time; |
91 | }; | 93 | }; |
92 | 94 | ||
95 | /* changed: calculate yoself */ | ||
93 | struct st_task_tardy_data { | 96 | struct st_task_tardy_data { |
94 | u64 total_tardy; | 97 | u64 total_tardy; |
95 | u32 max_tardy; | 98 | u32 max_tardy; |
@@ -232,26 +235,26 @@ feather_callback void do_sched_trace_task_tardy(unsigned long id, | |||
232 | trace_litmus_task_param(t); \ | 235 | trace_litmus_task_param(t); \ |
233 | } while (0) | 236 | } while (0) |
234 | 237 | ||
235 | #define sched_trace_task_release(t)/* \ */ | 238 | #define sched_trace_task_release(t) \ |
236 | /* do { \ */ | 239 | do { \ |
237 | /* SCHED_TRACE(SCHED_TRACE_BASE_ID + 3, \ */ | 240 | SCHED_TRACE(SCHED_TRACE_BASE_ID + 3, \ |
238 | /* do_sched_trace_task_release, t); \ */ | 241 | do_sched_trace_task_release, t); \ |
239 | /* trace_litmus_task_release(t); \ */ | 242 | trace_litmus_task_release(t); \ |
240 | /* } while (0) */ | 243 | } while (0) |
241 | 244 | ||
242 | #define sched_trace_task_switch_to(t)/* \ */ | 245 | #define sched_trace_task_switch_to(t) \ |
243 | /* do { \ */ | 246 | do { \ |
244 | /* SCHED_TRACE(SCHED_TRACE_BASE_ID + 4, \ */ | 247 | SCHED_TRACE(SCHED_TRACE_BASE_ID + 4, \ |
245 | /* do_sched_trace_task_switch_to, t); \ */ | 248 | do_sched_trace_task_switch_to, t); \ |
246 | /* trace_litmus_switch_to(t); \ */ | 249 | trace_litmus_switch_to(t); \ |
247 | /* } while (0) */ | 250 | } while (0) |
248 | 251 | ||
249 | #define sched_trace_task_switch_away(t)/* \ */ | 252 | #define sched_trace_task_switch_away(t) \ |
250 | /* do { \ */ | 253 | do { \ |
251 | /* SCHED_TRACE(SCHED_TRACE_BASE_ID + 5, \ */ | 254 | SCHED_TRACE(SCHED_TRACE_BASE_ID + 5, \ |
252 | /* do_sched_trace_task_switch_away, t); \ */ | 255 | do_sched_trace_task_switch_away, t); \ |
253 | /* trace_litmus_switch_away(t); \ */ | 256 | trace_litmus_switch_away(t); \ |
254 | /* } while (0) */ | 257 | } while (0) |
255 | 258 | ||
256 | #define sched_trace_task_completion(t, forced) \ | 259 | #define sched_trace_task_completion(t, forced) \ |
257 | do { \ | 260 | do { \ |
@@ -261,30 +264,30 @@ feather_callback void do_sched_trace_task_tardy(unsigned long id, | |||
261 | trace_litmus_task_completion(t, forced); \ | 264 | trace_litmus_task_completion(t, forced); \ |
262 | } while (0) | 265 | } while (0) |
263 | 266 | ||
264 | #define sched_trace_task_block_on(t, i)/* \ */ | 267 | #define sched_trace_task_block_on(t, i) \ |
265 | /* do { \ */ | 268 | do { \ |
266 | /* SCHED_TRACE(SCHED_TRACE_BASE_ID + 7, \ */ | 269 | SCHED_TRACE(SCHED_TRACE_BASE_ID + 7, \ |
267 | /* do_sched_trace_task_block, t); \ */ | 270 | do_sched_trace_task_block, t); \ |
268 | /* trace_litmus_task_block(t, i); \ */ | 271 | trace_litmus_task_block(t, i); \ |
269 | /* } while (0) */ | 272 | } while (0) |
270 | 273 | ||
271 | #define sched_trace_task_block(t) \ | 274 | #define sched_trace_task_block(t) \ |
272 | sched_trace_task_block_on(t, 0) | 275 | sched_trace_task_block_on(t, 0) |
273 | 276 | ||
274 | #define sched_trace_task_resume_on(t, i)/* \ */ | 277 | #define sched_trace_task_resume_on(t, i) \ |
275 | /* do { \ */ | 278 | do { \ |
276 | /* SCHED_TRACE(SCHED_TRACE_BASE_ID + 8, \ */ | 279 | SCHED_TRACE(SCHED_TRACE_BASE_ID + 8, \ |
277 | /* do_sched_trace_task_resume, t); \ */ | 280 | do_sched_trace_task_resume, t); \ |
278 | /* trace_litmus_task_resume(t, i); \ */ | 281 | trace_litmus_task_resume(t, i); \ |
279 | /* } while (0) */ | 282 | } while (0) |
280 | 283 | ||
281 | #define sched_trace_task_resume(t) \ | 284 | #define sched_trace_task_resume(t) \ |
282 | sched_trace_task_resume_on(t, 0) | 285 | sched_trace_task_resume_on(t, 0) |
283 | 286 | ||
284 | #define sched_trace_resource_acquire(t, i)/* \ */ | 287 | #define sched_trace_resource_acquire(t, i) \ |
285 | /* do { \ */ | 288 | do { \ |
286 | /* trace_litmus_resource_acquire(t, i); \ */ | 289 | trace_litmus_resource_acquire(t, i); \ |
287 | /* } while (0) */ | 290 | } while (0) |
288 | 291 | ||
289 | #define sched_trace_resource_released(t, i) \ | 292 | #define sched_trace_resource_released(t, i) \ |
290 | do { \ | 293 | do { \ |