trace: power: add trace_clock_set_parent
authorColin Cross <ccross@android.com>
Wed, 9 May 2012 23:09:50 +0000 (16:09 -0700)
committerArve Hjønnevåg <arve@android.com>
Mon, 1 Jul 2013 20:40:45 +0000 (13:40 -0700)
commit1bbda60cc146fa5c2ba1c0cadec140b51a229ffe
tree44a3d9cd0a70992ca9f54ba6be86eb456a683702
parentc90ab94236d5450ebcd8afcd309d22af5eea2a3d
trace: power: add trace_clock_set_parent

Adds a new trace event to be called from clk_set_parent.  Some
cpufreq drivers, including Tegra, reparent the cpu clock to a
slower clock while the main pll is relocking, tracing
clk_set_parent allows traces to show how for long the cpu is
running slower.

Uses a separate TRACE_EVENT instead of the clock event class to
allow the event to contain string names for the child and the
parent.

Signed-off-by: Colin Cross <ccross@android.com>
include/trace/events/power.h