diff options
Diffstat (limited to 'litmus/sched_task_trace.c')
-rw-r--r-- | litmus/sched_task_trace.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/litmus/sched_task_trace.c b/litmus/sched_task_trace.c index 422314f29a60..b9e772c07652 100644 --- a/litmus/sched_task_trace.c +++ b/litmus/sched_task_trace.c | |||
@@ -238,13 +238,24 @@ feather_callback void do_sched_trace_action(unsigned long id, | |||
238 | } | 238 | } |
239 | } | 239 | } |
240 | 240 | ||
241 | feather_callback void do_sched_trace_pgm_param(unsigned long id, unsigned long _task) | ||
242 | { | ||
243 | struct task_struct *t = (struct task_struct*) _task; | ||
244 | struct st_event_record* rec = get_record(ST_PGM_PARAM, t); | ||
245 | if (rec) { | ||
246 | rec->data.pgm_param.node_type = tsk_rt(t)->task_params.pgm_type; | ||
247 | rec->data.pgm_param.graph_pid = t->tgid; | ||
248 | put_record(rec); | ||
249 | } | ||
250 | } | ||
251 | |||
241 | feather_callback void do_sched_trace_pgm_release(unsigned long id, unsigned long _task) | 252 | feather_callback void do_sched_trace_pgm_release(unsigned long id, unsigned long _task) |
242 | { | 253 | { |
243 | struct task_struct *t = (struct task_struct*) _task; | 254 | struct task_struct *t = (struct task_struct*) _task; |
244 | struct st_event_record* rec = get_record(ST_PGM_RELEASE, t); | 255 | struct st_event_record* rec = get_record(ST_PGM_RELEASE, t); |
245 | if (rec) { | 256 | if (rec) { |
246 | rec->data.release.release = get_release(t); | 257 | rec->data.pgm_release.release = get_release(t); |
247 | rec->data.release.deadline = get_deadline(t); | 258 | rec->data.pgm_release.deadline = get_deadline(t); |
248 | put_record(rec); | 259 | put_record(rec); |
249 | } | 260 | } |
250 | } | 261 | } |