Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 234530
b: refs/heads/master
c: 4a0b166
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt authored and Steven Rostedt committed Mar 10, 2011
1 parent cfb50a4 commit 008cc42
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: 9a24470b2826e4665b1484836c7ae6aba1ddea32
refs/heads/master: 4a0b1665db09cf2da9ad7d0f12da386373c10bfa
9 changes: 9 additions & 0 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,11 @@ __acquires(kernel_lock)
tracing_reset_online_cpus(tr);

current_trace = type;

/* If we expanded the buffers, make sure the max is expanded too */
if (ring_buffer_expanded && type->use_max_tr)
ring_buffer_resize(max_tr.buffer, trace_buf_size);

/* the test is responsible for initializing and enabling */
pr_info("Testing tracer %s: ", type->name);
ret = type->selftest(type, tr);
Expand All @@ -791,6 +796,10 @@ __acquires(kernel_lock)
/* Only reset on passing, to avoid touching corrupted buffers */
tracing_reset_online_cpus(tr);

/* Shrink the max buffer again */
if (ring_buffer_expanded && type->use_max_tr)
ring_buffer_resize(max_tr.buffer, 1);

printk(KERN_CONT "PASSED\n");
}
#endif
Expand Down

0 comments on commit 008cc42

Please sign in to comment.