Skip to content

tracing: Introduce trace clock tai

Kurt Kanzenbach linux-doc lkml 2 versions – Applied

Status from this message: The following commit has been merged into the timers/core branch of tip:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 15 repliesApplied
  2. v13 patches 5 repliesSuperseded

Changes in v2 from the cover letter

- Add missing data_race() annotation for TAI offset which is accessed without any form of locking for KCSAN (Thomas)
- Add missing documentation entry for ktime_get_tai_fast_ns()
- Minor changelog tweaks

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3timekeeping: Introduce fast accessor to clock taiDocumentation/core-api/timekeeping.rst include/linux/timekeeping.h kernel/time/timekeeping.c+19 -013 replies
2/3tracing: Introduce trace clock taikernel/trace/trace.c+1 -00 replies
3/3tracing: Add documentation for trace clock taiDocumentation/trace/ftrace.rst+12 -02 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/3] tracing: Introduce trace clock tai

Hi,

the Linux kernel tracing infrastructure has support for using different clocks to generate timestamps for trace events. Especially in TSN networks it's useful to have TAI as trace clock, because the application scheduling is done in accordance to the network time, which is based on TAI. With a tai trace_clock in place, it becomes very convenient to correlate network activity with Linux kernel application traces.

However, there's no fast accessor for CLOCK_TAI yet. Therefore, patch #1 is adding one. Patch #2 introduces the clock and the last one adds documentation for it.

Changes since v1:

- Add missing data_race() annotation for TAI offset which is accessed without any form of locking for KCSAN (Thomas)
- Add missing documentation entry for ktime_get_tai_fast_ns()
- Minor changelog tweaks

Previous versions:

- https://lore.kernel.org/all/[email protected]/

Thanks,
Kurt

Kurt Kanzenbach (3):
timekeeping: Introduce fast accessor to clock tai
tracing: Introduce trace clock tai
tracing: Add documentation for trace clock tai

 Documentation/core-api/timekeeping.rst |  1 +
 Documentation/trace/ftrace.rst         | 12 ++++++++++++
 include/linux/timekeeping.h            |  1 +
 kernel/time/timekeeping.c              | 17 +++++++++++++++++
 kernel/trace/trace.c                   |  1 +
 5 files changed, 32 insertions(+)
Signature · 1 line
2.30.2