diff options
author | Steven Rostedt <srostedt@redhat.com> | 2010-08-16 11:17:30 -0400 |
---|---|---|
committer | Steven Rostedt <rostedt@goodmis.org> | 2010-08-16 11:17:30 -0400 |
commit | d244b6bd41e09ecbb09c738cc2c108be227398c8 (patch) | |
tree | 848c6a8a0d6f83929daf43d63e241dc8072066ac /kernel/trace/ring_buffer.c | |
parent | da5cabf80e2433131bf0ed8993abc0f7ea618c73 (diff) | |
parent | 1aa54bca6ee0d07ebcafb8ca8074b624d80724aa (diff) |
Merge branch 'tip/perf/urgent-3' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-2.6-trace into trace/tip/perf/urgent-4
Conflicts:
kernel/trace/trace_events.c
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
Diffstat (limited to 'kernel/trace/ring_buffer.c')
-rw-r--r-- | kernel/trace/ring_buffer.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/kernel/trace/ring_buffer.c b/kernel/trace/ring_buffer.c index 3632ce87674..19cccc3c302 100644 --- a/kernel/trace/ring_buffer.c +++ b/kernel/trace/ring_buffer.c @@ -3846,6 +3846,9 @@ int ring_buffer_read_page(struct ring_buffer *buffer, rpos = reader->read; pos += size; + if (rpos >= commit) + break; + event = rb_reader_event(cpu_buffer); size = rb_event_length(event); } while (len > size); |