aboutsummaryrefslogtreecommitdiffstats
path: root/litmus
diff options
context:
space:
mode:
authorChristopher Kenna <cjk@cs.unc.edu>2012-05-06 21:18:33 -0400
committerJonathan Herman <hermanjl@cs.unc.edu>2012-09-27 15:25:58 -0400
commit45d0f315ec64bdac3ba0723be07e83b7df7652f8 (patch)
treee18a178a5ddf40995d6414ca4b6a2b9522c97b0f /litmus
parent63fabd87c18d0da2d727ae79ae864d6064f9e7e0 (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.c13
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
229feather_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
229feather_callback void do_sched_trace_action(unsigned long id, 242feather_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)