Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 158479
b: refs/heads/master
c: 1b959e1
h: refs/heads/master
i:
  158477: b33802a
  158475: 2f01207
  158471: 3005f11
  158463: 7e9b408
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Sep 4, 2009
1 parent ab1f51f commit f303db6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 98277991a99734f3a31d638afb47d4484ac73e43
refs/heads/master: 1b959e18c4d6b4b981f887260b0f8e7939efa411
16 changes: 4 additions & 12 deletions trunk/kernel/trace/ring_buffer.c
Original file line number Diff line number Diff line change
Expand Up @@ -3132,10 +3132,8 @@ ring_buffer_peek(struct ring_buffer *buffer, int cpu, u64 *ts)
spin_unlock(&cpu_buffer->reader_lock);
local_irq_restore(flags);

if (event && event->type_len == RINGBUF_TYPE_PADDING) {
cpu_relax();
if (event && event->type_len == RINGBUF_TYPE_PADDING)
goto again;
}

return event;
}
Expand All @@ -3160,10 +3158,8 @@ ring_buffer_iter_peek(struct ring_buffer_iter *iter, u64 *ts)
event = rb_iter_peek(iter, ts);
spin_unlock_irqrestore(&cpu_buffer->reader_lock, flags);

if (event && event->type_len == RINGBUF_TYPE_PADDING) {
cpu_relax();
if (event && event->type_len == RINGBUF_TYPE_PADDING)
goto again;
}

return event;
}
Expand Down Expand Up @@ -3209,10 +3205,8 @@ ring_buffer_consume(struct ring_buffer *buffer, int cpu, u64 *ts)
out:
preempt_enable();

if (event && event->type_len == RINGBUF_TYPE_PADDING) {
cpu_relax();
if (event && event->type_len == RINGBUF_TYPE_PADDING)
goto again;
}

return event;
}
Expand Down Expand Up @@ -3302,10 +3296,8 @@ ring_buffer_read(struct ring_buffer_iter *iter, u64 *ts)
out:
spin_unlock_irqrestore(&cpu_buffer->reader_lock, flags);

if (event && event->type_len == RINGBUF_TYPE_PADDING) {
cpu_relax();
if (event && event->type_len == RINGBUF_TYPE_PADDING)
goto again;
}

return event;
}
Expand Down

0 comments on commit f303db6

Please sign in to comment.