OSDN Git Service

clk: Add support to dump state of all clocks into ftrace
authorAmit Nischal <anischal@codeaurora.org>
Mon, 6 Mar 2017 11:10:58 +0000 (16:40 +0530)
committerAmit Nischal <anischal@codeaurora.org>
Tue, 2 May 2017 03:51:47 +0000 (09:21 +0530)
commit0f70c6b867619fd35cfa4a4683c8985657b80cc3
tree476fe99f9ae418dd75ec2d6a8339550675ebb926
parent1ccabf65ac2fe97fbd2f2ca3a06905f52c16e50c
clk: Add support to dump state of all clocks into ftrace

Add clk_state event to record the state of all the clocks
into ftrace. The clock event could be triggered by using
the "trace_clocks" debugfs entry and it would dump the
current state of all clocks in ftrace logs.

Change-Id: I28b6574fe1d96472833a93e7b251dbba6c6eae49
Signed-off-by: Amit Nischal <anischal@codeaurora.org>
drivers/clk/clk.c
include/trace/events/clk.h