diff options
author | Christopher Kenna <cjk@cs.unc.edu> | 2012-05-06 21:18:33 -0400 |
---|---|---|
committer | Jonathan Herman <hermanjl@cs.unc.edu> | 2012-09-27 15:25:58 -0400 |
commit | 45d0f315ec64bdac3ba0723be07e83b7df7652f8 (patch) | |
tree | e18a178a5ddf40995d6414ca4b6a2b9522c97b0f /litmus | |
parent | 63fabd87c18d0da2d727ae79ae864d6064f9e7e0 (diff) |
Add task_exit event that records max exec time under color plugin.
Conflicts:
include/litmus/rt_param.h
litmus/sched_color.c
Diffstat (limited to 'litmus')
-rw-r--r-- | litmus/sched_task_trace.c | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/litmus/sched_task_trace.c b/litmus/sched_task_trace.c index 5ef8d09ab41f..d2ece6b764b0 100644 --- a/litmus/sched_task_trace.c +++ b/litmus/sched_task_trace.c | |||
@@ -226,6 +226,19 @@ feather_callback void do_sched_trace_sys_release(unsigned long id, | |||
226 | } | 226 | } |
227 | } | 227 | } |
228 | 228 | ||
229 | feather_callback void do_sched_trace_task_exit(unsigned long id, | ||
230 | unsigned long _task) | ||
231 | { | ||
232 | struct task_struct *t = (struct task_struct*) _task; | ||
233 | const lt_t max_exec_time = tsk_rt(t)->max_exec_time; | ||
234 | |||
235 | struct st_event_record *rec = get_record(ST_TASK_EXIT, t); | ||
236 | if (rec) { | ||
237 | rec->data.task_exit.max_exec_time = max_exec_time; | ||
238 | put_record(rec); | ||
239 | } | ||
240 | } | ||
241 | |||
229 | feather_callback void do_sched_trace_action(unsigned long id, | 242 | feather_callback void do_sched_trace_action(unsigned long id, |
230 | unsigned long _task, | 243 | unsigned long _task, |
231 | unsigned long action) | 244 | unsigned long action) |