]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
tracing: Do not try to recreated toplevel set_ftrace_* files
authorSteven Rostedt (Red Hat) <rostedt@goodmis.org>
Wed, 16 Apr 2014 23:21:53 +0000 (19:21 -0400)
committerSteven Rostedt <rostedt@goodmis.org>
Wed, 16 Apr 2014 23:21:53 +0000 (19:21 -0400)
commit5d6c97c55984b3b991400692f9e8568a702b93c0
tree3b763ed7f9fd1b148a893178ac35376436265410
parent17a280ea8111c66791c18c0353b7986aafcb24fe
tracing: Do not try to recreated toplevel set_ftrace_* files

With the restructing of the function tracer working with instances, the
"top level" buffer is a bit special, as the function tracing is mapped
to the same set of filters. This is done by using a "global_ops" descriptor
and having the "set_ftrace_filter" and "set_ftrace_notrace" map to it.

When an instance is created, it creates the same files but its for the
local instance and not the global_ops.

The issues is that the local instance creation shares some code with
the global instance one and we end up trying to create th top level
"set_ftrace_*" files twice, and on boot up, we get an error like this:

 Could not create debugfs 'set_ftrace_filter' entry
 Could not create debugfs 'set_ftrace_notrace' entry

The reason they failed to be created was because they were created
twice, and the second time gives this error as you can not create the
same file twice.

Reported-by: Borislav Petkov <bp@alien8.de>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
kernel/trace/trace_functions.c