ring-buffer: consolidate interface of rb_buffer_peek()
authorRobert Richter <robert.richter@amd.com>
Fri, 31 Jul 2009 12:58:04 +0000 (14:58 +0200)
committerSteven Rostedt <rostedt@goodmis.org>
Thu, 10 Sep 2009 03:54:02 +0000 (23:54 -0400)
commitd8eeb2d3b26d25c44c10f28430e2157a2d20bd1d
tree8308f1be1706a6605387289683e7b11dc40ecda6
parentd28daf923ac5e4a0d7cecebae56f3e339189366b
ring-buffer: consolidate interface of rb_buffer_peek()

rb_buffer_peek() operates with struct ring_buffer_per_cpu *cpu_buffer
only. Thus, instead of passing variables buffer and cpu it is better
to use cpu_buffer directly. This also reduces the risk of races since
cpu_buffer is not calculated twice.

Signed-off-by: Robert Richter <robert.richter@amd.com>
LKML-Reference: <1249045084-3028-1-git-send-email-robert.richter@amd.com>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/ring_buffer.c