diff options
Diffstat (limited to 'kernel')
-rw-r--r-- | kernel/trace/ftrace.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/kernel/trace/ftrace.c b/kernel/trace/ftrace.c index 1eef6cf38d5..6b1e596bd3a 100644 --- a/kernel/trace/ftrace.c +++ b/kernel/trace/ftrace.c | |||
@@ -2901,6 +2901,10 @@ ftrace_set_regex(struct ftrace_ops *ops, unsigned char *buf, int len, | |||
2901 | 2901 | ||
2902 | mutex_lock(&ftrace_lock); | 2902 | mutex_lock(&ftrace_lock); |
2903 | ret = ftrace_hash_move(ops, enable, orig_hash, hash); | 2903 | ret = ftrace_hash_move(ops, enable, orig_hash, hash); |
2904 | if (!ret && ops->flags & FTRACE_OPS_FL_ENABLED | ||
2905 | && ftrace_enabled) | ||
2906 | ftrace_run_update_code(FTRACE_ENABLE_CALLS); | ||
2907 | |||
2904 | mutex_unlock(&ftrace_lock); | 2908 | mutex_unlock(&ftrace_lock); |
2905 | 2909 | ||
2906 | mutex_unlock(&ftrace_regex_lock); | 2910 | mutex_unlock(&ftrace_regex_lock); |