Skip to content

timekeeping: Introduce a fast boot clock derived from fast monotonic clock

Joel Fernandes lkml 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest3 patches 3 repliesIn review
  2. v2 posting 2/22 patches 5 repliesSuperseded
  3. v2 posting 1/20 of 2 patches 0 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v12 patches2 repliesSuperseded

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3timekeeping: Add a fast and NMI safe boot clockinclude/linux/timekeeping.h kernel/time/timekeeping.c+30 -03 replies
2/3trace: Add an option for boot clock as trace clockkernel/trace/trace.c+1 -00 replies
3/3trace: Update documentation for mono, mono_raw and boot clockDocumentation/trace/ftrace.txt+20 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/3] timekeeping: Introduce a fast boot clock derived from fast monotonic clock

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 <[email protected]>
Cc Thomas Gleixner <[email protected]>
Cc John Stultz <[email protected]>
Cc Ingo Molnar <[email protected]>
Signature · 1 line
2.8.0.rc3.226.g39d4020