lkml.org 
[lkml]   [2014]   [Jul]   [11]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[patch 55/55] ftrace: Provide trace clocks mono and mono_raw
    Expose the new NMI safe accessors to clock monotonic and monotonic raw
    to the tracer.

    Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
    Cc: Steven Rostedt <rostedt@goodmis.org>
    Cc: Peter Zijlstra <peterz@infradead.org>
    Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
    ---
    kernel/trace/trace.c | 12 +++++++-----
    1 file changed, 7 insertions(+), 5 deletions(-)

    Index: tip/kernel/trace/trace.c
    ===================================================================
    --- tip.orig/kernel/trace/trace.c
    +++ tip/kernel/trace/trace.c
    @@ -806,11 +806,13 @@ static struct {
    const char *name;
    int in_ns; /* is this clock in nanoseconds? */
    } trace_clocks[] = {
    - { trace_clock_local, "local", 1 },
    - { trace_clock_global, "global", 1 },
    - { trace_clock_counter, "counter", 0 },
    - { trace_clock_jiffies, "uptime", 1 },
    - { trace_clock, "perf", 1 },
    + { trace_clock_local, "local", 1 },
    + { trace_clock_global, "global", 1 },
    + { trace_clock_counter, "counter", 0 },
    + { trace_clock_jiffies, "uptime", 1 },
    + { trace_clock, "perf", 1 },
    + { ktime_get_mono_fast_ns, "mono", 1 },
    + { ktime_get_raw_ns, "mono_raw", 1 },
    ARCH_TRACE_CLOCKS
    };




    \
     
     \ /
      Last update: 2014-07-12 01:21    [W:4.035 / U:0.216 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site