Re: [PATCH] trace: Default to using trace_global_clock if sched_clock is unstable
From: Steven Rostedt
Date: Fri Mar 30 2018 - 10:37:45 EST
On Fri, 30 Mar 2018 15:07:53 +0100
Chris Wilson <chris@xxxxxxxxxxxxxxxxxx> wrote:
> Sure, I was mainly floating the idea of trying to pick sensible
> defaults. Unstable clocks are quite rare nowadays, the ones we have in
> the lab are a pair of Core2 Duo.
I still have a box too ;-)
I'm not so against having global_clock become default if the TSC is
unstable. But there needs to be a printk warning (not a WARN, but
something like:
Warning: TSC unstable, switching tracing_clock default to "global"
If you want to keep local, then add "trace_clock=local" on the
kernel command line.
-- Steve