diff options
author | Arjan van de Ven <arjan@infradead.org> | 2008-11-23 19:49:58 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2008-11-26 02:29:32 -0500 |
commit | f3f47a6768a29448866da4422b6f6bee485c947f (patch) | |
tree | ba4bf1b79cbd13412871eec50250294d7140fd09 /kernel/trace/Kconfig | |
parent | 509dceef6470442d8c7b8a43ec34125205840b3c (diff) |
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>
Diffstat (limited to 'kernel/trace/Kconfig')
-rw-r--r-- | kernel/trace/Kconfig | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/kernel/trace/Kconfig b/kernel/trace/Kconfig index 620feadff67a..d151aab48ed6 100644 --- a/kernel/trace/Kconfig +++ b/kernel/trace/Kconfig | |||
@@ -217,6 +217,17 @@ config BRANCH_TRACER | |||
217 | 217 | ||
218 | Say N if unsure. | 218 | Say N if unsure. |
219 | 219 | ||
220 | config POWER_TRACER | ||
221 | bool "Trace power consumption behavior" | ||
222 | depends on DEBUG_KERNEL | ||
223 | depends on X86 | ||
224 | select TRACING | ||
225 | help | ||
226 | This tracer helps developers to analyze and optimize the kernels | ||
227 | power management decisions, specifically the C-state and P-state | ||
228 | behavior. | ||
229 | |||
230 | |||
220 | config STACK_TRACER | 231 | config STACK_TRACER |
221 | bool "Trace max stack" | 232 | bool "Trace max stack" |
222 | depends on HAVE_FUNCTION_TRACER | 233 | depends on HAVE_FUNCTION_TRACER |