]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ring-buffer: Show what clock function is used on timestamp errors
authorSteven Rostedt <rostedt@goodmis.org>
Tue, 24 Mar 2026 00:22:12 +0000 (20:22 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 25 Mar 2026 02:21:15 +0000 (22:21 -0400)
commit23d1cfc0216e28140cb0c914814c03d127a3ad6e
tree833a9448f7d76be75be44250272f75e086c27013
parentdc1d9408c961c1c4d4b3b99a1d9390c17e13de71
ring-buffer: Show what clock function is used on timestamp errors

The testing for tracing was triggering a timestamp count issue that was
always off by one. This has been happening for some time but has never
been reported by anyone else. It was finally discovered to be an issue
with the "uptime" (jiffies) clock that happened to be traced and the
internal recursion caused the discrepancy. This would have been much
easier to solve if the clock function being used was displayed when the
error was detected.

Add the clock function to the error output.

Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
Link: https://patch.msgid.link/20260323202212.479bb288@gandalf.local.home
Acked-by: Masami Hiramatsu (Google) <mhiramat@kernel.org>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
kernel/trace/ring_buffer.c