public inbox for linux-trace-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* How to display a ktime value as trace timestamp in trace output?
@ 2024-01-31 14:47 David Howells
  2024-02-29 22:05 ` Steven Rostedt
  0 siblings, 1 reply; 2+ messages in thread
From: David Howells @ 2024-01-31 14:47 UTC (permalink / raw)
  To: Steven Rostedt; +Cc: dhowells, linux-trace-kernel

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


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-02-29 22:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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 is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox