mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH v3 0/3] timekeeping: Introduce a fast boot clock derived from fast monotonic clock
@ 2016-11-24 20:20 Joel Fernandes
  2016-11-24 20:20 ` [PATCH v3 1/3] timekeeping: Add a fast and NMI safe boot clock Joel Fernandes
                   ` (2 more replies)
  0 siblings, 3 replies; 7+ messages in thread
From: Joel Fernandes @ 2016-11-24 20:20 UTC (permalink / raw)
  To: linux-kernel
  Cc: Joel Fernandes, Steven Rostedt, Thomas Gleixner, John Stultz,
	Ingo Molnar

Currently no trace clock can account for suspend time, using monotonic during
tracing in the suspend path means the trace times wont be advaced. Using the
boot clock with ktime_get_with_offset is not an option due to live locking
concerns in NMI context as suggested by Thomas [1].

These patches add a fast boot clock based on fast monotonic clock and adds a
trace clock based on it. Instead of bloating the optimal case [2], these
patches present a simple approach.  Thanks Thomas for making documentation
suggestions for effects of this approach [3].

[1] https://lkml.org/lkml/2016/11/20/75
[2] https://www.spinics.net/lists/kernel/msg2389485.html
[3] https://lkml.org/lkml/2016/11/23/166

Joel Fernandes (3):
  timekeeping: Add a fast and NMI safe boot clock
  trace: Add an option for boot clock as trace clock
  trace: Update documentation for mono, mono_raw and boot clock

 Documentation/trace/ftrace.txt | 20 ++++++++++++++++++++
 include/linux/timekeeping.h    |  1 +
 kernel/time/timekeeping.c      | 28 ++++++++++++++++++++++++++++
 kernel/trace/trace.c           |  1 +
 4 files changed, 50 insertions(+)

Cc: Steven Rostedt <rostedt@goodmis.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Ingo Molnar <mingo@redhat.com>
-- 
2.8.0.rc3.226.g39d4020

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2017-01-07  4:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-24 20:20 [PATCH v3 0/3] timekeeping: Introduce a fast boot clock derived from fast monotonic clock Joel Fernandes
2016-11-24 20:20 ` [PATCH v3 1/3] timekeeping: Add a fast and NMI safe boot clock Joel Fernandes
2017-01-07  0:48   ` John Stultz
2017-01-07  2:39     ` Joel Fernandes
2017-01-07  4:02       ` John Stultz
2016-11-24 20:20 ` [PATCH v3 2/3] trace: Add an option for boot clock as trace clock Joel Fernandes
2016-11-24 20:20 ` [PATCH v3 3/3] trace: Update documentation for mono, mono_raw and boot clock Joel Fernandes

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®