tracing: Do not show filter file for ftrace internal events

The filter file in the ftrace internal events, like in
/sys/kernel/tracing/events/ftrace/function/filter is not attached to any
functionality. Do not create them as they are meaningless.

In the future, if an ftrace internal event gets filter functionality, then
it will need to create it directly.
Reviewed-by: default avatarNamhyung Kim <namhyung@kernel.org>
Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
parent af3dcb53
...@@ -2007,16 +2007,18 @@ event_create_dir(struct dentry *parent, struct trace_event_file *file) ...@@ -2007,16 +2007,18 @@ event_create_dir(struct dentry *parent, struct trace_event_file *file)
return -1; return -1;
} }
} }
trace_create_file("filter", 0644, file->dir, file,
&ftrace_event_filter_fops);
/* /*
* Only event directories that can be enabled should have * Only event directories that can be enabled should have
* triggers. * triggers or filters.
*/ */
if (!(call->flags & TRACE_EVENT_FL_IGNORE_ENABLE)) if (!(call->flags & TRACE_EVENT_FL_IGNORE_ENABLE)) {
trace_create_file("filter", 0644, file->dir, file,
&ftrace_event_filter_fops);
trace_create_file("trigger", 0644, file->dir, file, trace_create_file("trigger", 0644, file->dir, file,
&event_trigger_fops); &event_trigger_fops);
}
#ifdef CONFIG_HIST_TRIGGERS #ifdef CONFIG_HIST_TRIGGERS
trace_create_file("hist", 0444, file->dir, file, trace_create_file("hist", 0444, file->dir, file,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment