diff options
| author | Joel Fernandes <[email protected]> | 2016-11-28 14:35:23 -0800 |
|---|---|---|
| committer | Thomas Gleixner <[email protected]> | 2016-11-29 18:02:59 +0100 |
| commit | 80ec3552107ac16a836dbff4cf3c23fdd3256ee3 (patch) | |
| tree | 17e749f1f40fb67e5ce4ff41b707108919e27408 | |
| parent | 948a5312f41658f7b76a598a139ef1f4dea09ca9 (diff) | |
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 <[email protected]>
Signed-off-by: John Stultz <[email protected]>
Reviewed-by: Thomas Gleixner <[email protected]>
Acked-by: Steven Rostedt <[email protected]>
Cc: Prarit Bhargava <[email protected]>
Cc: Richard Cochran <[email protected]>
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Thomas Gleixner <[email protected]>
| -rw-r--r-- | kernel/trace/trace.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/kernel/trace/trace.c b/kernel/trace/trace.c index 8696ce6bf2f6..f7b64db285df 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 }; |