tracing: power: Define clock_set_rate_complete trace event

clk_set_rate event involves a variable overhead due to a
number of additional operations needed (regulator set voltage
operations, etc). Since the overhead may differ based on a
number of factors, add a clk_set_rate event so as to enable
recording of clk_set_rate operation latency.

Change-Id: Ie5c0ab1929f32e08b04d2a255e631c95a68e49fc
Signed-off-by: Devesh Jhunjhunwala <deveshj@codeaurora.org>
This commit is contained in:
Devesh Jhunjhunwala 2015-04-08 15:42:30 -07:00
parent 6d1276acf1
commit 2e7ce64042

View file

@ -222,6 +222,13 @@ DEFINE_EVENT(clock, clock_set_rate,
TP_ARGS(name, state, cpu_id)
);
DEFINE_EVENT(clock, clock_set_rate_complete,
TP_PROTO(const char *name, unsigned int state, unsigned int cpu_id),
TP_ARGS(name, state, cpu_id)
);
TRACE_EVENT(clock_set_parent,
TP_PROTO(const char *name, const char *parent_name),