From: Steven Rostedt <rostedt@goodmis.org>
To: "Masami Hiramatsu (Google)" <mhiramat@kernel.org>
Cc: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>,
linux-kernel@vger.kernel.org, linux-trace-kernel@vger.kernel.org
Subject: Re: [PATCH] tracing: Record trace_clock in last_boot_info
Date: Wed, 16 Apr 2025 11:12:27 -0400 [thread overview]
Message-ID: <20250416111227.34299b4e@batman.local.home> (raw)
In-Reply-To: <174481479787.2426861.10924329074660376176.stgit@mhiramat.tok.corp.google.com>
On Wed, 16 Apr 2025 23:46:38 +0900
"Masami Hiramatsu (Google)" <mhiramat@kernel.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
next prev parent reply other threads:[~2025-04-16 15:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-16 14:46 [PATCH] tracing: Record trace_clock in last_boot_info Masami Hiramatsu (Google)
2025-04-16 15:12 ` Steven Rostedt [this message]
2025-04-17 5:09 ` Masami Hiramatsu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250416111227.34299b4e@batman.local.home \
--to=rostedt@goodmis.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=mathieu.desnoyers@efficios.com \
--cc=mhiramat@kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox