diff options
author | Steven Rostedt (Red Hat) <rostedt@goodmis.org> | 2015-05-29 10:29:10 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2015-07-20 22:30:49 -0400 |
commit | 7d75e6833b579adb3de2c7b917de1204eeafea47 (patch) | |
tree | 4da33dac5a0c679ac3b4398bc09f7e4d2cf9c8c5 /kernel/events/callchain.c | |
parent | a4543a2fa9ef31d6d0f854a4e14f8f82e7996d8d (diff) | |
download | linux-7d75e6833b579adb3de2c7b917de1204eeafea47.tar.bz2 |
ring-buffer: Make sure event has enough room for extend and padding
Now that events only add time extends after it is committed, in case
an event comes in before it can discard the allocated event, the time
extend needs to be stored within the event. If the event is bigger
than then size needed for the time extend, padding must be added.
The minimum padding size is 8 bytes. Thus if the event is 12 bytes
(size of time extend + 4), there will not be enough room to add both
the time extend and padding. Make sure all events are either 8 bytes
or 16 or more bytes.
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/events/callchain.c')
0 files changed, 0 insertions, 0 deletions