diff options
author | Robert Richter <robert.richter@amd.com> | 2009-01-07 17:32:11 +0300 |
---|---|---|
committer | Robert Richter <robert.richter@amd.com> | 2009-01-08 00:47:40 +0300 |
commit | 465634adc1d09b490c8ee31885575be39d375d53 (patch) | |
tree | b6c119d0112b428104dbd4edbd23925d717d7119 /drivers/oprofile/cpu_buffer.c | |
parent | 1acda878e20ea0cd3708ba66dca67d52eaafdd2b (diff) | |
download | linux-465634adc1d09b490c8ee31885575be39d375d53.tar.xz |
ring_buffer: fix ring_buffer_event_length()
Function ring_buffer_event_length() provides an interface to detect
the length of data stored in an entry. However, the length contains
offsets depending on the internal usage. This makes it unusable. This
patch fixes this and now ring_buffer_event_length() returns the
alligned length that has been used in ring_buffer_lock_reserve().
Cc: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Robert Richter <robert.richter@amd.com>
Diffstat (limited to 'drivers/oprofile/cpu_buffer.c')
0 files changed, 0 insertions, 0 deletions