diff options
author | Ingo Molnar <mingo@elte.hu> | 2011-11-11 08:19:37 +0100 |
---|---|---|
committer | Ingo Molnar <mingo@elte.hu> | 2011-11-11 08:19:37 +0100 |
commit | efc96737bd82b508794d2b28061a12af4a3f7766 (patch) | |
tree | e9fe4982967b74c0d25a35a2d7f7c62d8be98a47 /kernel/trace/ftrace.c | |
parent | x86, perf: Add a build-time sanity test to the x86 decoder (diff) | |
parent | tracing/latency: Fix header output for latency tracers (diff) | |
download | linux-efc96737bd82b508794d2b28061a12af4a3f7766.tar.xz linux-efc96737bd82b508794d2b28061a12af4a3f7766.zip |
Merge branch 'tip/perf/core' of git://git.kernel.org/pub/scm/linux/kernel/git/rostedt/linux-trace into perf/core
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r-- | kernel/trace/ftrace.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 900b409543db..b1e8943fed1d 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c @@ -152,7 +152,6 @@ void clear_ftrace_function(void) ftrace_pid_function = ftrace_stub; } -#undef CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST #ifndef CONFIG_HAVE_FUNCTION_TRACE_MCOUNT_TEST /* * For those archs that do not test ftrace_trace_stop in their @@ -1212,7 +1211,9 @@ ftrace_hash_move(struct ftrace_ops *ops, int enable, if (!src->count) { free_ftrace_hash_rcu(*dst); rcu_assign_pointer(*dst, EMPTY_HASH); - return 0; + /* still need to update the function records */ + ret = 0; + goto out; } /* |