Re: Nested events with zero deltas, can use absolute timestamps instead?
From: Steven Rostedt
Date: Fri Mar 29 2019 - 12:53:03 EST
On Fri, 29 Mar 2019 09:30:36 -0700
Jason Behmer <jbehmer@xxxxxxxxxx> wrote:
> Hi Steven and Tom,
> I recently ran into a problem with correlating timestamps across CPUs and
> finally was able to track it down to the fact that nested events are given
> zero deltas, and so are placed earlier in time than they actually occurred.
>
> I'm on an older version and wanted to check if this problem still exists on
> head and it appears that it does, but I also ran into Tom's commits adding
> the ability to use absolute timestamps instead of deltas. It seems like
> this option could fix the problem.
>
> It seems like ideally nested events could just always use these absolute
> timestamps instead of zero deltas, as it appears the implementation of
> absolute timestamps is flexible enough to have a mix of deltas and
> absolutes in the stream of events. A fix that would require less work
> would be for me to just turn on absolute timestamps for my entire trace,
> but I see that the file to do that isn't yet writable to support that.
>
> Before trying to do either of these things I wanted to run it by both of
> you to see if there's something I'm missing here. What do you think?
>
Yes this is an issue I need to fix. I have some ideas on how to handle
this. I may need to go about looking into them again.
It may be possible to add an option to have all nested events use the
full timestamp as well.
I'll have to think about this a bit more.
-- Steve