Skip to content

Commit

Permalink
Merge branch 'tracing-fixes-for-linus' of git://git.kernel.org/pub/sc…
Browse files Browse the repository at this point in the history
…m/linux/kernel/git/tip/linux-2.6-tip

* 'tracing-fixes-for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux-2.6-tip:
  kmemtrace: Fix up tracer registration
  tracing: Fix infinite recursion in ftrace_update_pid_func()
  • Loading branch information
Linus Torvalds committed Oct 5, 2009
2 parents 46302b4 + f9ac5a6 commit 0f26ec6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions kernel/trace/ftrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,11 @@ static void ftrace_update_pid_func(void)
if (ftrace_trace_function == ftrace_stub)
return;

#ifdef CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST
func = ftrace_trace_function;
#else
func = __ftrace_trace_function;
#endif

if (ftrace_pid_trace) {
set_ftrace_pid_function(func);
Expand Down
2 changes: 1 addition & 1 deletion kernel/trace/kmemtrace.c
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ static int __init init_kmem_tracer(void)
return 1;
}

if (!register_tracer(&kmem_tracer)) {
if (register_tracer(&kmem_tracer) != 0) {
pr_warning("Warning: could not register the kmem tracer\n");
return 1;
}
Expand Down

0 comments on commit 0f26ec6

Please sign in to comment.