OSDN Git Service

UPSTREAM: trace: Add an option for boot clock as trace clock
authorJoel Fernandes <joelaf@google.com>
Mon, 28 Nov 2016 22:35:23 +0000 (14:35 -0800)
committerJoel Fernandes <joelaf@google.com>
Tue, 29 Nov 2016 02:46:46 +0000 (18:46 -0800)
commit5fe7d45f445841c6261e8695428a532db0e0377c
tree776256b6c310836a600aeef8a20d06f92abbb39c
parentaf80d7c3e91450fbcad01c497b394bf8ab01d37c
UPSTREAM: 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.

Bug: b/33184060

Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: Richard Cochran <richardcochran@gmail.com>
Cc: Prarit Bhargava <prarit@redhat.com>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Signed-off-by: Joel Fernandes <joelaf@google.com>
Signed-off-by: John Stultz <john.stultz@linaro.org>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace.c