-
Notifications
You must be signed in to change notification settings - Fork 90
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
trace-read: parse high-precision timestamp from drm_vblank_event
When reading drm_vblank_event events, parse the following optional fields: - 'time': a possibly more accurate timestamp better representing the actual HW vblank timestamp - 'high_prec': true if 'time' is a high-precision HW timestamp from a drm driver with this particular capability Fields are only parsed if the ftrace clock was set to `mono`, otherwise the timestamps can't be aligned in a meaningful way. With ftrace, the tracing clock can be set to `mono like this: `echo mono > /sys/kernel/tracing/trace_clock` Also add helper functions to retrieve the high-precision timestamp.
- Loading branch information
Showing
2 changed files
with
47 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters