aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/Perf-Trace-Util/lib
diff options
context:
space:
mode:
authorChris Wilson <[email protected]>2018-03-30 16:01:31 +0100
committerSteven Rostedt (VMware) <[email protected]>2018-04-06 08:56:47 -0400
commit3fd49c9e48e2c09a18902695716a0d1aa387b6f4 (patch)
tree7514c1bb8a499d5b8d29f460c59dbe71555b6cee /tools/perf/scripts/python/Perf-Trace-Util/lib
parenta6fb6012ed4ec0450389693421a954a4c3740bec (diff)
tracing: Default to using trace_global_clock if sched_clock is unstable
Across suspend, we may see a very large drift in timestamps if the sched clock is unstable, prompting the global trace's ringbuffer code to warn and suggest switching to the global clock. Preempt this request by detecting when the sched clock is unstable (determined during late_initcall) and automatically switching the default clock over to trace_global_clock. This should prevent requiring user interaction to resolve warnings such as: Delta way too big! 18446743856563626466 ts=18446744054496180323 write stamp = 197932553857 If you just came from a suspend/resume, please switch to the trace global clock: echo global > /sys/kernel/debug/tracing/trace_clock Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Chris Wilson <[email protected]> Signed-off-by: Steven Rostedt (VMware) <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib')
0 files changed, 0 insertions, 0 deletions