Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140926
b: refs/heads/master
c: 1027fcb
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt committed Mar 13, 2009
1 parent ec57eed commit b428628
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: a123c52b46a1f84bcec3dc963351896c6d6afaf7
refs/heads/master: 1027fcb206a0fb8348e63aff078c74bdee1c2698
5 changes: 4 additions & 1 deletion trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -2391,8 +2391,10 @@ int tracing_update_buffers(void)
{
int ret = 0;

mutex_lock(&trace_types_lock);
if (!ring_buffer_expanded)
ret = tracing_resize_ring_buffer(trace_buf_size);
mutex_unlock(&trace_types_lock);

return ret;
}
Expand All @@ -2412,14 +2414,15 @@ static int tracing_set_tracer(const char *buf)
struct tracer *t;
int ret = 0;

mutex_lock(&trace_types_lock);

if (!ring_buffer_expanded) {
ret = tracing_resize_ring_buffer(trace_buf_size);
if (ret < 0)
return ret;
ret = 0;
}

mutex_lock(&trace_types_lock);
for (t = trace_types; t; t = t->next) {
if (strcmp(t->name, buf) == 0)
break;
Expand Down

0 comments on commit b428628

Please sign in to comment.