• A
    tracing: Fix timer tracing · ede1b429
    Arjan van de Ven 提交于
    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
    about timers.
    Signed-off-by: NArjan van de Ven <arjan@linux.intel.com>
    Cc: xiaoguangrong@cn.fujitsu.com
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: Frederic Weisbecker <fweisbec@gmail.com>
    Cc: Peter Zijlstra <a.p.zijlstra@chello.nl>
    Cc: <stable@kernel.org> # .35.x, .34.x, .33.x
    LKML-Reference: <4C6C5FA9.3000405@linux.intel.com>
    Signed-off-by: NIngo Molnar <mingo@elte.hu>
    ede1b429
timer.h 7.4 KB