diff options
author | Antti P Miettinen <amiettinen@nvidia.com> | 2012-04-02 14:27:21 +0300 |
---|---|---|
committer | Rohan Somvanshi <rsomvanshi@nvidia.com> | 2012-04-12 22:57:43 -0700 |
commit | 8873b7662b507bd006bc5054ac08310c98aecbdc (patch) | |
tree | 149d70322905bbc0717c65a40f1824735335e44d /include | |
parent | 8f76645dc5aacdfd9398a13963a3b177821713d2 (diff) |
tracing: Add tracepoints for cluster switch
Simple trace points for measuring cluster switch latencies.
Bug 958262
Change-Id: Ia1e5e13131d5e55aaa0a44e9e8b5196539df54e7
Signed-off-by: Antti P Miettinen <amiettinen@nvidia.com>
Reviewed-on: http://git-master/r/93841
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Juha Tukkinen <jtukkinen@nvidia.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/trace/events/power.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/include/trace/events/power.h b/include/trace/events/power.h index 63031aa5b6dd..9c9699a2b457 100644 --- a/include/trace/events/power.h +++ b/include/trace/events/power.h @@ -52,6 +52,11 @@ enum { POWER_CPU_SCALE_DONE, }; +enum { + POWER_CPU_CLUSTER_START, + POWER_CPU_CLUSTER_DONE, +}; + #endif TRACE_EVENT(cpu_hotplug, @@ -99,6 +104,24 @@ TRACE_EVENT(cpu_scale, (unsigned long)__entry->state) ); +TRACE_EVENT(cpu_cluster, + + TP_PROTO(int state), + + TP_ARGS(state), + + TP_STRUCT__entry( + __field(u64, state) + ), + + TP_fast_assign( + __entry->state = state; + ), + + TP_printk("state=%lu", + (unsigned long)__entry->state) +); + DEFINE_EVENT(cpu, cpu_frequency, TP_PROTO(unsigned int frequency, unsigned int cpu_id), |