Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140709
b: refs/heads/master
c: b5db03c
h: refs/heads/master
i:
  140707: 0863554
v: v3
  • Loading branch information
Arnaldo Carvalho de Melo authored and Ingo Molnar committed Feb 9, 2009
1 parent 2fd5964 commit 911a3ca
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: 3861a17bcc0af815f684c6178bc9ec2d790c350e
refs/heads/master: b5db03c4355e568f1567758287b30a6a262d5057
9 changes: 9 additions & 0 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,15 @@ void unregister_tracer(struct tracer *type)

found:
*t = (*t)->next;

if (type == current_trace && tracer_enabled) {
tracer_enabled = 0;
tracing_stop();
if (current_trace->stop)
current_trace->stop(&global_trace);
current_trace = &nop_trace;
}

if (strlen(type->name) != max_tracer_type_len)
goto out;

Expand Down

0 comments on commit 911a3ca

Please sign in to comment.