mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH 0/2] Introduce a fast boot clock and add it as trace clock
@ 2016-11-21 22:04 Joel Fernandes
  2016-11-21 22:04 ` [PATCH 1/2] timekeeping: Introduce a fast boot clock derived from fast monotonic clock Joel Fernandes
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Joel Fernandes @ 2016-11-21 22:04 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 which solves both these issues.

Changes since RFC:
- Moved the ktime_t offsets to the end of tk_fast
- use unlikely to optimize for the monotonic case

[1] https://lkml.org/lkml/2016/11/20/75 

Joel Fernandes (2):
  timekeeping: Introduce a fast boot clock derived from fast monotonic
    clock
  trace: Add an option for boot clock as trace clock

 kernel/time/timekeeping.c | 36 ++++++++++++++++++++++++++++++------
 kernel/trace/trace.c      |  1 +
 2 files changed, 31 insertions(+), 6 deletions(-)

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] 6+ messages in thread

end of thread, other threads:[~2016-11-21 22:59 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-21 22:04 [PATCH 0/2] Introduce a fast boot clock and add it as trace clock Joel Fernandes
2016-11-21 22:04 ` [PATCH 1/2] timekeeping: Introduce a fast boot clock derived from fast monotonic clock Joel Fernandes
2016-11-21 22:04 ` [PATCH 2/2] trace: Add an option for boot clock as trace clock Joel Fernandes
2016-11-21 22:48   ` kbuild test robot
2016-11-21 22:59     ` Joel Fernandes
2016-11-21 22:06 ` [PATCH 0/2] Introduce a fast boot clock and add it " Joel Fernandes

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

Powered by JetHome