mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-23 01:10:04 +00:00
![Arjan van de Ven](/assets/img/avatar_default.png)
This patch converts the existing power tracer into an event tracer, so that power events (C states and frequency changes) can be tracked via "perf". This also removes the perl script that was used to demo the tracer; its functionality is being replaced entirely with timechart. Signed-off-by: Arjan van de Ven <arjan@linux.intel.com> Acked-by: Peter Zijlstra <a.p.zijlstra@chello.nl> Cc: Paul Mackerras <paulus@samba.org> Cc: Frederic Weisbecker <fweisbec@gmail.com> LKML-Reference: <20090912130542.6d314860@infradead.org> Signed-off-by: Ingo Molnar <mingo@elte.hu>
20 lines
445 B
C
20 lines
445 B
C
/*
|
|
* Power trace points
|
|
*
|
|
* Copyright (C) 2009 Arjan van de Ven <arjan@linux.intel.com>
|
|
*/
|
|
|
|
#include <linux/string.h>
|
|
#include <linux/types.h>
|
|
#include <linux/workqueue.h>
|
|
#include <linux/sched.h>
|
|
#include <linux/module.h>
|
|
#include <linux/slab.h>
|
|
|
|
#define CREATE_TRACE_POINTS
|
|
#include <trace/events/power.h>
|
|
|
|
EXPORT_TRACEPOINT_SYMBOL_GPL(power_start);
|
|
EXPORT_TRACEPOINT_SYMBOL_GPL(power_end);
|
|
EXPORT_TRACEPOINT_SYMBOL_GPL(power_frequency);
|
|
|