* [PATCHv2] ftrace: Provide trace clock monotonic raw
@ 2015-05-08 1:13 Drew Richardson
0 siblings, 0 replies; only message in thread
From: Drew Richardson @ 2015-05-08 1:13 UTC (permalink / raw)
To: Steven Rostedt, Ingo Molnar
Cc: linux-kernel, Thomas Gleixner, Peter Zijlstra, Mathieu Desnoyers,
John Stultz, Wade Cherry, Pawel Moll, Drew Richardson
Expose the NMI safe accessor to the monotonic raw clock to the
tracer. The mono clock was added with commit
1b3e5c0936046e7e023149ddc8946d21c2ea20eb. Although the monotonic raw
clock cannot be used to compare time between different machines, it is
not perturbed by ntp.
Signed-off-by: Drew Richardson <drew.richardson@arm.com>
---
kernel/trace/trace.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c
index 05330494a0df..458031c31a37 100644
--- a/kernel/trace/trace.c
+++ b/kernel/trace/trace.c
@@ -876,6 +876,7 @@ static struct {
{ trace_clock_jiffies, "uptime", 0 },
{ trace_clock, "perf", 1 },
{ ktime_get_mono_fast_ns, "mono", 1 },
+ { ktime_get_raw_fast_ns, "mono_raw", 1 },
ARCH_TRACE_CLOCKS
};
--
2.1.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-05-08 1:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-08 1:13 [PATCHv2] ftrace: Provide trace clock monotonic raw Drew Richardson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®