ftrace: Provide trace clocks monotonic
authorThomas Gleixner <tglx@linutronix.de>
Wed, 16 Jul 2014 21:05:25 +0000 (21:05 +0000)
committerJohn Stultz <john.stultz@linaro.org>
Wed, 23 Jul 2014 22:01:55 +0000 (15:01 -0700)
Expose the new NMI safe accessor to clock monotonic 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>
Signed-off-by: John Stultz <john.stultz@linaro.org>
kernel/trace/trace.c

index f243444a37729ae5c17ee0654b2b606acfedaae7..84e2b45c09345daeb167fc207d87c028dab45d32 100644 (file)
@@ -806,11 +806,12 @@ 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 },
        ARCH_TRACE_CLOCKS
 };