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


Groups > linux.kernel > #1527082

[PATCH v2 2/2] trace: Add an option for boot clock as trace clock

From Joel Fernandes <joelaf@google.com>
Newsgroups linux.kernel
Subject [PATCH v2 2/2] trace: Add an option for boot clock as trace clock
Date 2016-11-21 23:20 +0100
Message-ID <sG56q-77c-3@gated-at.bofh.it> (permalink)
References <sG56q-77c-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


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 <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Ingo Molnar <mingo@redhat.com>
Signed-off-by: Joel Fernandes <joelaf@google.com>
---
 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

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


Thread

[PATCH v2 2/2] trace: Add an option for boot clock as trace clock Joel Fernandes <joelaf@google.com> - 2016-11-21 23:20 +0100
  Re: [PATCH v2 2/2] trace: Add an option for boot clock as trace  clock Steven Rostedt <rostedt@goodmis.org> - 2016-11-21 23:30 +0100

csiph-web