tracing: Introduce trace clock tai
authorKurt Kanzenbach <kurt@linutronix.de>
Thu, 14 Apr 2022 09:18:04 +0000 (11:18 +0200)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 27 Apr 2022 21:19:30 +0000 (17:19 -0400)
A fast/NMI safe accessor for CLOCK_TAI has been introduced.
Use it for adding the additional trace clock "tai".

Link: https://lkml.kernel.org/r/20220414091805.89667-3-kurt@linutronix.de
Signed-off-by: Kurt Kanzenbach <kurt@linutronix.de>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/trace.c

index 400d3e9..087740f 100644 (file)
@@ -1542,6 +1542,7 @@ static struct {
        { ktime_get_mono_fast_ns,       "mono",         1 },
        { ktime_get_raw_fast_ns,        "mono_raw",     1 },
        { ktime_get_boot_fast_ns,       "boot",         1 },
+       { ktime_get_tai_fast_ns,        "tai",          1 },
        ARCH_TRACE_CLOCKS
 };