Commit 2d396cb3 authored by Steven Rostedt (VMware)'s avatar Steven Rostedt (VMware)
Browse files

tracing: Do not create "enable" or "filter" files for ftrace event subsystem



The ftrace event subsystem is only created for showing the format files of
events created by the ftrace tracers, and are not trace events. The ftrace
subsystem currently has both the "enable" and "filter" files that in other
subsystems are used to enable/disable all events within the subsystem or set
a filter for all the subsystem events.

As ftrace subsystem events do not use enable or filter operations, these
files are useless in the ftrace subsystem. Remove them.

Signed-off-by: default avatarSteven Rostedt (VMware) <rostedt@goodmis.org>
parent 4b9091e1
Loading
Loading
Loading
Loading
+13 −9
Original line number Diff line number Diff line
@@ -2097,6 +2097,9 @@ event_subsystem_dir(struct trace_array *tr, const char *name,
	dir->subsystem = system;
	file->system = dir;

	/* the ftrace system is special, do not create enable or filter files */
	if (strcmp(name, "ftrace") != 0) {

		entry = tracefs_create_file("filter", 0644, dir->entry, dir,
					    &ftrace_subsystem_filter_fops);
		if (!entry) {
@@ -2107,6 +2110,7 @@ event_subsystem_dir(struct trace_array *tr, const char *name,

		trace_create_file("enable", 0644, dir->entry, dir,
				  &ftrace_system_enable_fops);
	}

	list_add(&dir->list, &tr->systems);