tracing: Fix timer tracing
commit ede1b4290781ae82ccf0f2ecc6dada8d3dd35779 upstream.
PowerTOP would like to be able to trace timers.
Unfortunately, the current timer tracing is not very useful: the
actual timer function is not recorded in the trace at the start
of timer execution.
Although this is recorded for timer "start" time (when it gets
armed), this is not useful; most timers get started early, and a
tracer like PowerTOP will never see this event, but will only
see the actual running of the timer.
This patch just adds the function to the timer tracing; I've
verified with PowerTOP that now it can get useful information
Signed-off-by: Arjan van de Ven <firstname.lastname@example.org>
Cc: Steven Rostedt <email@example.com>
Cc: Frederic Weisbecker <firstname.lastname@example.org>
Cc: Peter Zijlstra <email@example.com>
Signed-off-by: Ingo Molnar <firstname.lastname@example.org>
Signed-off-by: Greg Kroah-Hartman <email@example.com>
1 file changed