mirror of
https://github.com/torvalds/linux.git
synced 2024-12-24 20:01:55 +00:00
6161352142
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>
21 lines
445 B
C
21 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);
|
|
|