Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 131542
b: refs/heads/master
c: 0c5119c
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt committed Feb 19, 2009
1 parent a8ba826 commit ed079f2
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 5b058bcde961bf28678a70e44c079107313543b6
refs/heads/master: 0c5119c1e655e0719a69601b1049acdd5ec1c125
9 changes: 9 additions & 0 deletions trunk/kernel/trace/trace_selftest.c
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,20 @@ static int trace_test_buffer(struct trace_array *tr, unsigned long *count)

cnt = ring_buffer_entries(tr->buffer);

/*
* The trace_test_buffer_cpu runs a while loop to consume all data.
* If the calling tracer is broken, and is constantly filling
* the buffer, this will run forever, and hard lock the box.
* We disable the ring buffer while we do this test to prevent
* a hard lock up.
*/
tracing_off();
for_each_possible_cpu(cpu) {
ret = trace_test_buffer_cpu(tr, cpu);
if (ret)
break;
}
tracing_on();
__raw_spin_unlock(&ftrace_max_lock);
local_irq_restore(flags);

Expand Down

0 comments on commit ed079f2

Please sign in to comment.