Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 140690
b: refs/heads/master
c: dac7494
h: refs/heads/master
v: v3
  • Loading branch information
Steven Rostedt authored and Ingo Molnar committed Feb 5, 2009
1 parent 3915657 commit bd625b2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 15 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: 7be421510b91491d5aa5a29fa1005712039b95af
refs/heads/master: dac74940289f350c2590bec92737833bad608541
29 changes: 15 additions & 14 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -522,23 +522,24 @@ int register_tracer(struct tracer *type)
tracing_selftest_running = false;
mutex_unlock(&trace_types_lock);

if (!ret && default_bootup_tracer) {
if (!strncmp(default_bootup_tracer, type->name,
BOOTUP_TRACER_SIZE)) {
printk(KERN_INFO "Starting tracer '%s'\n",
type->name);
/* Do we want this tracer to start on bootup? */
tracing_set_tracer(type->name);
default_bootup_tracer = NULL;
/* disable other selftests, since this will break it. */
tracing_selftest_disabled = 1;
if (ret || !default_bootup_tracer)
goto out_unlock;

if (strncmp(default_bootup_tracer, type->name, BOOTUP_TRACER_SIZE))
goto out_unlock;

printk(KERN_INFO "Starting tracer '%s'\n", type->name);
/* Do we want this tracer to start on bootup? */
tracing_set_tracer(type->name);
default_bootup_tracer = NULL;
/* disable other selftests, since this will break it. */
tracing_selftest_disabled = 1;
#ifdef CONFIG_FTRACE_STARTUP_TEST
printk(KERN_INFO "Disabling FTRACE selftests due"
" to running tracer '%s'\n", type->name);
printk(KERN_INFO "Disabling FTRACE selftests due to running tracer '%s'\n",
type->name);
#endif
}
}

out_unlock:
lock_kernel();
return ret;
}
Expand Down

0 comments on commit bd625b2

Please sign in to comment.