提交 1b3e5c09 编写于 作者: T Thomas Gleixner 提交者: John Stultz

ftrace: Provide trace clocks monotonic

Expose the new NMI safe accessor to clock monotonic to the tracer.
Signed-off-by: NThomas 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: NJohn Stultz <john.stultz@linaro.org>
上级 4396e058
...@@ -806,11 +806,12 @@ static struct { ...@@ -806,11 +806,12 @@ static struct {
const char *name; const char *name;
int in_ns; /* is this clock in nanoseconds? */ int in_ns; /* is this clock in nanoseconds? */
} trace_clocks[] = { } trace_clocks[] = {
{ trace_clock_local, "local", 1 }, { trace_clock_local, "local", 1 },
{ trace_clock_global, "global", 1 }, { trace_clock_global, "global", 1 },
{ trace_clock_counter, "counter", 0 }, { trace_clock_counter, "counter", 0 },
{ trace_clock_jiffies, "uptime", 1 }, { trace_clock_jiffies, "uptime", 1 },
{ trace_clock, "perf", 1 }, { trace_clock, "perf", 1 },
{ ktime_get_mono_fast_ns, "mono", 1 },
ARCH_TRACE_CLOCKS ARCH_TRACE_CLOCKS
}; };
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册