Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751686AbbEDOlR (ORCPT ); Mon, 4 May 2015 10:41:17 -0400 Received: from foss.arm.com ([217.140.101.70]:42730 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751030AbbEDOlL (ORCPT ); Mon, 4 May 2015 10:41:11 -0400 From: Drew Richardson To: Steven Rostedt , Ingo Molnar Cc: linux-kernel@vger.kernel.org, Thomas Gleixner , Peter Zijlstra , Mathieu Desnoyers , John Stultz , Wade Cherry , Drew Richardson Subject: [PATCH] ftrace: Provide trace clock monotonic raw Date: Mon, 4 May 2015 07:41:09 -0700 Message-Id: <1430750469-16428-1-git-send-email-drew.richardson@arm.com> X-Mailer: git-send-email 2.1.4 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1022 Lines: 31 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 perterbed by ntp. Signed-off-by: Drew Richardson --- 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 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/