Skip to contentSkip to conversation

ftrace: Provide trace clock monotonic raw

PATCH Superseded Drew Richardson 1 participant 1 message May 8, 2015 Tracing

v2 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 ftrace: Provide trace clock monotonic raw

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.

---
 kernel/trace/trace.c | 1 +
 1 file changed, 1 insertion(+)
kernel/trace/trace.c +1 -0
index 05330494a0df..458031c31a37 100644
@@ -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
 };
 
Signature · 1 line
2.1.4