From: Chris Wilson Date: Fri, 30 Mar 2018 15:01:32 +0000 (+0100) Subject: tracing: Mention trace_clock=global when warning about unstable clocks X-Git-Tag: v4.17-rc1~60^2~18 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=913ea4d0b1074bac4c42a43ac1677dc56bbbcc52;p=thirdparty%2Fkernel%2Flinux.git 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 Signed-off-by: Steven Rostedt (VMware) --- diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c index a2fd3893cc02a..515be03e30090 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; }