diff options
Diffstat (limited to 'litmus/sched_task_trace.c')
-rw-r--r-- | litmus/sched_task_trace.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/litmus/sched_task_trace.c b/litmus/sched_task_trace.c index acf2b7dc0219..d844180afa28 100644 --- a/litmus/sched_task_trace.c +++ b/litmus/sched_task_trace.c | |||
@@ -265,3 +265,15 @@ feather_callback void do_sched_trace_request_mode(unsigned long id, | |||
265 | put_record(rec); | 265 | put_record(rec); |
266 | } | 266 | } |
267 | } | 267 | } |
268 | |||
269 | feather_callback void do_sched_trace_sys_start(unsigned long id, | ||
270 | unsigned long _start) | ||
271 | { | ||
272 | lt_t *start = (lt_t*) _start; | ||
273 | struct st_event_record* rec = get_record(ST_SYS_START, NULL); | ||
274 | if (rec) { | ||
275 | rec->data.sys_start.when = now(); | ||
276 | rec->data.sys_start.start = *start; | ||
277 | put_record(rec); | ||
278 | } | ||
279 | } \ No newline at end of file | ||