diff options
author | Morten Rasmussen <Morten.Rasmussen@arm.com> | 2015-01-29 17:37:48 +0900 |
---|---|---|
committer | Seung-Woo Kim <sw0312.kim@samsung.com> | 2016-12-14 13:41:28 +0900 |
commit | 21c529ab3143355494775ede6e1961d3dd9ee2ec (patch) | |
tree | 5d949b25a7d02323d450d8c951c79362bd61810e /include/trace | |
parent | 5257e61484e0ac28b1fe1b1847cd5d8d176b6073 (diff) |
sched: Add HMP task migration ftrace event
Adds ftrace event for tracing task migrations using HMP
optimized scheduling.
Signed-off-by: Morten Rasmussen <Morten.Rasmussen@arm.com>
[k.kozlowski: rebased on 4.1, no signed-off-by of previous committer]
Signed-off-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
Diffstat (limited to 'include/trace')
-rw-r--r-- | include/trace/events/sched.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/trace/events/sched.h b/include/trace/events/sched.h index 7e9c42031ac2..7d6021ac367a 100644 --- a/include/trace/events/sched.h +++ b/include/trace/events/sched.h @@ -679,6 +679,34 @@ TRACE_EVENT(sched_task_usage_ratio, __entry->comm, __entry->pid, __entry->ratio) ); + +/* + * Tracepoint for HMP (CONFIG_SCHED_HMP) task migrations. + */ +TRACE_EVENT(sched_hmp_migrate, + + TP_PROTO(struct task_struct *tsk, int dest, int force), + + TP_ARGS(tsk, dest, force), + + TP_STRUCT__entry( + __array(char, comm, TASK_COMM_LEN) + __field(pid_t, pid) + __field(int, dest) + __field(int, force) + ), + + TP_fast_assign( + memcpy(__entry->comm, tsk->comm, TASK_COMM_LEN); + __entry->pid = tsk->pid; + __entry->dest = dest; + __entry->force = force; + ), + + TP_printk("comm=%s pid=%d dest=%d force=%d", + __entry->comm, __entry->pid, + __entry->dest, __entry->force) +); #endif /* _TRACE_SCHED_H */ /* This part must be outside protection */ |