diff options
author | Glenn Elliott <gelliott@cs.unc.edu> | 2014-01-14 16:51:23 -0500 |
---|---|---|
committer | Glenn Elliott <gelliott@cs.unc.edu> | 2014-01-14 16:51:23 -0500 |
commit | 7e1db96d01247ca7a3b23ca8ac40fc195ef4a149 (patch) | |
tree | 9987c6aafb6fd6a27fde088ec6c2ad4725651cd9 /include/trace/events/litmus.h | |
parent | 1a4b5f42a5121d960abe215b8f3b55a10614705a (diff) |
sched_trace: Trace PGM node type parameters
Diffstat (limited to 'include/trace/events/litmus.h')
-rw-r--r-- | include/trace/events/litmus.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/trace/events/litmus.h b/include/trace/events/litmus.h index 0b4eac386dfe..0822328144bc 100644 --- a/include/trace/events/litmus.h +++ b/include/trace/events/litmus.h | |||
@@ -225,6 +225,27 @@ TRACE_EVENT(litmus_sys_release, | |||
225 | TP_printk("SynRelease(%Lu) at %Lu\n", __entry->rel, __entry->when) | 225 | TP_printk("SynRelease(%Lu) at %Lu\n", __entry->rel, __entry->when) |
226 | ); | 226 | ); |
227 | 227 | ||
228 | /* Tracing PGM node parameters */ | ||
229 | TRACE_EVENT(litmus_pgm_param, | ||
230 | |||
231 | TP_PROTO(struct task_struct *t), | ||
232 | |||
233 | TP_ARGS(t), | ||
234 | |||
235 | TP_STRUCT__entry( | ||
236 | __field( pid_t, pid ) | ||
237 | __field( pgm_node_type_t, node_type ) | ||
238 | __field( pid_t, graph_pid ) | ||
239 | ), | ||
240 | |||
241 | TP_fast_assign( | ||
242 | __entry->pid = t ? t->pid : 0; | ||
243 | __entry->node_type = t ? t->rt_params.task_params.pgm_type : PGM_NOT_A_NODE; | ||
244 | __entry->graph_pid = t ? t->tgid : 0; | ||
245 | ) | ||
246 | |||
247 | TP_printk("pgm node (%u, node type = %d) in graph (%u)\n", | ||
248 | __entry->pid, __entry->node_type, __entry->graph_pid); | ||
228 | /* | 249 | /* |
229 | * Tracing PGM-adjusted job release | 250 | * Tracing PGM-adjusted job release |
230 | */ | 251 | */ |