summaryrefslogtreecommitdiff
path: root/libs/gui/ConsumerBase.cpp
diff options
context:
space:
mode:
author Aaron Schulman <aschulman@google.com> 2015-02-25 08:37:09 -0800
committer Aaron Schulman <aschulman@google.com> 2015-02-25 17:50:23 +0000
commitc2c6ecd1195481f5813a721a7d20a73c0795c135 (patch)
treed65fd61d179c5643ce21bae0271ac77667981219 /libs/gui/ConsumerBase.cpp
parentd80268ba19f9217c5459a2952580090ef84a7b78 (diff)
Added Voltage and Current regulator ftrace events to atrace
Tracing the state of the voltage and current regulators enables a developer to attribute power consumption measurements to specific perhipherals and cores. Unlike other indirect methods of tracing when peripherals and cores are toggled, the regulator ftrace event indicates the exact point in time when the kernel switches on or off the device. For example, in the following trace, a developer can see exactly when the krait2 core starts receiving power, and and when the voltage is set for voltage scaling. mpdecision-2172 [000] ...1 1566.665481: regulator_enable: name=krait2 mpdecision-2172 [000] ...1 1566.665493: regulator_enable_delay: name=krait2 mpdecision-2172 [000] ...1 1566.665495: regulator_enable_complete: name=krait2 <...>-4133 [002] ...1 1566.666891: regulator_set_voltage: name=krait2 (1075000-1100000) Change-Id: I964d50be89bbfc554d2ab3e32a18514d1b1e70f4 Signed-off-by: Aaron Schulman <aschulman@google.com>
Diffstat (limited to 'libs/gui/ConsumerBase.cpp')
0 files changed, 0 insertions, 0 deletions