diff options
Diffstat (limited to 'kernel/trace/ftrace.c')
-rw-r--r-- | kernel/trace/ftrace.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index dcca9fa29bf4..b549b0f5b977 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -2941,8 +2941,12 @@ static void __enable_ftrace_function_probe(void) | |||
2941 | int ret; | 2941 | int ret; |
2942 | int i; | 2942 | int i; |
2943 | 2943 | ||
2944 | if (ftrace_probe_registered) | 2944 | if (ftrace_probe_registered) { |
2945 | /* still need to update the function call sites */ | ||
2946 | if (ftrace_enabled) | ||
2947 | ftrace_run_update_code(FTRACE_UPDATE_CALLS); | ||
2945 | return; | 2948 | return; |
2949 | } | ||
2946 | 2950 | ||
2947 | for (i = 0; i < FTRACE_FUNC_HASHSIZE; i++) { | 2951 | for (i = 0; i < FTRACE_FUNC_HASHSIZE; i++) { |
2948 | struct hlist_head *hhd = &ftrace_func_hash[i]; | 2952 | struct hlist_head *hhd = &ftrace_func_hash[i]; |