summaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorChris Wilson <chris@chris-wilson.co.uk>2018-03-30 16:01:32 +0100
committerSteven Rostedt (VMware) <rostedt@goodmis.org>2018-04-06 08:56:47 -0400
commit913ea4d0b1074bac4c42a43ac1677dc56bbbcc52 (patch)
treea9eb41e8b6c0a27276fbefd6e517c6565a148056 /kernel
parent3fd49c9e48e2c09a18902695716a0d1aa387b6f4 (diff)
downloadlinux-913ea4d0b1074bac4c42a43ac1677dc56bbbcc52.tar.gz
linux-913ea4d0b1074bac4c42a43ac1677dc56bbbcc52.tar.bz2
linux-913ea4d0b1074bac4c42a43ac1677dc56bbbcc52.zip
tracing: Mention trace_clock=global when warning about unstable clocks
Mention the alternative of adding trace_clock=global to the kernel command line when we detect that we've used an unstable clock across a suspend/resume cycle. Link: http://lkml.kernel.org/r/20180330150132.16903-2-chris@chris-wilson.co.uk Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk> Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
Diffstat (limited to 'kernel')
-rw-r--r--kernel/trace/ring_buffer.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c
index a2fd3893cc02..515be03e3009 100644
--- a/kernel/trace/ring_buffer.c
+++ b/kernel/trace/ring_buffer.c
@@ -2731,7 +2731,8 @@ rb_handle_timestamp(struct ring_buffer_per_cpu *cpu_buffer,
sched_clock_stable() ? "" :
"If you just came from a suspend/resume,\n"
"please switch to the trace global clock:\n"
- " echo global > /sys/kernel/debug/tracing/trace_clock\n");
+ " echo global > /sys/kernel/debug/tracing/trace_clock\n"
+ "or add trace_clock=global to the kernel command line\n");
info->add_timestamp = 1;
}