diff options
Diffstat (limited to 'litmus/sched_task_trace.c')
-rw-r--r-- | litmus/sched_task_trace.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/litmus/sched_task_trace.c b/litmus/sched_task_trace.c index b06764e8b330..d9cf46ec0550 100644 --- a/litmus/sched_task_trace.c +++ b/litmus/sched_task_trace.c | |||
@@ -234,10 +234,11 @@ feather_callback void do_sched_trace_task_exit(unsigned long id, | |||
234 | { | 234 | { |
235 | struct task_struct *t = (struct task_struct*) _task; | 235 | struct task_struct *t = (struct task_struct*) _task; |
236 | const lt_t max_exec_time = tsk_rt(t)->max_exec_time; | 236 | const lt_t max_exec_time = tsk_rt(t)->max_exec_time; |
237 | const lt_t avg_exec_time = tsk_rt(t)->tot_exec_time / (get_rt_job(t) - 1); | ||
237 | 238 | ||
238 | struct st_event_record *rec = get_record(ST_TASK_EXIT, t); | 239 | struct st_event_record *rec = get_record(ST_TASK_EXIT, t); |
239 | if (rec) { | 240 | if (rec) { |
240 | rec->data.task_exit.when = now(); | 241 | rec->data.task_exit.avg_exec_time = avg_exec_time; |
241 | rec->data.task_exit.max_exec_time = max_exec_time; | 242 | rec->data.task_exit.max_exec_time = max_exec_time; |
242 | put_record(rec); | 243 | put_record(rec); |
243 | } | 244 | } |