From: David Howells <dhowells@redhat.com>
To: Steven Rostedt <rostedt@goodmis.org>
Cc: dhowells@redhat.com, linux-trace-kernel@vger.kernel.org
Subject: How to display a ktime value as trace timestamp in trace output?
Date: Wed, 31 Jan 2024 14:47:31 +0000 [thread overview]
Message-ID: <2217765.1706712451@warthog.procyon.org.uk> (raw)
Hi Steven,
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?
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.
Thanks,
David
next reply other threads:[~2024-01-31 14:47 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-01-31 14:47 David Howells [this message]
2024-02-29 22:05 ` How to display a ktime value as trace timestamp in trace output? Steven Rostedt
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=2217765.1706712451@warthog.procyon.org.uk \
--to=dhowells@redhat.com \
--cc=linux-trace-kernel@vger.kernel.org \
--cc=rostedt@goodmis.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