Message ID | 1480372524-15181-7-git-send-email-john.stultz@linaro.org |
---|---|
State | New |
Headers | show |
On Mon, 28 Nov 2016 14:35:23 -0800 John Stultz <john.stultz@linaro.org> wrote: > From: Joel Fernandes <joelaf@google.com> > > 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. > Acked-by: Steven Rostedt <rostedt@goodmis.org> -- Steve > 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> > --- > 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 > }; >
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 };