Skip to content

Commit ee02a2e

Browse files
Steven RostedtIngo Molnar
authored andcommitted
ftrace: make filtered functions effective on setting
Impact: set filtered functions at time the filter is set It can be confusing when the set_filter_functions is set (or cleared) and the functions being recorded by the dynamic tracer does not match. This patch causes the code to be updated if the function tracer is enabled and the filter is changed. Signed-off-by: Steven Rostedt <srostedt@redhat.com> Signed-off-by: Ingo Molnar <mingo@elte.hu>
1 parent 982c350 commit ee02a2e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎kernel/trace/ftrace.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1194,7 +1194,7 @@ ftrace_regex_release(struct inode *inode, struct file *file, int enable)
11941194

11951195
mutex_lock(&ftrace_sysctl_lock);
11961196
mutex_lock(&ftrace_start_lock);
1197-
if (iter->filtered && ftrace_start_up && ftrace_enabled)
1197+
if (ftrace_start_up && ftrace_enabled)
11981198
ftrace_run_update_code(FTRACE_ENABLE_CALLS);
11991199
mutex_unlock(&ftrace_start_lock);
12001200
mutex_unlock(&ftrace_sysctl_lock);

0 commit comments

Comments
 (0)