aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/sched_task_trace.c
diff options
context:
space:
mode:
Diffstat (limited to 'litmus/sched_task_trace.c')
-rw-r--r--litmus/sched_task_trace.c15
1 files changed, 14 insertions, 1 deletions
diff --git a/litmus/sched_task_trace.c b/litmus/sched_task_trace.c
index 48124b756be7..d4fedaa15744 100644
--- a/litmus/sched_task_trace.c
+++ b/litmus/sched_task_trace.c
@@ -227,7 +227,7 @@ feather_callback void do_sched_trace_sys_release(unsigned long id,
227} 227}
228 228
229feather_callback void do_sched_trace_task_exit(unsigned long id, 229feather_callback void do_sched_trace_task_exit(unsigned long id,
230 unsigned long _task) 230 unsigned long _task)
231{ 231{
232 struct task_struct *t = (struct task_struct*) _task; 232 struct task_struct *t = (struct task_struct*) _task;
233#ifdef CONFIG_PLUGIN_COLOR 233#ifdef CONFIG_PLUGIN_COLOR
@@ -245,6 +245,19 @@ feather_callback void do_sched_trace_task_exit(unsigned long id,
245 } 245 }
246} 246}
247 247
248feather_callback void do_sched_trace_task_tardy(unsigned long id,
249 unsigned long _task)
250{
251 struct task_struct *t = (struct task_struct*) _task;
252 struct st_event_record *rec = get_record(ST_TASK_TARDY, t);
253 if (rec) {
254 rec->data.task_tardy.max_tardy = tsk_rt(t)->max_tardy;
255 rec->data.task_tardy.total_tardy = tsk_rt(t)->total_tardy;
256 rec->data.task_tardy.missed = tsk_rt(t)->missed;
257 put_record(rec);
258 }
259}
260
248feather_callback void do_sched_trace_action(unsigned long id, 261feather_callback void do_sched_trace_action(unsigned long id,
249 unsigned long _task, 262 unsigned long _task,
250 unsigned long action) 263 unsigned long action)