* 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
* Re: How to display a ktime value as trace timestamp in trace output?
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
0 siblings, 0 replies; 2+ messages in thread
From: Steven Rostedt @ 2024-02-29 22:05 UTC (permalink / raw)
To: David Howells; +Cc: linux-trace-kernel
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.
>
^ 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