diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-05-29 13:40:18 (GMT) |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-07-21 02:30:48 (GMT) |
commit | a4543a2fa9ef31d6d0f854a4e14f8f82e7996d8d (patch) | |
tree | 20ce0568e66867059279578471fe574d18c21cad /Documentation/hwmon/nct6683 | |
parent | 9826b2733a4399149072058a11f611357479229d (diff) | |
download | linux-a4543a2fa9ef31d6d0f854a4e14f8f82e7996d8d.tar.xz |
ring-buffer: Get timestamp after event is allocated
Move the capturing of the timestamp to after an event is allocated.
If the event is not a commit (where it is an event that preempted
another event), then no timestamp is needed, because the delta of
nested events is always zero.
If the event starts on a new page, no delta needs to be calculated
as the full timestamp will be added to the page header, and the
event will have a delta of zero.
Now if the event requires a time extend (the delta does not fit
in the 27 bit delta slot in the header), then the event is discarded,
the length is extended to hold the TIME_EXTEND event that allows for
a 59 bit delta, and the commit is tried again.
If the event can't be discarded (another event came in after it),
then the TIME_EXTEND is added directly to the allocated event and
the rest of the event is given padding.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'Documentation/hwmon/nct6683')
0 files changed, 0 insertions, 0 deletions