Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 116646
b: refs/heads/master
c: b5ad384
h: refs/heads/master
v: v3
  • Loading branch information
Frédéric Weisbecker authored and Ingo Molnar committed Oct 14, 2008
1 parent e20c8e3 commit b548a78
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 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: d13744cd6e3fef373a3fe656ac349b4e7c49ff79
refs/heads/master: b5ad384e79add1d87fff54070000dadcf218ffab
15 changes: 10 additions & 5 deletions trunk/kernel/trace/trace.c
Original file line number Diff line number Diff line change
Expand Up @@ -2990,7 +2990,7 @@ struct dentry *tracing_init_dentry(void)
#include "trace_selftest.c"
#endif

static __init void tracer_init_debugfs(void)
static __init int tracer_init_debugfs(void)
{
struct dentry *d_tracer;
struct dentry *entry;
Expand Down Expand Up @@ -3078,6 +3078,7 @@ static __init void tracer_init_debugfs(void)
#ifdef CONFIG_SYSPROF_TRACER
init_tracer_sysprof_debugfs(d_tracer);
#endif
return 0;
}

int trace_vprintk(unsigned long ip, const char *fmt, va_list args)
Expand Down Expand Up @@ -3504,17 +3505,20 @@ __init static int tracer_alloc_buffers(void)
pages, trace_nr_entries, (long)TRACE_ENTRY_SIZE);
pr_info(" actual entries %ld\n", global_trace.entries);

tracer_init_debugfs();

trace_init_cmdlines();

register_tracer(&nop_trace);
#ifdef CONFIG_BOOT_TRACER
register_tracer(&boot_tracer);
current_trace = &boot_tracer;
current_trace->init(&global_trace);
#else
current_trace = &nop_trace;
#endif

/* All seems OK, enable tracing */
global_trace.ctrl = tracer_enabled;
tracing_disabled = 0;

atomic_notifier_chain_register(&panic_notifier_list,
&trace_panic_notifier);

Expand Down Expand Up @@ -3548,4 +3552,5 @@ __init static int tracer_alloc_buffers(void)
}
return ret;
}
fs_initcall(tracer_alloc_buffers);
early_initcall(tracer_alloc_buffers);
fs_initcall(tracer_init_debugfs);

0 comments on commit b548a78

Please sign in to comment.