aboutsummaryrefslogtreecommitdiffstats
path: root/include/trace/events/litmus.h
diff options
context:
space:
mode:
authorChristopher Kenna <cjk@cs.unc.edu>2012-05-06 21:18:33 -0400
committerJonathan Herman <hermanjl@cs.unc.edu>2012-09-27 15:25:58 -0400
commit45d0f315ec64bdac3ba0723be07e83b7df7652f8 (patch)
treee18a178a5ddf40995d6414ca4b6a2b9522c97b0f /include/trace/events/litmus.h
parent63fabd87c18d0da2d727ae79ae864d6064f9e7e0 (diff)
Add task_exit event that records max exec time under color plugin.
Conflicts: include/litmus/rt_param.h litmus/sched_color.c
Diffstat (limited to 'include/trace/events/litmus.h')
-rw-r--r--include/trace/events/litmus.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/include/trace/events/litmus.h b/include/trace/events/litmus.h
index b3a8f166e65f..c3a92f8ec6ef 100644
--- a/include/trace/events/litmus.h
+++ b/include/trace/events/litmus.h
@@ -275,6 +275,28 @@ TRACE_EVENT(litmus_sys_release,
275); 275);
276 276
277/* 277/*
278 * Trace task exit
279 */
280TRACE_EVENT(litmus_task_exit,
281
282 TP_PROTO(struct task_struct *t),
283
284 TP_ARGS(t),
285
286 TP_STRUCT__entry(
287 __field( pid_t, pid )
288 __field( unsigned long long, max_exec_time )
289 ),
290
291 TP_fast_assign(
292 __entry->pid = t ? t->pid : 0;
293 __entry->max_exec_time = t ? t->rt_param.max_exec_time : 0;
294 ),
295
296 TP_printk("(%u) exit\n", __entry->pid)
297);
298
299/*
278 * Containers 300 * Containers
279 */ 301 */
280TRACE_EVENT(litmus_container_param, 302TRACE_EVENT(litmus_container_param,