Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 312353
b: refs/heads/master
c: a5fb833
h: refs/heads/master
i:
  312351: b602c90
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Jun 28, 2012
1 parent be77e06 commit a19a78f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 6d158a813efcd09661c23f16ddf7e2ff834cb20c
refs/heads/master: a5fb833172eca69136e9ee1ada778e404086ab8a
4 changes: 4 additions & 0 deletions trunk/kernel/trace/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -3239,6 +3239,10 @@ rb_get_reader_page(struct ring_buffer_per_cpu *cpu_buffer)
if (cpu_buffer->commit_page == cpu_buffer->reader_page)
goto out;

/* Don't bother swapping if the ring buffer is empty */
if (rb_num_of_entries(cpu_buffer) == 0)
goto out;

/*
* Reset the reader page to size zero.
*/
Expand Down

0 comments on commit a19a78f

Please sign in to comment.