Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754781AbcKUWNM (ORCPT ); Mon, 21 Nov 2016 17:13:12 -0500 Received: from mail-pg0-f46.google.com ([74.125.83.46]:36290 "EHLO mail-pg0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753817AbcKUWNL (ORCPT ); Mon, 21 Nov 2016 17:13:11 -0500 From: Joel Fernandes To: linux-kernel@vger.kernel.org Cc: Joel Fernandes , Steven Rostedt , Thomas Gleixner , John Stultz , Ingo Molnar Subject: [PATCH v2 2/2] trace: Add an option for boot clock as trace clock Date: Mon, 21 Nov 2016 14:12:50 -0800 Message-Id: <1479766370-31311-2-git-send-email-joelaf@google.com> X-Mailer: git-send-email 2.8.0.rc3.226.g39d4020 In-Reply-To: <1479766370-31311-1-git-send-email-joelaf@google.com> References: <1479766370-31311-1-git-send-email-joelaf@google.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 868 Lines: 27 Unlike monotonic clock, boot clock as a trace clock will account for time spent in suspend useful for tracing suspend/resume. This uses earlier introduced infrastructure for using the fast boot clock. Cc: Steven Rostedt Cc: Thomas Gleixner Cc: John Stultz Cc: Ingo Molnar Signed-off-by: Joel Fernandes --- kernel/trace/trace.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 8696ce6..f7b64db 100644 --- a/kernel/trace/trace.c +++ b/kernel/trace/trace.c @@ -1125,6 +1125,7 @@ static struct { { trace_clock, "perf", 1 }, { ktime_get_mono_fast_ns, "mono", 1 }, { ktime_get_raw_fast_ns, "mono_raw", 1 }, + { ktime_get_boot_fast_ns, "boot", 1 }, ARCH_TRACE_CLOCKS }; -- 2.8.0.rc3.226.g39d4020