From: Steven Rostedt <rostedt@goodmis.org>
To: David Howells <dhowells@redhat.com>
Cc: linux-trace-kernel@vger.kernel.org
Subject: Re: How to display a ktime value as trace timestamp in trace output?
Date: Thu, 29 Feb 2024 17:05:11 -0500 [thread overview]
Message-ID: <20240229170511.045cc3d0@gandalf.local.home> (raw)
In-Reply-To: <2217765.1706712451@warthog.procyon.org.uk>
On Wed, 31 Jan 2024 14:47:31 +0000
David Howells <dhowells@redhat.com> wrote:
> Hi Steven,
Hi David,
Sorry, I just noticed this email as it was buried in other unread emails :-p
>
> I have a tracepoint in AF_RXRPC that displays information about a timeout I'm
> going to set. I have the timeout in a ktime_t as an absolute time. Is there
> a way to display this in the trace output such that it looks like a trace
> timestamp and can be (roughly) correlated with the displayed timestamps?
Have you tried the other clocks?
{ ktime_get_mono_fast_ns, "mono", 1 },
{ ktime_get_raw_fast_ns, "mono_raw", 1 },
{ ktime_get_boot_fast_ns, "boot", 1 },
The above are the functions used for the tracing timestamps.
-- Steve
>
> I tried subtracting ktime_get_read() - ktime_get_boottime() from it and
> displaying the result, but it looked about one and a bit seconds out from the
> trace timestamp.
>
prev parent reply other threads:[~2024-02-29 22:03 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-31 14:47 How to display a ktime value as trace timestamp in trace output? David Howells
2024-02-29 22:05 ` Steven Rostedt [this message]
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=20240229170511.045cc3d0@gandalf.local.home \
--to=rostedt@goodmis.org \
--cc=dhowells@redhat.com \
--cc=linux-trace-kernel@vger.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