aboutsummaryrefslogtreecommitdiffstats
path: root/litmus/sched_task_trace.c
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2011-01-26 17:47:49 -0500
committerJonathan Herman <hermanjl@cs.unc.edu>2011-01-26 17:47:49 -0500
commit7dbc4a842d3bcfa755ba82cae46171d0098d4c2c (patch)
treea7166306cb4503e4288ef8c729be415767fe22c0 /litmus/sched_task_trace.c
parentd11808b5c6b032de4284281ed2ff77ae697a4ebd (diff)
Added support for tracing arbitrary actions.wip-events
Diffstat (limited to 'litmus/sched_task_trace.c')
-rw-r--r--litmus/sched_task_trace.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/litmus/sched_task_trace.c b/litmus/sched_task_trace.c
index a15b25d21a89..bd490054f183 100644
--- a/litmus/sched_task_trace.c
+++ b/litmus/sched_task_trace.c
@@ -224,3 +224,17 @@ feather_callback void do_sched_trace_sys_release(unsigned long id,
224 put_record(rec); 224 put_record(rec);
225 } 225 }
226} 226}
227
228feather_callback void do_sched_trace_action(unsigned long id,
229 unsigned long _task,
230 unsigned long action)
231{
232 struct task_struct *t = (struct task_struct*) _task;
233 struct st_event_record* rec = get_record(ST_ACTION, t);
234
235 if (rec) {
236 rec->data.action.when = now();
237 rec->data.action.action = action;
238 put_record(rec);
239 }
240}