diff options
author | Namhoon Kim <namhoonk@cs.unc.edu> | 2017-04-25 02:14:29 -0400 |
---|---|---|
committer | Namhoon Kim <namhoonk@cs.unc.edu> | 2017-04-25 02:14:29 -0400 |
commit | 6dc3e50fc1916dbc8b8e9cc863217e545ca4159c (patch) | |
tree | e693a85beac6b5713a87afa5e8e3c5bb42df502d /litmus/sched_task_trace.c | |
parent | de945bf970cbb332c0540b2cd071ec3c7e4b7833 (diff) |
sync bug fixed
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 | ||