aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace/events/litmus.h
diff options
context:
space:
mode:
authorJonathan Herman <hermanjl@cs.unc.edu>2012-10-03 11:01:30 -0400
committerJonathan Herman <hermanjl@cs.unc.edu>2012-10-03 11:01:30 -0400
commit7e7bb31d1215300b6e60661a7ead02236ea1adda (patch)
tree403522bbea6a3ed758ca435f952cabd30c4ae771 /include/trace/events/litmus.h
parent6e515de45f1ad108a8ae08d0be1b6f7bf2a707b6 (diff)
Moved user-space state of tasks into new rt_param.user_job.
Both sched_color and sched_mc assumed seperate kernel and userspace views of job states, where the kernel view is used for scheduling while the userspace view is used for statistics (tardiness etc). This commit merges both approaches.
Diffstat (limited to 'include/trace/events/litmus.h')
-rw-r--r--include/trace/events/litmus.h16
1 files changed, 8 insertions, 8 deletions
diff --git a/include/trace/events/litmus.h b/include/trace/events/litmus.h
index 474aa129c233..58ffdcd4c546 100644
--- a/include/trace/events/litmus.h
+++ b/include/trace/events/litmus.h
@@ -29,7 +29,7 @@ TRACE_EVENT(litmus_task_param,
29 29
30 TP_fast_assign( 30 TP_fast_assign(
31 __entry->pid = t ? t->pid : 0; 31 __entry->pid = t ? t->pid : 0;
32 __entry->job = t ? t->rt_param.job_params.job_no : 0; 32 __entry->job = t ? get_user_job(t) : 0,
33 __entry->wcet = get_exec_cost(t); 33 __entry->wcet = get_exec_cost(t);
34 __entry->period = get_rt_period(t); 34 __entry->period = get_rt_period(t);
35 __entry->phase = get_rt_phase(t); 35 __entry->phase = get_rt_phase(t);
@@ -59,9 +59,9 @@ TRACE_EVENT(litmus_task_release,
59 59
60 TP_fast_assign( 60 TP_fast_assign(
61 __entry->pid = t ? t->pid : 0; 61 __entry->pid = t ? t->pid : 0;
62 __entry->job = t ? t->rt_param.job_params.job_no : 0; 62 __entry->job = t ? get_user_job(t) : 0;
63 __entry->release = get_release(t); 63 __entry->release = get_user_release(t);
64 __entry->deadline = get_deadline(t); 64 __entry->deadline = get_user_deadline(t);
65 ), 65 ),
66 66
67 TP_printk("release(job(%u, %u)): %Lu\ndeadline(job(%u, %u)): %Lu\n", 67 TP_printk("release(job(%u, %u)): %Lu\ndeadline(job(%u, %u)): %Lu\n",
@@ -86,7 +86,7 @@ TRACE_EVENT(litmus_switch_to,
86 86
87 TP_fast_assign( 87 TP_fast_assign(
88 __entry->pid = is_realtime(t) ? t->pid : 0; 88 __entry->pid = is_realtime(t) ? t->pid : 0;
89 __entry->job = is_realtime(t) ? t->rt_param.job_params.job_no : 0; 89 __entry->job = is_realtime(t) ? get_user_job(t) : 0;
90 __entry->exec_time = get_exec_time(t); 90 __entry->exec_time = get_exec_time(t);
91 ), 91 ),
92 92
@@ -111,7 +111,7 @@ TRACE_EVENT(litmus_switch_away,
111 111
112 TP_fast_assign( 112 TP_fast_assign(
113 __entry->pid = is_realtime(t) ? t->pid : 0; 113 __entry->pid = is_realtime(t) ? t->pid : 0;
114 __entry->job = is_realtime(t) ? t->rt_param.job_params.job_no : 0; 114 __entry->job = is_realtime(t) ? get_user_job(t) : 0;
115 __entry->exec_time = get_exec_time(t); 115 __entry->exec_time = get_exec_time(t);
116 ), 116 ),
117 117
@@ -136,7 +136,7 @@ TRACE_EVENT(litmus_task_completion,
136 136
137 TP_fast_assign( 137 TP_fast_assign(
138 __entry->pid = t ? t->pid : 0; 138 __entry->pid = t ? t->pid : 0;
139 __entry->job = t ? t->rt_param.job_params.job_no : 0; 139 __entry->job = t ? get_user_job(t) : 0;
140 __entry->forced = forced; 140 __entry->forced = forced;
141 ), 141 ),
142 142
@@ -249,7 +249,7 @@ TRACE_EVENT(litmus_task_resume,
249 249
250 TP_fast_assign( 250 TP_fast_assign(
251 __entry->pid = t ? t->pid : 0; 251 __entry->pid = t ? t->pid : 0;
252 __entry->job = t ? t->rt_param.job_params.job_no : 0; 252 __entry->job = t ? get_user_job(t) : 0;
253 __entry->lid = lid; 253 __entry->lid = lid;
254 ), 254 ),
255 255