Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d09da868 authored by Devesh Jhunjhunwala's avatar Devesh Jhunjhunwala
Browse files

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: default avatarDevesh Jhunjhunwala <deveshj@codeaurora.org>
parent 20a5b840
Loading
Loading
Loading
Loading
+7 −0
Original line number Diff line number Diff line
@@ -340,6 +340,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),