aboutsummaryrefslogtreecommitdiffstats
path: root/kernel/rtmutex-debug.h
diff options
context:
space:
mode:
authorSteven Rostedt <srostedt@redhat.com>2009-05-01 18:44:45 -0400
committerSteven Rostedt <rostedt@goodmis.org>2009-05-05 14:28:08 -0400
commit778c55d44eb4f5f658915ed631d68ed9d1ac3ad1 (patch)
treefb410e06820276a499a1ff116e02f0ab8a1f20ad /kernel/rtmutex-debug.h
parente4906eff9e6fbd2d311abcbcc53d5a531773c982 (diff)
ring-buffer: record page entries in buffer page descriptor
Currently, when the ring buffer writer overflows the buffer and must write over non consumed data, we increment the overrun counter by reading the entries on the page we are about to overwrite. This reads the entries one by one. This is not very effecient. This patch adds another entry counter into each buffer page descriptor that keeps track of the number of entries on the page. Now on overwrite, the overrun counter simply needs to add the number of entries that is on the page it is about to overwrite. [ Impact: speed up of ring buffer in overwrite mode ] Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/rtmutex-debug.h')
0 files changed, 0 insertions, 0 deletions