aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Kenna <cjk@cs.unc.edu>2012-05-06 21:37:20 -0400
committerJonathan Herman <hermanjl@cs.unc.edu>2012-09-27 15:27:12 -0400
commitf299a6944bfdfe70ddc8b9993f1ec3eb5d18d796 (patch)
tree3762fd0e98ddaa23e5939e6fd1e45ba3fab7e2cc
parent45d0f315ec64bdac3ba0723be07e83b7df7652f8 (diff)
Add the time to the task_exit event
-rw-r--r--include/litmus/sched_trace.h2
-rw-r--r--litmus/sched_task_trace.c1
2 files changed, 2 insertions, 1 deletions
diff --git a/include/litmus/sched_trace.h b/include/litmus/sched_trace.h
index 098df0653172..c71a08ab552e 100644
--- a/include/litmus/sched_trace.h
+++ b/include/litmus/sched_trace.h
@@ -81,8 +81,8 @@ struct st_sys_release_data {
81}; 81};
82 82
83struct st_task_exit_data { 83struct st_task_exit_data {
84 u64 when;
84 u64 max_exec_time; 85 u64 max_exec_time;
85 u64 __unused;
86}; 86};
87 87
88#define DATA(x) struct st_ ## x ## _data x; 88#define DATA(x) struct st_ ## x ## _data x;
diff --git a/litmus/sched_task_trace.c b/litmus/sched_task_trace.c
index d2ece6b764b0..4ada33c6979b 100644
--- a/litmus/sched_task_trace.c
+++ b/litmus/sched_task_trace.c
@@ -234,6 +234,7 @@ feather_callback void do_sched_trace_task_exit(unsigned long id,
234 234
235 struct st_event_record *rec = get_record(ST_TASK_EXIT, t); 235 struct st_event_record *rec = get_record(ST_TASK_EXIT, t);
236 if (rec) { 236 if (rec) {
237 rec->data.task_exit.when = now();
237 rec->data.task_exit.max_exec_time = max_exec_time; 238 rec->data.task_exit.max_exec_time = max_exec_time;
238 put_record(rec); 239 put_record(rec);
239 } 240 }