tracing: add "power-tracer": C/P state tracer to help power optimization
authorArjan van de Ven <arjan@infradead.org>
Mon, 24 Nov 2008 00:49:58 +0000 (16:49 -0800)
committerIngo Molnar <mingo@elte.hu>
Wed, 26 Nov 2008 07:29:32 +0000 (08:29 +0100)
commitf3f47a6768a29448866da4422b6f6bee485c947f
treeba4bf1b79cbd13412871eec50250294d7140fd09
parent509dceef6470442d8c7b8a43ec34125205840b3c
tracing: add "power-tracer": C/P state tracer to help power optimization

Impact: new "power-tracer" ftrace plugin

This patch adds a C/P-state ftrace plugin that will generate
detailed statistics about the C/P-states that are being used,
so that we can look at detailed decisions that the C/P-state
code is making, rather than the too high level "average"
that we have today.

An example way of using this is:

 mount -t debugfs none /sys/kernel/debug
 echo cstate > /sys/kernel/debug/tracing/current_tracer
 echo 1 > /sys/kernel/debug/tracing/tracing_enabled
 sleep 1
 echo 0 > /sys/kernel/debug/tracing/tracing_enabled
 cat /sys/kernel/debug/tracing/trace | perl scripts/trace/cstate.pl > out.svg

Signed-off-by: Arjan van de Ven <arjan@linux.intel.com>
Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/cpu/cpufreq/acpi-cpufreq.c
arch/x86/kernel/process.c
include/linux/ftrace.h
kernel/trace/Kconfig
kernel/trace/Makefile
kernel/trace/trace.h
kernel/trace/trace_power.c [new file with mode: 0644]
scripts/trace/power.pl [new file with mode: 0644]