New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Give monotonic time offset from real time. #1916
Comments
Sounds good. I think we can add something in the info file where we have record data and elapsed time. |
Hi @MatthewKhouzam, You explained this issue but I actually couldn't fully understand what the problem is. Could you please explain the following questions?
Thanks. |
Hi @MatthewKhouzam, you may want to have #1923. Please have a look. This patch simply prints the UTC offset, but we might be able to provide a tool that does post processing for each |
Another idea is that you can modify uftrace parser of tracecompass so that it can understand this new info field and use it for automatic time adjustment. |
In some cases, there is a requirement to get the time offset between UTC time and our timestamp from the given clock source, CLOCK_MONOTONIC by default. This patch provides an additional info to provide UTC time offset in the output of uftrace info. This number can be used to make time adjustment easier for external tools such as tracecompass[1]. Closes: namhyung#1916 [1] https://eclipse.dev/tracecompass Requested-by: Matthew Khouzam <matthew.khouzam@gmail.com> Signed-off-by: Honggyu Kim <honggyu.kp@gmail.com>
In some cases, there is a requirement to get the time offset between UTC time and our timestamp from the given clock source, CLOCK_MONOTONIC by default. This patch provides an additional info to provide UTC time offset in the output of uftrace info. This number can be used to make time adjustment easier for external tools such as tracecompass[1]. Closes: namhyung#1916 [1] https://eclipse.dev/tracecompass Requested-by: Matthew Khouzam <matthew.khouzam@gmail.com> Signed-off-by: Honggyu Kim <honggyu.kp@gmail.com>
In some cases, there is a requirement to get the time offset between UTC time and our timestamp from the given clock source, CLOCK_MONOTONIC by default. This patch provides an additional info to provide UTC time offset in the output of uftrace info. This number can be used to make time adjustment easier for external tools such as tracecompass[1]. Closes: #1916 [1] https://eclipse.dev/tracecompass Requested-by: Matthew Khouzam <matthew.khouzam@gmail.com> Signed-off-by: Honggyu Kim <honggyu.kp@gmail.com>
It would be nice to have the option to get the offset between
clock_monotonic
andclock_realtime
. There is a simple-ish solution.When uftrace starts, record quickly both
clock_realtime
andclock_monotonic
. In task.txt, the timestamps can then be offset and the traces can then be correlated with lttng traces as well as system logs.The text was updated successfully, but these errors were encountered: