[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250416111227.34299b4e@batman.local.home>
Date: Wed, 16 Apr 2025 11:12:27 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: "Masami Hiramatsu (Google)" <mhiramat@...nel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@...icios.com>,
linux-kernel@...r.kernel.org, linux-trace-kernel@...r.kernel.org
Subject: Re: [PATCH] tracing: Record trace_clock in last_boot_info
On Wed, 16 Apr 2025 23:46:38 +0900
"Masami Hiramatsu (Google)" <mhiramat@...nel.org> wrote:
> Record trace_clock information in the trace_scratch area and show
> it via `last_boot_info` so that reader can docode the timestamp
> correctly.
> With this change, the first line of the last_boot_info becomes
> trace_clock which is used when the trace was recorded. E.g.
>
> /sys/kernel/tracing/instances/boot_mapped # cat last_boot_info
> trace_clock: mono
> ffffffff81000000 [kernel]
>
As this will not go in this cycle, which means tools may be built
around this.
Either we put it at the end, or we make it:
# trace_clock: mono
ffffffff81000000 [kernel]
Where "info" like "trace_clock" will be in the comment section, and all
non comments will be addresses.
Tooling can then just ignore the comment section, or read it for more
information.
-- Steve
Powered by blists - more mailing lists