Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1532561

[tip:timers/core] trace: Add an option for boot clock as trace clock

From tip-bot for Joel Fernandes <tipbot@zytor.com>
Newsgroups linux.kernel
Subject [tip:timers/core] trace: Add an option for boot clock as trace clock
Date 2016-11-29 18:20 +0100
Message-ID <sIUeu-2Xs-45@gated-at.bofh.it> (permalink)
References <sICKB-89o-19@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Commit-ID:  80ec3552107ac16a836dbff4cf3c23fdd3256ee3
Gitweb:     http://git.kernel.org/tip/80ec3552107ac16a836dbff4cf3c23fdd3256ee3
Author:     Joel Fernandes <joelaf@google.com>
AuthorDate: Mon, 28 Nov 2016 14:35:23 -0800
Committer:  Thomas Gleixner <tglx@linutronix.de>
CommitDate: Tue, 29 Nov 2016 18:02:59 +0100

trace: Add an option for boot clock as trace clock

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.

Signed-off-by: Joel Fernandes <joelaf@google.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Cc: Prarit Bhargava <prarit@redhat.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Link: http://lkml.kernel.org/r/1480372524-15181-7-git-send-email-john.stultz@linaro.org
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>

---
 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
 };
 

Back to linux.kernel | Previous | NextPrevious in thread | Find similar | Unroll thread


Thread

[PATCH 6/7] trace: Add an option for boot clock as trace clock John Stultz <john.stultz@linaro.org> - 2016-11-28 23:40 +0100
  Re: [PATCH 6/7] trace: Add an option for boot clock as trace clock Steven Rostedt <rostedt@goodmis.org> - 2016-11-29 00:10 +0100
  [tip:timers/core] trace: Add an option for boot clock as trace  clock tip-bot for Joel Fernandes <tipbot@zytor.com> - 2016-11-29 18:20 +0100

csiph-web