summaryrefslogtreecommitdiff
path: root/include/trace
diff options
context:
space:
mode:
authorJunjie Wu <junjiew@codeaurora.org>2014-12-19 18:00:36 -0800
committerDavid Keitel <dkeitel@codeaurora.org>2016-03-23 21:24:30 -0700
commit0ea6cc5218918b3566adde2a2f2bee5959423e16 (patch)
treea1ec3db2bb8056ec85b7d1bb8df9b672a61157b4 /include/trace
parent4425c47db654987b7d0d6bb295704250d712ae41 (diff)
tracing: power: Add trace events for core control
Add trace events for core control module. Change-Id: I36da5381709f81ef1ba82025cd9cf8610edef3fc Signed-off-by: Junjie Wu <junjiew@codeaurora.org>
Diffstat (limited to 'include/trace')
-rw-r--r--include/trace/events/power.h43
1 files changed, 43 insertions, 0 deletions
diff --git a/include/trace/events/power.h b/include/trace/events/power.h
index 1d1979616a5c..44228e7238cc 100644
--- a/include/trace/events/power.h
+++ b/include/trace/events/power.h
@@ -1082,6 +1082,49 @@ DEFINE_EVENT(perf_cl_peak_timer_status, perf_cl_peak_exit_timer_stop,
timer_rate, mode)
);
+TRACE_EVENT(core_ctl_eval_need,
+
+ TP_PROTO(unsigned int cpu, unsigned int old_need,
+ unsigned int new_need, unsigned int updated),
+ TP_ARGS(cpu, old_need, new_need, updated),
+ TP_STRUCT__entry(
+ __field(u32, cpu)
+ __field(u32, old_need)
+ __field(u32, new_need)
+ __field(u32, updated)
+ ),
+ TP_fast_assign(
+ __entry->cpu = cpu;
+ __entry->old_need = old_need;
+ __entry->new_need = new_need;
+ __entry->updated = updated;
+ ),
+ TP_printk("cpu=%u, old_need=%u, new_need=%u, updated=%u", __entry->cpu,
+ __entry->old_need, __entry->new_need, __entry->updated)
+);
+
+TRACE_EVENT(core_ctl_set_busy,
+
+ TP_PROTO(unsigned int cpu, unsigned int busy,
+ unsigned int old_is_busy, unsigned int is_busy),
+ TP_ARGS(cpu, busy, old_is_busy, is_busy),
+ TP_STRUCT__entry(
+ __field(u32, cpu)
+ __field(u32, busy)
+ __field(u32, old_is_busy)
+ __field(u32, is_busy)
+ ),
+ TP_fast_assign(
+ __entry->cpu = cpu;
+ __entry->busy = busy;
+ __entry->old_is_busy = old_is_busy;
+ __entry->is_busy = is_busy;
+ ),
+ TP_printk("cpu=%u, busy=%u, old_is_busy=%u, new_is_busy=%u",
+ __entry->cpu, __entry->busy, __entry->old_is_busy,
+ __entry->is_busy)
+);
+
#endif /* _TRACE_POWER_H */
/* This part must be outside protection */